Open aurodev opened 5 years ago
OS/device including version: Windows 8.1 64bit, 8GB AMD FX 6350 6 core Recent VS2017 install
Dev prompt may be needed to build libgdexample on Win8.1 http://docs.godotengine.org/en/latest/tutorials/plugins/gdnative/gdnative-cpp-example.html
Builds successfully from a 64 bit dev prompt via: Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat
Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat
Issue (was): http://docs.godotengine.org/en/latest/tutorials/plugins/gdnative/gdnative-cpp-example.html#compiling-the-plugin
Building the example from a regular terminal window presented with: scons platform=windows scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... cl /Fosrc\gdexample.obj /c src\gdexample.cpp /TP /nologo -DWIN32 -D_WIN32 -D_WINDOWS -W3 -GR -D_CRT_SECURE_NO_WARNINGS -EHsc -D_DEBUG -MDd /I. /Igodot-cpp\godot_headers /Igodot-cpp\include /Igodot-cpp\include\core /Igodot-cpp\include\gen /Isrc gdexample.cpp C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\include\yvals_core.h(298) : fatal error C1189: #error : STL1001: Unexpected compiler version, expected MSVC 19.15 or newer. scons: *** [src\gdexample.obj] Error 2 scons: building terminated because of errors.
scons platform=windows scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... cl /Fosrc\gdexample.obj /c src\gdexample.cpp /TP /nologo -DWIN32 -D_WIN32 -D_WINDOWS -W3 -GR -D_CRT_SECURE_NO_WARNINGS -EHsc -D_DEBUG -MDd /I. /Igodot-cpp\godot_headers /Igodot-cpp\include /Igodot-cpp\include\core /Igodot-cpp\include\gen /Isrc gdexample.cpp C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\include\yvals_core.h(298) : fatal error C1189: #error : STL1001: Unexpected compiler version, expected MSVC 19.15 or newer. scons: *** [src\gdexample.obj] Error 2 scons: building terminated because of errors.
Btw... Thanks for your work on this!
Hmm, yeah that should probably be made clearer in the docs.. I've left 32bit long behind and the examples are all using the 64bit compilers. (sorry for the late response)
OS/device including version: Windows 8.1 64bit, 8GB AMD FX 6350 6 core Recent VS2017 install
Dev prompt may be needed to build libgdexample on Win8.1 http://docs.godotengine.org/en/latest/tutorials/plugins/gdnative/gdnative-cpp-example.html
Builds successfully from a 64 bit dev prompt via:
Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat
Issue (was): http://docs.godotengine.org/en/latest/tutorials/plugins/gdnative/gdnative-cpp-example.html#compiling-the-plugin
Building the example from a regular terminal window presented with:
scons platform=windows scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... cl /Fosrc\gdexample.obj /c src\gdexample.cpp /TP /nologo -DWIN32 -D_WIN32 -D_WINDOWS -W3 -GR -D_CRT_SECURE_NO_WARNINGS -EHsc -D_DEBUG -MDd /I. /Igodot-cpp\godot_headers /Igodot-cpp\include /Igodot-cpp\include\core /Igodot-cpp\include\gen /Isrc gdexample.cpp C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\include\yvals_core.h(298) : fatal error C1189: #error : STL1001: Unexpected compiler version, expected MSVC 19.15 or newer. scons: *** [src\gdexample.obj] Error 2 scons: building terminated because of errors.