Page 1 of 1
Can not Build with Windows7 with VS12 (Express Edition)

Posted:
02 May 2013, 15:53
by mpujari80
I am trying to build STK on Windows7 with VS12 (Express Edition), I followed the instructions given in the site "http://supertuxkart.sourceforge.net/How_to_build_the_Windows_version", and downloaded the required dependencies. When I try to build, its giving me below errors, could any one please help me out to resolve the issue (I am sort of newbie)
Error 10 error LNK1120: 2 unresolved externals E:\dev\game-dev\tuxstark\supertuxkart_d.exe supertuxkart
Error 5 error LNK2001: unresolved external symbol "class irr::core::CMatrix4<float> const irr::core::IdentityMatrix" (?IdentityMatrix@core@irr@@3V?$CMatrix4@M@12@B) E:\dev\game-dev\tuxstark\src\ide\vc12\track.obj supertuxkart
Error 6 error LNK2001: unresolved external symbol "class irr::core::CMatrix4<float> const irr::core::IdentityMatrix" (?IdentityMatrix@core@irr@@3V?$CMatrix4@M@12@B) E:\dev\game-dev\tuxstark\src\ide\vc12\rain.obj supertuxkart
Error 8 error LNK2001: unresolved external symbol "class irr::core::CMatrix4<float> const irr::core::IdentityMatrix" (?IdentityMatrix@core@irr@@3V?$CMatrix4@M@12@B) E:\dev\game-dev\tuxstark\src\ide\vc12\irr_driver.obj supertuxkart
Error 9 error LNK2001: unresolved external symbol "class irr::core::CMatrix4<float> const irr::core::IdentityMatrix" (?IdentityMatrix@core@irr@@3V?$CMatrix4@M@12@B) E:\dev\game-dev\tuxstark\src\ide\vc12\slip_stream.obj supertuxkart
Error 3 error LNK2001: unresolved external symbol "class irr::video::SMaterial irr::video::IdentityMaterial" (?IdentityMaterial@video@irr@@3VSMaterial@12@A) E:\dev\game-dev\tuxstark\src\ide\vc12\lod_node.obj supertuxkart
Error 4 error LNK2001: unresolved external symbol "class irr::video::SMaterial irr::video::IdentityMaterial" (?IdentityMaterial@video@irr@@3VSMaterial@12@A) E:\dev\game-dev\tuxstark\src\ide\vc12\per_camera_node.obj supertuxkart
Error 7 error LNK2019: unresolved external symbol "class irr::core::CMatrix4<float> const irr::core::IdentityMatrix" (?IdentityMatrix@core@irr@@3V?$CMatrix4@M@12@B) referenced in function "public: static unsigned int __cdecl std::char_traits<char>::length(char const *)" (?length@?$char_traits@D@std@@SAIPBD@Z) E:\dev\game-dev\tuxstark\src\ide\vc12\physics.obj supertuxkart
thanks in-advance
Re: Can not Build with Windows7 with VS12 (Express Edition)

Posted:
03 May 2013, 02:18
by hiker
mpujari80 {l Wrote}:I am trying to build STK on Windows7 with VS12 (Express Edition), I followed the instructions given in the site "http://supertuxkart.sourceforge.net/How_to_build_the_Windows_version", and downloaded the required dependencies. When I try to build, its giving me below errors, could any one please help me out to resolve the issue (I am sort of newbie)
We don't have a vs 12 project file yet, but afaik Funto is working on it (he originally had the same problems you had iirc). Then it should be in STK soonish.
Please stay tuned!
Joerg
Re: Can not Build with Windows7 with VS12 (Express Edition)

Posted:
05 May 2013, 17:34
by mpujari80
Any directions to resolve the issue would be great.
thanks and regards,
mpujari
Re: Can not Build with Windows7 with VS12 (Express Edition)

Posted:
10 May 2013, 01:50
by rhapdog
I'm also interested in building this using VS12 in Windows 7 (64-bit). Would be nice to have a project file "soonish" rather than "laterish".
I would like to create a 64-bit build. For this, will I need to obtain (or build) 64-bit dependencies as well?
Re: Can not Build with Windows7 with VS12 (Express Edition)

Posted:
11 May 2013, 02:48
by sj04736
For a 64-bit windows build, I would recommend you build your own dependencies. For most of them, this is very straightforward. Fribidi needs to be built with mingw, then the library format needs to be converted to something VS can use.
My 64 bit build uses:
- {l Code}: {l Select All Code}
fribidi 0.19.5
Built unmodified with mingw64, then .lib file created with visual studio
from .def file because mingw doesn't create a VC-compatible .lib
curl 7.26.0
Built unmodified with VC
libogg 1.3.0
Built unmodified with VC
libvorbis 1.3.3
Built unmodified with VC
openal-soft 1.14
Built unmodified with VC
pthreads-w32 2.9.1
Built unmodified with VC
Re: Can not Build with Windows7 with VS12 (Express Edition)

Posted:
11 May 2013, 19:22
by Auria
Stephen, do you think you may be able to share your dependencies? that could help people
Otherwise, I do not use windows for STK development, so Visual Studio 2012 support should be checked with Joerg (hiker)
Re: Can not Build with Windows7 with VS12 (Express Edition)

Posted:
11 May 2013, 21:11
by sj04736
http://download.tuxfamily.org/stkaddons/64-bit-deps.zipThe 64-bit dependencies I compiled are here, but I can't guarantee that they work. My setup was rather fragile.
Re: Can not Build with Windows7 with VS12 (Express Edition)

Posted:
14 May 2013, 12:29
by Funto
Hi,
Sorry for the late answer, I wasn't up-to-date with the forums lately...
I added VS2012 projects that compile for the "debug" target, but the "release" target doesn't work ("error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in inetwork_http.obj C:\Projets\stk\trunk\src\ide\vc11\Irrlicht.lib(sha1.obj) ")
I didn't find enough time to tackle that problem, but as you seem to be in need of a working VS2012 project, at least I commited what I had.
Actually I would rather fix the CMake build system so that it works correctly on Windows than maintain separate projects for several IDEs/build systems.
Re: Can not Build with Windows7 with VS12 (Express Edition)

Posted:
14 May 2013, 12:30
by Funto
Ah and that's for 32 bits builds only, I didn't test x64.
Re: Can not Build with Windows7 with VS12 (Express Edition)

Posted:
16 May 2013, 17:06
by mpujari80
I used the new checked in "vc11\supertuxkart.sln" (using VC12 Express), and I followed the steps like extracting the dependencies (dependencies_for_0.8.zip
and irrlicht.windows7.zip) but still I end up in errors as below, am I still missing some thing (as I said I am a newbie), could anyone pls give me directions.
Error 9 error LNK1120: 2 unresolved externals E:\dev\game-dev\tuxstark\supertuxkart_d.exe supertuxkart
Error 4 error LNK2001: unresolved external symbol "class irr::core::CMatrix4<float> const irr::core::IdentityMatrix" (?IdentityMatrix@core@irr@@3V?$CMatrix4@M@12@B) E:\dev\game-dev\tuxstark\src\ide\vc11\track.obj supertuxkart
Error 5 error LNK2001: unresolved external symbol "class irr::core::CMatrix4<float> const irr::core::IdentityMatrix" (?IdentityMatrix@core@irr@@3V?$CMatrix4@M@12@B) E:\dev\game-dev\tuxstark\src\ide\vc11\rain.obj supertuxkart
Error 7 error LNK2001: unresolved external symbol "class irr::core::CMatrix4<float> const irr::core::IdentityMatrix" (?IdentityMatrix@core@irr@@3V?$CMatrix4@M@12@B) E:\dev\game-dev\tuxstark\src\ide\vc11\irr_driver.obj supertuxkart
Error 8 error LNK2001: unresolved external symbol "class irr::core::CMatrix4<float> const irr::core::IdentityMatrix" (?IdentityMatrix@core@irr@@3V?$CMatrix4@M@12@B) E:\dev\game-dev\tuxstark\src\ide\vc11\slip_stream.obj supertuxkart
Error 2 error LNK2001: unresolved external symbol "class irr::video::SMaterial irr::video::IdentityMaterial" (?IdentityMaterial@video@irr@@3VSMaterial@12@A) E:\dev\game-dev\tuxstark\src\ide\vc11\lod_node.obj supertuxkart
Error 3 error LNK2001: unresolved external symbol "class irr::video::SMaterial irr::video::IdentityMaterial" (?IdentityMaterial@video@irr@@3VSMaterial@12@A) E:\dev\game-dev\tuxstark\src\ide\vc11\per_camera_node.obj supertuxkart
Error 6 error LNK2019: unresolved external symbol "class irr::core::CMatrix4<float> const irr::core::IdentityMatrix" (?IdentityMatrix@core@irr@@3V?$CMatrix4@M@12@B) referenced in function "public: static unsigned int __cdecl std::char_traits<char>::length(char const *)" (?length@?$char_traits@D@std@@SAIPBD@Z) E:\dev\game-dev\tuxstark\src\ide\vc11\physics.obj supertuxkart
thanks in advance...
Re: Can not Build with Windows7 with VS12 (Express Edition)

Posted:
17 May 2013, 21:25
by Funto
Sorry, I forgot to commit the Irrlicht VS2012 project :/
Can you please test again? (Debug x86)
Re: Can not Build with Windows7 with VS12 (Express Edition)

Posted:
19 May 2013, 11:23
by mpujari80
Took the update but still I end up in same errors (8 errors).
thanks,
mpujari
Re: Can not Build with Windows7 with VS12 (Express Edition)

Posted:
20 May 2013, 11:58
by mpujari80
Hi,
Now I am able to compile successfully, have made just one change in "Linker->General->Additional Library Directories" of supertuxkart project properties, have moved up "lib/irrlicht/lib/Win32-visualstudio" dir. Have attached the patch.
thanks and regards,
Mahesh Pujari
Re: Can not Build with Windows7 with VS12 (Express Edition)

Posted:
22 May 2013, 12:30
by hiker
mpujari80 {l Wrote}: Now I am able to compile successfully, have made just one change in "Linker->General->Additional Library Directories" of supertuxkart project properties, have moved up "lib/irrlicht/lib/Win32-visualstudio" dir. Have attached the patch.
OK, it works for me, so I've applied this (r12780 ). Funto, does everything still work for you?
Thanks a lot!
Joerg