when trying to compile STK with MinGW on Debian9 for Windows-64, I encounter lots of errors within the Irrlicht lib.
Example 1:
- {l Code}: {l Select All Code}
lib/irrlicht/CMakeFiles/stkirrlicht.dir/build.make:138: recipe for target 'lib/irrlicht/CMakeFiles/stkirrlicht.dir/source/Irrlicht/CBoneSceneNode.cpp.obj' failed
make[2]: *** [lib/irrlicht/CMakeFiles/stkirrlicht.dir/source/Irrlicht/CBoneSceneNode.cpp.obj] Error 1
In file included from /usr/supertux/stk-code/lib/irrlicht/source/Irrlicht/CAttributes.cpp:6:0:
/usr/supertux/stk-code/lib/irrlicht/source/Irrlicht/CAttributeImpl.h: In member function ‘virtual irr::core::stringw irr::io::CUserPointerAttribute::getStringW()’:
/usr/supertux/stk-code/lib/irrlicht/source/Irrlicht/CAttributeImpl.h:2022:33: error: ‘_snwprintf’ was not declared in this scope
swprintf(buf, 32, L"%p", Value);
Example 2:
- {l Code}: {l Select All Code}
lib/irrlicht/CMakeFiles/stkirrlicht.dir/build.make:113: recipe for target 'lib/irrlicht/CMakeFiles/stkirrlicht.dir/source/Irrlicht/CBillboardSceneNode.cpp.obj' failed
make[2]: *** [lib/irrlicht/CMakeFiles/stkirrlicht.dir/source/Irrlicht/CBillboardSceneNode.cpp.obj] Error 1
In file included from /usr/supertux/stk-code/lib/irrlicht/include/matrix4.h:14:0,
from /usr/supertux/stk-code/lib/irrlicht/include/IAttributes.h:18,
from /usr/supertux/stk-code/lib/irrlicht/source/Irrlicht/CAttributes.h:8,
from /usr/supertux/stk-code/lib/irrlicht/source/Irrlicht/CAttributes.cpp:5:
/usr/supertux/stk-code/lib/irrlicht/include/irrString.h: In instantiation of ‘irr::core::string<T, TAlloc>::string(double) [with T = wchar_t; TAlloc = irr::core::irrAllocator<wchar_t>]’:
/usr/supertux/stk-code/lib/irrlicht/source/Irrlicht/CAttributeImpl.h:171:37: required from here
/usr/supertux/stk-code/lib/irrlicht/include/irrString.h:109:11: error: ‘_snprintf’ was not declared in this scope
snprintf(tmpbuf, 255, "%0.6f", number);
Any idea what could be wrong with these parts of irrlicht? And what did I do wrong?
Thanks in advance
PT400C