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