Skip to content

Compile Mitsuba0.6 with VS2017 on Win11 #157

Open
@micheleconni

Description

@micheleconni

I am not able to compile Mitsuba on Windows11: following the suggestions given in #61 and running C:\Python27\scons.bat from VS2017's Developer Command Prompt and in the Mitsuba root directory, I get the following results:

scons: Reading SConscript files ...
Using configuation file "D:\Code\mitsuba\mitsuba-master\config.py"

scons: warning: VC version 15.0 not installed.  C/C++ compilers are most likely not set correctly.
 Installed versions are: ['14.0']
File "D:\Code\mitsuba\mitsuba-master\build\SConscript.configure", line 96, in <module>

scons: warning: VC version 15.0 not installed.  C/C++ compilers are most likely not set correctly.
 Installed versions are: ['14.0']
File "D:\Code\mitsuba\mitsuba-master\build\SConscript.configure", line 96, in <module>
Checking for Qt 5.x... yes
Checking for cl ...no
Could not compile a simple C++ fragment, verify that cl is installed! This could also mean that the Boost libraries are missing. The file "config.log" should contain more information.

The config.log contains the following:

file D:\Code\mitsuba\mitsuba-master\build\SConscript.configure,line 137:
	Configure(confdir = .sconf_temp)
scons: Configure: Checking for cl ...
.sconf_temp\conftest_0.cpp <-
  |#include <sstream>
  | int main(int argc, char **argv) {
  | std::ostringstream oss;
  | return 0;
  | }
cl /Fo.sconf_temp\conftest_0.obj /c .sconf_temp\conftest_0.cpp /nologo /Oi /Ot /Oy /Ob1 /Gs /GF /Gy /fp:fast /D WIN32 /D WIN64 /W3 /EHsc /GS- /GL /MD /D MTS_DEBUG /D SINGLE_PRECISION /D SPECTRUM_SAMPLES=3 /D MTS_SSE /D MTS_HAS_COHERENT_RT /D _CONSOLE /D NDEBUG /D OPENEXR_DLL /openmp /nologo /D GLEW_MX /Idependencies\include\openexr /Idependencies\include\openexr /Iinclude /Idependencies\include
conftest_0.cpp
link /nologo /SUBSYSTEM:CONSOLE /MACHINE:X64 /FIXED:NO /OPT:REF /OPT:ICF /LTCG /NODEFAULTLIB:LIBCMT /MANIFEST /OUT:.sconf_temp\conftest_0.exe /LIBPATH:dependencies\lib boost_system-vc141-mt-1_64.lib boost_filesystem-vc141-mt-1_64.lib boost_thread-vc141-mt-1_64.lib msvcrt.lib ws2_32.lib Half.lib zlib.lib .sconf_temp\conftest_0.obj
.sconf_temp\conftest_0.obj : fatal error LNK1112: module machine type 'x86' conflicts with target machine type 'x64'
scons: Configure: no

First of all, why does scons keep telling me that "VC version 15.0 not installed"? I downloaded the last version available of Visual Studio 2017, i.e. the 15.9.44.
Second of all, I used scons-2.5.1 from dependencies_win64.git and config-win64-msvc2017.py from the build folder as config.py, and my pc is 64 bit, so why do I have problems with the machine type?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions