<html>
<head>
<meta name="generator" content="Windows Mail 17.5.9600.20279">
<style data-externalstyle="true"><!--
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
}
p.MsoNormal, li.MsoNormal, div.MsoNormal {
margin:0in;
margin-bottom:.0001pt;
}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst, 
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle, 
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
line-height:115%;
}
--></style></head>
<body dir="ltr">
<div data-externalstyle="false" dir="ltr" style="font-family: 'Calibri', 'Segoe UI', 'Meiryo', 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'sans-serif';font-size:12pt;"><div>Hi!</div><div><br></div><div>I have the following issue, which I do not know whether it is an issue of CMake or Visual Studio. When I try to generate a Visual Studio project under a path that contains unicode characters, VS fails to compile the simple test file and thus CMake terminates project generation. Visual Studio does have some issues with projects under unicode paths, but generally things work. (For eg. the C++AMP call tree generator breaks, therefore no C++AMP project can be built in such paths) I develop all my applications in my Skydrive folder which is under the Users folder, and since my name holds unicode characters, I have no control over mw home folder under Win 8 if I have&nbsp;a Live-ID user in the OS. This is what happens:</div><div><br></div><div>C:\Users\MátéFerenc\SkyDrive\Develop\Active\GridRipper\VS2013&gt;cmake -G "Visual Studio 12" -D USE_OPENCL:BOOL=ON ../<br>-- The C compiler identification is MSVC 18.0.21005.1<br>-- The CXX compiler identification is MSVC 18.0.21005.1<br>-- Check for working C compiler using: Visual Studio 12<br>-- Check for working C compiler using: Visual Studio 12 -- broken<br>CMake Error at C:/Kellekek/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):<br>&nbsp; The C compiler "C:/Kellekek/Microsoft Visual Studio 12.0/VC/bin/cl.exe" is<br>&nbsp; not able to compile a simple test program.</div><div><br></div><div>&nbsp; It fails with the following output:</div><div><br></div><div>&nbsp;&nbsp; Change Dir: C:/Users/MßtÚFerenc/SkyDrive/Develop/Active/GridRipper/VS2013/CMakeFiles/CMakeTmp</div><div><br></div><div><br></div><div><br></div><div>&nbsp; Run Build Command:C:\PROGRA~2\MSBuild\12.0\Bin\MSBuild.exe<br>&nbsp; cmTryCompileExec2625635362.vcxproj /p:Configuration=Debug<br>&nbsp; /p:VisualStudioVersion=12.0</div><div><br></div><div>&nbsp; Microsoft (R) Build Engine version 12.0.21005.1</div><div><br></div><div>&nbsp; [Microsoft .NET Framework, version 4.0.30319.34003]</div><div><br></div><div>&nbsp; Copyright (C) Microsoft Corporation.&nbsp; All rights reserved.</div><div><br></div><div><br></div><div><br></div><div>&nbsp; Build started 2013.11.08.&nbsp; 11:07:49.</div><div><br></div><div>&nbsp; Project<br>&nbsp; "C:\Users\MátéFerenc\SkyDrive\Develop\Active\GridRipper\VS2013\CMakeFiles\CMakeTmp\cmTryCompileExec2625635362.vcxproj</div><div><br></div><div>&nbsp; on node 1 (default targets).</div><div><br></div><div><br>&nbsp; C:\Users\MátéFerenc\SkyDrive\Develop\Active\GridRipper\VS2013\CMakeFiles\CMakeTmp\cmTryCompileExec2625635362.vcxproj(<br>0,83):<br>&nbsp; error MSB4025: The project file could not be loaded.&nbsp; Érvénytelen karakter<br>&nbsp; az adott kódolásban.&nbsp; Sor: 60, pozíció: 83.</div><div><br></div><div>&nbsp; Done Building Project<br>&nbsp; "C:\Users\MátéFerenc\SkyDrive\Develop\Active\GridRipper\VS2013\CMakeFiles\CMakeTmp\cmTryCompileExec2625635362.vcxproj</div><div><br></div><div>&nbsp; (default targets) -- FAILED.</div><div><br></div><div><br></div><div><br></div><div>&nbsp; Build FAILED.</div><div><br></div><div><br></div><div><br></div><div><br>&nbsp; "C:\Users\MátéFerenc\SkyDrive\Develop\Active\GridRipper\VS2013\CMakeFiles\CMakeTmp\cmTryCompileExec2625635362.vcxproj</div><div><br></div><div>&nbsp; (default target) (1) -&gt;</div><div><br></div><div>&nbsp;&nbsp;&nbsp; C:\Users\MátéFerenc\SkyDrive\Develop\Active\GridRipper\VS2013\CMakeFiles\CMakeTmp\cmTryCompileExec2625635362.vcxpro<br>(60,83): error MSB4025: The project file could not be loaded. Érvénytelen karakter az adott kódolásban. Sor: 60, pozíci<br>: 83.</div><div><br></div><div><br></div><div><br></div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 Warning(s)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 Error(s)</div><div><br></div><div><br></div><div><br>&nbsp; Time Elapsed 00:00:00.02</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>&nbsp; CMake will not be able to correctly generate this project.<br>Call Stack (most recent call first):<br>&nbsp; CMakeLists.txt:20 (project)</div><div><br></div><div><br>-- Configuring incomplete, errors occurred!<br>See also "C:/Users/MßtÚFerenc/SkyDrive/Develop/Active/GridRipper/VS2013/CMakeFiles/CMakeOutput.log".<br>See also "C:/Users/MßtÚFerenc/SkyDrive/Develop/Active/GridRipper/VS2013/CMakeFiles/CMakeError.log".</div><div><br></div><div>C:\Users\MátéFerenc\SkyDrive\Develop\Active\GridRipper\VS2013&gt;</div><div><br></div><div><br></div><div>The hungarian part of the string found in the error message&nbsp;“project file could not be loaded. Érvénytelen karakter az adott kódolásban. Sor: 60, pozíci : 83.” means invalid character in the given encoding Line 60, position 83</div><div><br></div><div>If I use the NMake generator, everything works fine. Output is:</div><div><br></div><div>C:\Users\MátéFerenc\SkyDrive\Develop\Active\GridRipper\VC++&gt;cmake -G "NMake Makefiles" -D USE_OPENCL:BOOL=ON ../<br>-- The C compiler identification is MSVC 18.0.21005.1<br>-- The CXX compiler identification is MSVC 18.0.21005.1<br>-- Check for working C compiler: C:/Kellekek/Microsoft Visual Studio 12.0/VC/bin/amd64/cl.exe<br>-- Check for working C compiler: C:/Kellekek/Microsoft Visual Studio 12.0/VC/bin/amd64/cl.exe -- works<br>-- Detecting C compiler ABI info<br>-- Detecting C compiler ABI info - done<br>-- Check for working CXX compiler: C:/Kellekek/Microsoft Visual Studio 12.0/VC/bin/amd64/cl.exe<br>-- Check for working CXX compiler: C:/Kellekek/Microsoft Visual Studio 12.0/VC/bin/amd64/cl.exe -- works<br>-- Detecting CXX compiler ABI info<br>-- Detecting CXX compiler ABI info - done<br>-- Found OpenCL: C:/Program Files (x86)/AMD APP (found version "1.2")<br>-- Configuring done<br>-- Generating done<br>-- Build files have been written to: C:/Users/MßtÚFerenc/SkyDrive/Develop/Active/GridRipper/VC++</div><div><br></div><div>Is this the right place to post this issue? Visual Studio in most cases works under unicode paths, but in this case VS seems to complain about&nbsp;mal-encoded characters in the project file.</div><div><br></div><div>Any ideas?</div><div><br></div><div>Máté<br></div><div data-signatureblock="true"></div></div>
</body>
</html>