I am attempting to build CoppeliaRobotics/bluezero from the source in windows 10.
This is so I can use the Python API of the http://www.coppeliarobotics.com/ software.
I have installed ZeroMQ via vcpkg and also "downloaded" ZeroMQ from https://zeromq.org/download/
But I am not sure how to get past this error when I build.
When I run the build command
cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_GUI=ON -DBUILD_EXAMPLES=ON ..
I get the following error.
..
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
CMake Error at E:/cmake/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find ZMQ (missing: ZMQ_LIBRARIES ZMQ_INCLUDE_DIRS) (Required is
at least version "4.1.4")
Call Stack (most recent call first):
E:/cmake/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
cmake/Modules/FindZMQ.cmake:54 (find_package_handle_standard_args)
CMakeLists.txt:59 (find_package)
-- Configuring incomplete, errors occurred!
See also "C:/Users/admini/bluezero/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/admini/bluezero/build/CMakeFiles/CMakeError.log".
Then CMakeError.log says
Determining if the include file pthread.h exists failed with the following output:
Change Dir: C:/Users/admini/bluezero/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_19eab.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.4.0+e901037fe for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.24.28315 for x64
CheckIncludeFile.c
Copyright (C) Microsoft Corporation. All rights reserved.
cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /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_19eab.dir\Debug\\" /Fd"cmTC_19eab.dir\Debug\vc142.pdb" /Gd /TC /errorReport:queue C:\Users\admini\bluezero\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c
C:\Users\admini\bluezero\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1,10): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory [C:\Users\admini\bluezero\build\CMakeFiles\CMakeTmp\cmTC_19eab.vcxproj]
CmakeOutPut.log says
Detecting CXX compiler ABI info compiled with the following output:
Change Dir: C:/Users/admini/bluezero/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_fbd1d.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.4.0+e901037fe for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.24.28315 for x64
CMakeCXXCompilerABI.cpp
Copyright (C) Microsoft Corporation. All rights reserved.
cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_fbd1d.dir\Debug\\" /Fd"cmTC_fbd1d.dir\Debug\vc142.pdb" /Gd /TP /errorReport:queue "E:\cmake\share\cmake-3.16\Modules\CMakeCXXCompilerABI.cpp"
cmTC_fbd1d.vcxproj -> C:\Users\admini\bluezero\build\CMakeFiles\CMakeTmp\Debug\cmTC_fbd1d.exe
I am not sure how to proceed or troubleshoot further.
Related
I am attempting to build and run a c++ program from GitHub, although i keep running into problems presumably with Cmake and the boost libraries. It is the first time i have tried building a program, so there is probably something obvious missing.
The program in question is from the following GitHub repository: https://github.com/antimix/PrusaSlicer. I am opening the folder i Visual Studio Code as an administrator (to remove some other error) with the Cmake and Cmake tools extensions installed. I have installed 1.75.0 Boost from this site: https://boost.teeks99.com/. From the Visual Code terminal I get the following error(s):
[cmake] CMake Error at C:/Program Files/CMake/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
[cmake] Could NOT find Boost (missing: system filesystem thread log locale regex
[cmake] chrono atomic date_time) (found version "1.75.0")
[cmake] Call Stack (most recent call first):
[cmake] C:/Program Files/CMake/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
[cmake] C:/Program Files/CMake/share/cmake-3.20/Modules/FindBoost.cmake:2344 (find_package_handle_standard_args)
[cmake] CMakeLists.txt:266 (find_package)
And here is the full log:
[variant] Loaded new set of variants
[kit] Successfully loaded 8 kits from C:\Users\*user*\AppData\Local\CMakeTools\cmake-tools-kits.json
[main] Configuring folder: PrusaSlicer-dribbling_2.2.0
[proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" "-Hc:/Program Files/Prusa3D/PrusaSlicer-dribbling_2.2.0" "-Bc:/Program Files/Prusa3D/PrusaSlicer-dribbling_2.2.0/build" -G "Visual Studio 16 2019" -T host=x64 -A win32
[proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE "-Hc:/Program Files/Prusa3D/PrusaSlicer-dribbling_2.2.0" "-Bc:/Program Files/Prusa3D/PrusaSlicer-dribbling_2.2.0/build" -G "Visual Studio 16 2019" -T host=x64 -A win32
[cmake] Not searching for unused variables given on the command line.
[cmake] -- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.18363.
[cmake] -- SLIC3R_ASAN: OFF
[cmake] -- SLIC3R_BUILD_SANDBOXES: OFF
[cmake] -- SLIC3R_BUILD_TESTS: ON
[cmake] -- SLIC3R_FHS: OFF
[cmake] -- SLIC3R_GTK: 2
[cmake] -- SLIC3R_GUI: ON
[cmake] -- SLIC3R_MSVC_COMPILE_PARALLEL: ON
[cmake] -- SLIC3R_MSVC_PDB: ON
[cmake] -- SLIC3R_PCH: ON
[cmake] -- SLIC3R_PERL_XS: OFF
[cmake] Building without Win10 Netfabb STL fixing service support
[cmake] -- SLIC3R_PROFILE: OFF
[cmake] -- SLIC3R_STATIC: ON
[cmake] -- SLIC3R_WX_STABLE: ON
[cmake] -- SLIC3R_STATIC: ON
[cmake] -- CMAKE_PREFIX_PATH: (default)
[cmake] CMake Error at C:/Program Files/CMake/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
[cmake] Could NOT find Boost (missing: system filesystem thread log locale regex
[cmake] chrono atomic date_time) (found version "1.75.0")
[cmake] Call Stack (most recent call first):
[cmake] C:/Program Files/CMake/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
[cmake] C:/Program Files/CMake/share/cmake-3.20/Modules/FindBoost.cmake:2344 (find_package_handle_standard_args)
[cmake] CMakeLists.txt:266 (find_package)
[cmake]
[cmake]
[cmake] -- Configuring incomplete, errors occurred!
[cmake] See also "C:/Program Files/Prusa3D/PrusaSlicer-dribbling_2.2.0/build/CMakeFiles/CMakeOutput.log".
[cmake] See also "C:/Program Files/Prusa3D/PrusaSlicer-dribbling_2.2.0/build/CMakeFiles/CMakeError.log".
Also, here is the two logs that the terminal talk about if that is of interest:
CMakeOutput.log
The system is: Windows - 10.0.18363 - AMD64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler:
Build flags:
Id flags:
The output was:
0
Microsoft (R) Build Engine version 16.8.3+39993bd9d for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 21-02-2021 22:55:20.
Project "C:\Program Files\Prusa3D\PrusaSlicer-dribbling_2.2.0\build\CMakeFiles\3.20.0-rc1\CompilerIdC\CompilerIdC.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "Debug\".
Creating directory "Debug\CompilerIdC.tlog\".
InitializeBuildStatus:
Creating "Debug\CompilerIdC.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\HostX64\x86\CL.exe /c /nologo /W0 /WX- /diagnostics:column /Od /Oy- /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc142.pdb" /Gd /TC /analyze- /FC /errorReport:queue CMakeCCompilerId.c
CMakeCCompilerId.c
Link:
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\HostX64\x86\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdC.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdC.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdC.lib" /MACHINE:X86 /SAFESEH Debug\CMakeCCompilerId.obj
CompilerIdC.vcxproj -> C:\Program Files\Prusa3D\PrusaSlicer-dribbling_2.2.0\build\CMakeFiles\3.20.0-rc1\CompilerIdC\CompilerIdC.exe
PostBuildEvent:
for %%i in (cl.exe) do #echo CMAKE_C_COMPILER=%%~$PATH:i
:VCEnd
CMAKE_C_COMPILER=C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\Hostx64\x86\cl.exe
FinalizeBuildStatus:
Deleting file "Debug\CompilerIdC.tlog\unsuccessfulbuild".
Touching "Debug\CompilerIdC.tlog\CompilerIdC.lastbuildstate".
Done Building Project "C:\Program Files\Prusa3D\PrusaSlicer-dribbling_2.2.0\build\CMakeFiles\3.20.0-rc1\CompilerIdC\CompilerIdC.vcxproj" (default targets).
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:01.39
Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CompilerIdC.exe"
Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CompilerIdC.vcxproj"
The C compiler identification is MSVC, found in "C:/Program Files/Prusa3D/PrusaSlicer-dribbling_2.2.0/build/CMakeFiles/3.20.0-rc1/CompilerIdC/CompilerIdC.exe"
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler:
Build flags:
Id flags:
The output was:
0
Microsoft (R) Build Engine version 16.8.3+39993bd9d for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 21-02-2021 22:55:21.
Project "C:\Program Files\Prusa3D\PrusaSlicer-dribbling_2.2.0\build\CMakeFiles\3.20.0-rc1\CompilerIdCXX\CompilerIdCXX.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "Debug\".
Creating directory "Debug\CompilerIdCXX.tlog\".
InitializeBuildStatus:
Creating "Debug\CompilerIdCXX.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\HostX64\x86\CL.exe /c /nologo /W0 /WX- /diagnostics:column /Od /Oy- /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc142.pdb" /Gd /TP /analyze- /FC /errorReport:queue CMakeCXXCompilerId.cpp
CMakeCXXCompilerId.cpp
Link:
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\HostX64\x86\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdCXX.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdCXX.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdCXX.lib" /MACHINE:X86 /SAFESEH Debug\CMakeCXXCompilerId.obj
CompilerIdCXX.vcxproj -> C:\Program Files\Prusa3D\PrusaSlicer-dribbling_2.2.0\build\CMakeFiles\3.20.0-rc1\CompilerIdCXX\CompilerIdCXX.exe
PostBuildEvent:
for %%i in (cl.exe) do #echo CMAKE_CXX_COMPILER=%%~$PATH:i
:VCEnd
CMAKE_CXX_COMPILER=C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\Hostx64\x86\cl.exe
FinalizeBuildStatus:
Deleting file "Debug\CompilerIdCXX.tlog\unsuccessfulbuild".
Touching "Debug\CompilerIdCXX.tlog\CompilerIdCXX.lastbuildstate".
Done Building Project "C:\Program Files\Prusa3D\PrusaSlicer-dribbling_2.2.0\build\CMakeFiles\3.20.0-rc1\CompilerIdCXX\CompilerIdCXX.vcxproj" (default targets).
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:01.11
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CompilerIdCXX.exe"
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CompilerIdCXX.vcxproj"
The CXX compiler identification is MSVC, found in "C:/Program Files/Prusa3D/PrusaSlicer-dribbling_2.2.0/build/CMakeFiles/3.20.0-rc1/CompilerIdCXX/CompilerIdCXX.exe"
Detecting C compiler ABI info compiled with the following output:
Change Dir: C:/Program Files/Prusa3D/PrusaSlicer-dribbling_2.2.0/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/MSBuild/Current/Bin/MSBuild.exe cmTC_e9c90.vcxproj /p:Configuration=Debug /p:Platform=win32 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.8.3+39993bd9d for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29336 for x86
Copyright (C) Microsoft Corporation. All rights reserved.
CMakeCCompilerABI.c
cl /c /Zi /W3 /WX- /diagnostics:column /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_e9c90.dir\Debug\\" /Fd"cmTC_e9c90.dir\Debug\vc142.pdb" /Gd /TC /analyze- /errorReport:queue "C:\Program Files\CMake\share\cmake-3.20\Modules\CMakeCCompilerABI.c"
cmTC_e9c90.vcxproj -> C:\Program Files\Prusa3D\PrusaSlicer-dribbling_2.2.0\build\CMakeFiles\CMakeTmp\Debug\cmTC_e9c90.exe
Detecting CXX compiler ABI info compiled with the following output:
Change Dir: C:/Program Files/Prusa3D/PrusaSlicer-dribbling_2.2.0/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/MSBuild/Current/Bin/MSBuild.exe cmTC_65605.vcxproj /p:Configuration=Debug /p:Platform=win32 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.8.3+39993bd9d for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29336 for x86
Copyright (C) Microsoft Corporation. All rights reserved.
CMakeCXXCompilerABI.cpp
cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_65605.dir\Debug\\" /Fd"cmTC_65605.dir\Debug\vc142.pdb" /Gd /TP /analyze- /errorReport:queue "C:\Program Files\CMake\share\cmake-3.20\Modules\CMakeCXXCompilerABI.cpp"
cmTC_65605.vcxproj -> C:\Program Files\Prusa3D\PrusaSlicer-dribbling_2.2.0\build\CMakeFiles\CMakeTmp\Debug\cmTC_65605.exe
CMakeError.log
Determining if the include file pthread.h exists failed with the following output:
Change Dir: C:/Program Files/Prusa3D/PrusaSlicer-dribbling_2.2.0/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/MSBuild/Current/Bin/MSBuild.exe cmTC_3680a.vcxproj /p:Configuration=Debug /p:Platform=win32 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.8.3+39993bd9d for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29336 for x86
Copyright (C) Microsoft Corporation. All rights reserved.
CheckIncludeFile.c
cl /c /Zi /W3 /WX- /diagnostics:column /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_3680a.dir\Debug\\" /Fd"cmTC_3680a.dir\Debug\vc142.pdb" /Gd /TC /analyze- /errorReport:queue "C:\Program Files\Prusa3D\PrusaSlicer-dribbling_2.2.0\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c"
C:\Program Files\Prusa3D\PrusaSlicer-dribbling_2.2.0\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1,10): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory [C:\Program Files\Prusa3D\PrusaSlicer-dribbling_2.2.0\build\CMakeFiles\CMakeTmp\cmTC_3680a.vcxproj]
I have looked around at some different threads to find a solution but without luck. Most of them revolve around setting the system environment variables for Boost, but it seems that Cmake gives a message that it ignores this variable. I have also found a thread that suggests adding a line in the CMakeLists.txt to set the boost path before loading the libraries (as far as I understand), but none of these things unfortunately helped.
Hope some of you have a solution for this headscratcher...
I'm making a library that overloads the operator new and delete to save the pointer into my vector-like class. When the program ends a class object frees the memory.
I'm new to CMake.
I used CMake but I get a CMake error. In CMakeOutput.log it says:
The system is: Windows - 10.0.18363 - AMD64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: gcc
Build flags:
Id flags:
The output was:
0
Microsoft (R) Build Engine version 16.6.0+5ff7b0c9e for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 7/3/2020 8:28:00 PM.
Project "C:\Users\pc\Desktop\Garbage Collector\build\CMakeFiles\3.17.3\CompilerIdC\CompilerIdC.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "Debug\".
Creating directory "Debug\CompilerIdC.tlog\".
InitializeBuildStatus:
Creating "Debug\CompilerIdC.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX64\x64\CL.exe /c /nologo /W0 /WX- /diagnostics:column /Od /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc142.pdb" /Gd /TC /FC /errorReport:queue CMakeCCompilerId.c
CMakeCCompilerId.c
Link:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdC.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdC.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdC.lib" /MACHINE:X64 Debug\CMakeCCompilerId.obj
CompilerIdC.vcxproj -> C:\Users\pc\Desktop\Garbage Collector\build\CMakeFiles\3.17.3\CompilerIdC\.\CompilerIdC.exe
PostBuildEvent:
for %%i in (cl.exe) do #echo CMAKE_C_COMPILER=%%~$PATH:i
:VCEnd
CMAKE_C_COMPILER=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\Hostx64\x64\cl.exe
FinalizeBuildStatus:
Deleting file "Debug\CompilerIdC.tlog\unsuccessfulbuild".
Touching "Debug\CompilerIdC.tlog\CompilerIdC.lastbuildstate".
Done Building Project "C:\Users\pc\Desktop\Garbage Collector\build\CMakeFiles\3.17.3\CompilerIdC\CompilerIdC.vcxproj" (default targets).
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:05.85
Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CompilerIdC.exe"
Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CompilerIdC.vcxproj"
The C compiler identification is MSVC, found in "C:/Users/pc/Desktop/Garbage Collector/build/CMakeFiles/3.17.3/CompilerIdC/CompilerIdC.exe"
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: g++
Build flags:
Id flags:
The output was:
0
Microsoft (R) Build Engine version 16.6.0+5ff7b0c9e for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 7/3/2020 8:28:07 PM.
Project "C:\Users\pc\Desktop\Garbage Collector\build\CMakeFiles\3.17.3\CompilerIdCXX\CompilerIdCXX.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "Debug\".
Creating directory "Debug\CompilerIdCXX.tlog\".
InitializeBuildStatus:
Creating "Debug\CompilerIdCXX.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX64\x64\CL.exe /c /nologo /W0 /WX- /diagnostics:column /Od /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc142.pdb" /Gd /TP /FC /errorReport:queue CMakeCXXCompilerId.cpp
CMakeCXXCompilerId.cpp
Link:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdCXX.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdCXX.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdCXX.lib" /MACHINE:X64 Debug\CMakeCXXCompilerId.obj
CompilerIdCXX.vcxproj -> C:\Users\pc\Desktop\Garbage Collector\build\CMakeFiles\3.17.3\CompilerIdCXX\.\CompilerIdCXX.exe
PostBuildEvent:
for %%i in (cl.exe) do #echo CMAKE_CXX_COMPILER=%%~$PATH:i
:VCEnd
CMAKE_CXX_COMPILER=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\Hostx64\x64\cl.exe
FinalizeBuildStatus:
Deleting file "Debug\CompilerIdCXX.tlog\unsuccessfulbuild".
Touching "Debug\CompilerIdCXX.tlog\CompilerIdCXX.lastbuildstate".
Done Building Project "C:\Users\pc\Desktop\Garbage Collector\build\CMakeFiles\3.17.3\CompilerIdCXX\CompilerIdCXX.vcxproj" (default targets).
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:03.51
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CompilerIdCXX.exe"
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CompilerIdCXX.vcxproj"
The CXX compiler identification is MSVC, found in "C:/Users/pc/Desktop/Garbage Collector/build/CMakeFiles/3.17.3/CompilerIdCXX/CompilerIdCXX.exe"
Determining if the C compiler works passed with the following output:
Change Dir: C:/Users/pc/Desktop/Garbage Collector/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_e1916.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.6.0+5ff7b0c9e for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.26.28806 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /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_e1916.dir\Debug\\" /Fd"cmTC_e1916.dir\Debug\vc142.pdb" /Gd /TC /errorReport:queue "C:\Users\pc\Desktop\Garbage Collector\build\CMakeFiles\CMakeTmp\testCCompiler.c"
testCCompiler.c
cmTC_e1916.vcxproj -> C:\Users\pc\Desktop\Garbage Collector\build\CMakeFiles\CMakeTmp\Debug\cmTC_e1916.exe
Detecting C compiler ABI info compiled with the following output:
Change Dir: C:/Users/pc/Desktop/Garbage Collector/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_68d77.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.6.0+5ff7b0c9e for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.26.28806 for x64
CMakeCCompilerABI.c
Copyright (C) Microsoft Corporation. All rights reserved.
cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /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_68d77.dir\Debug\\" /Fd"cmTC_68d77.dir\Debug\vc142.pdb" /Gd /TC /errorReport:queue "C:\Program Files\CMake\share\cmake-3.17\Modules\CMakeCCompilerABI.c"
cmTC_68d77.vcxproj -> C:\Users\pc\Desktop\Garbage Collector\build\CMakeFiles\CMakeTmp\Debug\cmTC_68d77.exe
Determining if the CXX compiler works passed with the following output:
Change Dir: C:/Users/pc/Desktop/Garbage Collector/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_5a8e5.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.6.0+5ff7b0c9e for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.26.28806 for x64
testCXXCompiler.cxx
Copyright (C) Microsoft Corporation. All rights reserved.
cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_5a8e5.dir\Debug\\" /Fd"cmTC_5a8e5.dir\Debug\vc142.pdb" /Gd /TP /errorReport:queue "C:\Users\pc\Desktop\Garbage Collector\build\CMakeFiles\CMakeTmp\testCXXCompiler.cxx"
cmTC_5a8e5.vcxproj -> C:\Users\pc\Desktop\Garbage Collector\build\CMakeFiles\CMakeTmp\Debug\cmTC_5a8e5.exe
Detecting CXX compiler ABI info compiled with the following output:
Change Dir: C:/Users/pc/Desktop/Garbage Collector/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_2e3ba.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.6.0+5ff7b0c9e for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.26.28806 for x64
CMakeCXXCompilerABI.cpp
Copyright (C) Microsoft Corporation. All rights reserved.
cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_2e3ba.dir\Debug\\" /Fd"cmTC_2e3ba.dir\Debug\vc142.pdb" /Gd /TP /errorReport:queue "C:\Program Files\CMake\share\cmake-3.17\Modules\CMakeCXXCompilerABI.cpp"
cmTC_2e3ba.vcxproj -> C:\Users\pc\Desktop\Garbage Collector\build\CMakeFiles\CMakeTmp\Debug\cmTC_2e3ba.exe
and the console says:
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.18363.
CMake Error: Could not find cmake module file: CMakeDeterminemain.cppCompiler.cmake
CMake Error: Could not find cmake module file: C:/Users/pc/Desktop/Garbage Collector/build/CMakeFiles/3.17.3/CMakemain.cppCompiler.cmake
CMake Error at tests/CMakeLists.txt:1 (project):
No CMAKE_main.cpp_COMPILER could be found.
CMake Error: Could not find cmake module file: CMakemain.cppInformation.cmake
-- Configuring incomplete, errors occurred!
See also "C:/Users/pc/Desktop/Garbage Collector/build/CMakeFiles/CMakeOutput.log".
C:\Users\pc\Desktop\Garbage Collector\build>cmake --build .
Microsoft (R) Build Engine version 16.6.0+5ff7b0c9e for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
MSBUILD : error MSB1009: Project file does not exist.
Switch: ALL_BUILD.vcxproj
If you have an idea how to fix this, please tell me.
Thank you.
I try to build SRT with CMake on Windows 10 using VS2019 as generator.
Thru the Configure step, I have:
The C compiler identification is MSVC 19.23.28106.4 The CXX compiler
identification is MSVC 19.23.28106.4 Check for working C compiler:
C:/Program Files (x86)/Microsoft Visual
Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x86/cl.exe
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual
Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x86/cl.exe
-- broken CMake Error at C:/Program Files/CMake/share/cmake-3.15/Modules/CMakeTestCCompiler.cmake:60
(message): The C compiler
"C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x86/cl.exe"
is not able to compile a simple test program. It fails with the
following output:
Change Dir: C:/Users/MLUser/Desktop/SRT/srt-1.4.0/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe
cmTC_3ea98.vcxproj /p:Configuration=Debug /p:Platform=Win32
/p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version
16.3.1+1def00d3d for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.23.28106.4 for x86
testCCompiler.c
Copyright (C) Microsoft Corporation. All rights reserved.
cl /c /I./MIDL /Zi /W3 /WX- /diagnostics:column /MP /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _LOCAL_NODE
/D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope
/Zc:inline /Fo"cmTC_3ea98.dir\Debug\"
/Fd"cmTC_3ea98.dir\Debug\vc142.pdb" /Gd /TC /analyze-
/errorReport:queue
"C:\Users\MLUser\Desktop\SRT\srt-1.4.0\build\CMakeFiles\CMakeTmp\testCCompiler.c"
cmTC_3ea98.vcxproj -> C:\Users\MLUser\Desktop\SRT\srt-1.4.0\build\CMakeFiles\CMakeTmp\Debug\cmTC_3ea98.exe
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(1992,5):
warning MSB3073: The command
""C:\Users\MLUser\Desktop\SRT\srt-1.4.0\build\CMakeFiles\CMakeTmp\Debug\cmTC_3ea98.exe"
/RegServer" exited with code 1.
[C:\Users\MLUser\Desktop\SRT\srt-1.4.0\build\CMakeFiles\CMakeTmp\cmTC_3ea98.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(1998,5):
error MSB8011: Failed to register output. Please try enabling Per-user
Redirection or register the component from a command prompt with
elevated permissions.
[C:\Users\MLUser\Desktop\SRT\srt-1.4.0\build\CMakeFiles\CMakeTmp\cmTC_3ea98.vcxproj]
CMake will not be able to correctly generate this project. Call
Stack (most recent call first): CMakeLists.txt:15 (project)
UPD
I tried to launch Cmake GUI both with admin and no admin rights.
OK, I see that I had custom properties in: C:\Users\[User]\AppData\Local\Microsoft\MSBuild\v4.0.
It *.props files where it was configured to register output.
I removed them, and passed "output redirection" issue.
I have an error when i compile on window10 simpleelastix library (https://simpleelastix.readthedocs.io/GettingStarted.html).
It's ok with the CMake step (compile with visual studio 15 2017 x64, but when i build on Visual Studio, i have this issue :
**
Determining if the C compiler works failed with the following output:
Change Dir:
C:/Users/gup/Dev/se/bin_7/Lua-prefix/src/Lua-build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual
Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe cmTC_633ea.vcxproj
/p:Configuration=Debug /p:Platform=Win32 /p:VisualStudioVersion=15.0
/v:m Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 pour .NET
Framework Copyright (C) Microsoft Corporation. Tous droits réservés.
Compilateur d'optimisation Microsoft (R) C/C++ version 19.16.27027.1
pour x86 Copyright (C) Microsoft Corporation. Tous droits réservés.
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_633ea.dir\Debug\" /Fd"cmTC_633ea.dir\Debug\vc141.pdb" /Gd
/TC /analyze- /errorReport:queue
"C:\Users\gup\Dev\se\bin_7\Lua-prefix\src\Lua-build\CMakeFiles\CMakeTmp\testCCompiler.c"
testCCompiler.c cmTC_633ea.dir\Debug\testCCompiler.obj : fatal
error LNK1112: type d'ordinateur module 'x86' en conflit avec le type
d'ordinateur cible 'x64'
[C:\Users\gup\Dev\se\bin_7\Lua-prefix\src\Lua-build\CMakeFiles\CMakeTmp\cmTC_633ea.vcxproj]
Determining if the C compiler works failed with the following output:
Change Dir:
C:/Users/gup/Dev/se/bin_7/Lua-prefix/src/Lua-build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual
Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe cmTC_77e83.vcxproj
/p:Configuration=Debug /p:Platform=Win32 /p:VisualStudioVersion=15.0
/v:m Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 pour .NET
Framework Copyright (C) Microsoft Corporation. Tous droits réservés.
Compilateur d'optimisation Microsoft (R) C/C++ version 19.16.27027.1
pour x86 Copyright (C) Microsoft Corporation. Tous droits réservés.
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_77e83.dir\Debug\" /Fd"cmTC_77e83.dir\Debug\vc141.pdb" /Gd
/TC /analyze- /errorReport:queue
"C:\Users\gup\Dev\se\bin_7\Lua-prefix\src\Lua-build\CMakeFiles\CMakeTmp\testCCompiler.c"
testCCompiler.c cmTC_77e83.dir\Debug\testCCompiler.obj : fatal
error LNK1112: type d'ordinateur module 'x86' en conflit avec le type
d'ordinateur cible 'x64'
[C:\Users\gup\Dev\se\bin_7\Lua-prefix\src\Lua-build\CMakeFiles\CMakeTmp\cmTC_77e83.vcxproj]
Determining if the C compiler works failed with the following output:
Change Dir:
C:/Users/gup/Dev/se/bin_7/Lua-prefix/src/Lua-build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual
Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe cmTC_4aa90.vcxproj
/p:Configuration=Debug /p:Platform=Win32 /p:VisualStudioVersion=15.0
/v:m Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 pour .NET
Framework Copyright (C) Microsoft Corporation. Tous droits réservés.
Compilateur d'optimisation Microsoft (R) C/C++ version 19.16.27027.1
pour x86 Copyright (C) Microsoft Corporation. Tous droits réservés.
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_4aa90.dir\Debug\" /Fd"cmTC_4aa90.dir\Debug\vc141.pdb" /Gd
/TC /analyze- /errorReport:queue
"C:\Users\gup\Dev\se\bin_7\Lua-prefix\src\Lua-build\CMakeFiles\CMakeTmp\testCCompiler.c"
testCCompiler.c cmTC_4aa90.dir\Debug\testCCompiler.obj : fatal
error LNK1112: type d'ordinateur module 'x86' en conflit avec le type
d'ordinateur cible 'x64'
[C:\Users\gup\Dev\se\bin_7\Lua-prefix\src\Lua-build\CMakeFiles\CMakeTmp\cmTC_4aa90.vcxproj]
Determining if the C compiler works failed with the following output:
Change Dir:
C:/Users/gup/Dev/se/bin_7/Lua-prefix/src/Lua-build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual
Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe cmTC_eeb4e.vcxproj
/p:Configuration=Debug /p:Platform=Win32 /p:VisualStudioVersion=15.0
/v:m Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 pour .NET
Framework Copyright (C) Microsoft Corporation. Tous droits réservés.
Compilateur d'optimisation Microsoft (R) C/C++ version 19.16.27027.1
pour x86 Copyright (C) Microsoft Corporation. Tous droits réservés.
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_eeb4e.dir\Debug\" /Fd"cmTC_eeb4e.dir\Debug\vc141.pdb" /Gd
/TC /analyze- /errorReport:queue
"C:\Users\gup\Dev\se\bin_7\Lua-prefix\src\Lua-build\CMakeFiles\CMakeTmp\testCCompiler.c"
testCCompiler.c cmTC_eeb4e.dir\Debug\testCCompiler.obj : fatal
error LNK1112: type d'ordinateur module 'x86' en conflit avec le type
d'ordinateur cible 'x64'
[C:\Users\gup\Dev\se\bin_7\Lua-prefix\src\Lua-build\CMakeFiles\CMakeTmp\cmTC_eeb4e.vcxproj]
Determining if the C compiler works failed with the following output:
Change Dir:
C:/Users/gup/Dev/se/bin_7/Lua-prefix/src/Lua-build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual
Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe cmTC_96de8.vcxproj
/p:Configuration=Debug /p:Platform=Win32 /p:VisualStudioVersion=15.0
/v:m Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 pour .NET
Framework Copyright (C) Microsoft Corporation. Tous droits réservés.
Compilateur d'optimisation Microsoft (R) C/C++ version 19.16.27027.1
pour x86 Copyright (C) Microsoft Corporation. Tous droits réservés.
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_96de8.dir\Debug\" /Fd"cmTC_96de8.dir\Debug\vc141.pdb" /Gd
/TC /analyze- /errorReport:queue
"C:\Users\gup\Dev\se\bin_7\Lua-prefix\src\Lua-build\CMakeFiles\CMakeTmp\testCCompiler.c"
testCCompiler.c cmTC_96de8.dir\Debug\testCCompiler.obj : fatal
error LNK1112: type d'ordinateur module 'x86' en conflit avec le type
d'ordinateur cible 'x64'
[C:\Users\gup\Dev\se\bin_7\Lua-prefix\src\Lua-build\CMakeFiles\CMakeTmp\cmTC_96de8.vcxproj]
**
I was trying to build SimpleElastix for LUA.
Config :
Visual, python, windows 10 are x64
I am building glm for vs 2012 but I get these errors with cmake
when I run vs2012 and compile a normal console application I also get error telling:
error C1069: cannot read compiler command line
And with cmake I get these errors, and I think the above error is related to it.
Determining if the C compiler works failed with the following output:
Change Dir: C:/Users/Amar Thapa/Desktop/glm bin/CMakeFiles/CMakeTmp
Run Build Command:C:\Program Files\MSBuild\12.0\Bin\MSBuild.exe cmTryCompileExec2330384412.vcxproj /p:Configuration=Debug /p:VisualStudioVersion=12.0
Microsoft (R) Build Engine version 12.0.21005.1
[Microsoft .NET Framework, version 4.0.30319.18408]
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 12/23/2013 12:50:51 AM.
Project "C:\Users\Amar Thapa\Desktop\glm bin\CMakeFiles\CMakeTmp\cmTryCompileExec2330384412.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "cmTryCompileExec2330384412.dir\Debug\".
Creating directory "C:\Users\Amar Thapa\Desktop\glm bin\CMakeFiles\CMakeTmp\Debug\".
Creating directory "cmTryCompileExec2330384412.dir\Debug\cmTryCom.89557F4B.tlog\".
InitializeBuildStatus:
Creating "cmTryCompileExec2330384412.dir\Debug\cmTryCom.89557F4B.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files\Microsoft Visual Studio 12.0\VC\bin\CL.exe /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec2330384412.dir\Debug\\" /Fd"cmTryCompileExec2330384412.dir\Debug\vc120.pdb" /Gd /TC /analyze- /errorReport:queue testCCompiler.c
Microsoft (R) C/C++ Optimizing Compiler Version 18.00.21005.1 for x86
Copyright (C) Microsoft Corporation. All rights reserved.
cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec2330384412.dir\Debug\\" /Fd"cmTryCompileExec2330384412.dir\Debug\vc120.pdb" /Gd /TC /analyze- /errorReport:queue testCCompiler.c
testCCompiler.c
testCCompiler.c(12): fatal error C1069: cannot read compiler command line [C:\Users\Amar Thapa\Desktop\glm bin\CMakeFiles\CMakeTmp\cmTryCompileExec2330384412.vcxproj]
Done Building Project "C:\Users\Amar Thapa\Desktop\glm bin\CMakeFiles\CMakeTmp\cmTryCompileExec2330384412.vcxproj" (default targets) -- FAILED.
Build FAILED.
"C:\Users\Amar Thapa\Desktop\glm bin\CMakeFiles\CMakeTmp\cmTryCompileExec2330384412.vcxproj" (default target) (1) ->
(ClCompile target) ->
testCCompiler.c(12): fatal error C1069: cannot read compiler command line [C:\Users\Amar Thapa\Desktop\glm bin\CMakeFiles\CMakeTmp\cmTryCompileExec2330384412.vcxproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.34