Open kangjh0226 opened 4 years ago
After using CMake to generate the build folder, I use VS2017 to build ALL_BUILD. And here's the message.
8>------ start to build: project: SimpleITK, 구성: Release x64 ------ 8>Creating directories for 'SimpleITK' 8>Building Custom Rule D:/software/SimpleElastix/simpleelastix/SuperBuild/CMakeLists.txt 8>No download step for 'SimpleITK' 8>No update step for 'SimpleITK' 8>No patch step for 'SimpleITK' 8>Performing configure step for 'SimpleITK' 8>Not searching for unused variables given on the command line. 8>loading initial cache file D:/software/SimpleElastix/build64/SimpleITK-build/CMakeCacheInit.txt 8>-- The C compiler identification is MSVC 19.16.27035.0 8>-- The CXX compiler identification is MSVC 19.16.27035.0 8>-- Check for working C compiler: D:/software/visual_studio_2017/vs2017/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe 8>-- Check for working C compiler: D:/software/visual_studio_2017/vs2017/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe -- broken 8>CMake Error at D:/software/cmake/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (message): 8> The C compiler 8> 8> "D:/software/visual_studio_2017/vs2017/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe" 8> 8> is not able to compile a simple test program. 8> 8> It fails with the following output: 8> 8> Change Dir: D:/software/SimpleElastix/build64/SimpleITK-build/CMakeFiles/CMakeTmp 8> 8> Run Build Command(s):D:/software/visual_studio_2017/vs2017/MSBuild/15.0/Bin/MSBuild.exe cmTC_21e76.vcxproj /p:Configuration=Debug /p:Platform=Win32 /p:VisualStudioVersion=15.0 /v:m && .NET Framework??Microsoft (R) Build Engine 踰꾩쟾 15.9.21+g9802d43bc3 8> Copyright (C) Microsoft Corporation. All rights reserved. 8> 8> x86??Microsoft (R) C/C++ 理쒖쟻??而댄뙆?쇰윭 踰꾩쟾 19.16.27035 8> Copyright (c) Microsoft Corporation. All rights reserved. 8> 8> cl /c /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_21e76.dir\Debug\" /Fd"cmTC_21e76.dir\Debug\vc141.pdb" /Gd /TC /analyze- /errorReport:queue "D:\software\SimpleElastix\build64\SimpleITK-build\CMakeFiles\CMakeTmp\testCCompiler.c" 8> testCCompiler.c 8> 8>cmTC_21e76.dir\Debug\testCCompiler.obj : fatal error LNK1112: 'x86' 紐⑤뱢 而댄벂??醫낅쪟媛 'x64' ???而댄벂??醫낅쪟? 異⑸룎?⑸땲?? [D:\software\SimpleElastix\build64\SimpleITK-build\CMakeFiles\CMakeTmp\cmTC_21e76.vcxproj] 8> 8> 8> 8> 8> 8> CMake will not be able to correctly generate this project. 8>Call Stack (most recent call first): 8> CMakeLists.txt:7 (project) 8> 8> 8>-- Configuring incomplete, errors occurred! 8>See also "D:/software/SimpleElastix/build64/SimpleITK-build/CMakeFiles/CMakeOutput.log". 8>See also "D:/software/SimpleElastix/build64/SimpleITK-build/CMakeFiles/CMakeError.log". 8>"SimpleITK.vcxproj" project build. - fail
Hi. I am preparing a new release which should fix a lot of the windows building problems. You can wait for that or try out the azure-simpleitk-ci branch with VS 2019 which Works On My Machine^TM.
After using CMake to generate the build folder, I use VS2017 to build ALL_BUILD. And here's the message.
8>------ start to build: project: SimpleITK, 구성: Release x64 ------ 8>Creating directories for 'SimpleITK' 8>Building Custom Rule D:/software/SimpleElastix/simpleelastix/SuperBuild/CMakeLists.txt 8>No download step for 'SimpleITK' 8>No update step for 'SimpleITK' 8>No patch step for 'SimpleITK' 8>Performing configure step for 'SimpleITK' 8>Not searching for unused variables given on the command line. 8>loading initial cache file D:/software/SimpleElastix/build64/SimpleITK-build/CMakeCacheInit.txt 8>-- The C compiler identification is MSVC 19.16.27035.0 8>-- The CXX compiler identification is MSVC 19.16.27035.0 8>-- Check for working C compiler: D:/software/visual_studio_2017/vs2017/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe 8>-- Check for working C compiler: D:/software/visual_studio_2017/vs2017/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe -- broken 8>CMake Error at D:/software/cmake/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (message): 8> The C compiler 8> 8> "D:/software/visual_studio_2017/vs2017/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe" 8> 8> is not able to compile a simple test program. 8> 8> It fails with the following output: 8> 8> Change Dir: D:/software/SimpleElastix/build64/SimpleITK-build/CMakeFiles/CMakeTmp 8> 8> Run Build Command(s):D:/software/visual_studio_2017/vs2017/MSBuild/15.0/Bin/MSBuild.exe cmTC_21e76.vcxproj /p:Configuration=Debug /p:Platform=Win32 /p:VisualStudioVersion=15.0 /v:m && .NET Framework??Microsoft (R) Build Engine 踰꾩쟾 15.9.21+g9802d43bc3 8> Copyright (C) Microsoft Corporation. All rights reserved. 8> 8> x86??Microsoft (R) C/C++ 理쒖쟻??而댄뙆?쇰윭 踰꾩쟾 19.16.27035 8> Copyright (c) Microsoft Corporation. All rights reserved. 8> 8> cl /c /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_21e76.dir\Debug\" /Fd"cmTC_21e76.dir\Debug\vc141.pdb" /Gd /TC /analyze- /errorReport:queue "D:\software\SimpleElastix\build64\SimpleITK-build\CMakeFiles\CMakeTmp\testCCompiler.c" 8> testCCompiler.c 8> 8>cmTC_21e76.dir\Debug\testCCompiler.obj : fatal error LNK1112: 'x86' 紐⑤뱢 而댄벂??醫낅쪟媛 'x64' ???而댄벂??醫낅쪟? 異⑸룎?⑸땲?? [D:\software\SimpleElastix\build64\SimpleITK-build\CMakeFiles\CMakeTmp\cmTC_21e76.vcxproj] 8> 8> 8> 8> 8> 8> CMake will not be able to correctly generate this project. 8>Call Stack (most recent call first): 8> CMakeLists.txt:7 (project) 8> 8> 8>-- Configuring incomplete, errors occurred! 8>See also "D:/software/SimpleElastix/build64/SimpleITK-build/CMakeFiles/CMakeOutput.log". 8>See also "D:/software/SimpleElastix/build64/SimpleITK-build/CMakeFiles/CMakeError.log". 8>"SimpleITK.vcxproj" project build. - fail