Can not Build with Windows7 with VS12 (Express Edition)

Can not Build with Windows7 with VS12 (Express Edition)

Postby mpujari80 » 02 May 2013, 15:53

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
User avatar
mpujari80
 
Posts: 6
Joined: 02 May 2013, 09:26

Re: Can not Build with Windows7 with VS12 (Express Edition)

Postby hiker » 03 May 2013, 02:18

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
hiker
 
Posts: 1435
Joined: 07 Dec 2009, 12:15
Location: Melbourne, Australia

Re: Can not Build with Windows7 with VS12 (Express Edition)

Postby mpujari80 » 05 May 2013, 17:34

Any directions to resolve the issue would be great.

thanks and regards,
mpujari
User avatar
mpujari80
 
Posts: 6
Joined: 02 May 2013, 09:26

Re: Can not Build with Windows7 with VS12 (Express Edition)

Postby rhapdog » 10 May 2013, 01:50

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?
rhapdog
 
Posts: 1
Joined: 10 May 2013, 01:41

Re: Can not Build with Windows7 with VS12 (Express Edition)

Postby sj04736 » 11 May 2013, 02:48

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
Stephen
Role: STK-Addons Developer

Image
User avatar
sj04736
 
Posts: 146
Joined: 07 Dec 2009, 02:56
Location: Western Canada

Re: Can not Build with Windows7 with VS12 (Express Edition)

Postby Auria » 11 May 2013, 19:22

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)
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: Can not Build with Windows7 with VS12 (Express Edition)

Postby sj04736 » 11 May 2013, 21:11

http://download.tuxfamily.org/stkaddons/64-bit-deps.zip

The 64-bit dependencies I compiled are here, but I can't guarantee that they work. My setup was rather fragile.
Stephen
Role: STK-Addons Developer

Image
User avatar
sj04736
 
Posts: 146
Joined: 07 Dec 2009, 02:56
Location: Western Canada

Re: Can not Build with Windows7 with VS12 (Express Edition)

Postby Funto » 14 May 2013, 12:29

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.
Funto
 
Posts: 459
Joined: 09 Dec 2009, 13:47
Location: Bordeaux, France

Re: Can not Build with Windows7 with VS12 (Express Edition)

Postby Funto » 14 May 2013, 12:30

Ah and that's for 32 bits builds only, I didn't test x64.
Funto
 
Posts: 459
Joined: 09 Dec 2009, 13:47
Location: Bordeaux, France

Re: Can not Build with Windows7 with VS12 (Express Edition)

Postby mpujari80 » 16 May 2013, 17:06

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...
User avatar
mpujari80
 
Posts: 6
Joined: 02 May 2013, 09:26

Re: Can not Build with Windows7 with VS12 (Express Edition)

Postby Funto » 17 May 2013, 21:25

Sorry, I forgot to commit the Irrlicht VS2012 project :/
Can you please test again? (Debug x86)
Funto
 
Posts: 459
Joined: 09 Dec 2009, 13:47
Location: Bordeaux, France

Re: Can not Build with Windows7 with VS12 (Express Edition)

Postby mpujari80 » 19 May 2013, 11:23

Took the update but still I end up in same errors (8 errors).

thanks,
mpujari
User avatar
mpujari80
 
Posts: 6
Joined: 02 May 2013, 09:26

Re: Can not Build with Windows7 with VS12 (Express Edition)

Postby mpujari80 » 20 May 2013, 11:58

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
Attachments
superTuxKart-vc11.patch
(1.1 KiB) Downloaded 225 times
User avatar
mpujari80
 
Posts: 6
Joined: 02 May 2013, 09:26

Re: Can not Build with Windows7 with VS12 (Express Edition)

Postby hiker » 22 May 2013, 12:30

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
hiker
 
Posts: 1435
Joined: 07 Dec 2009, 12:15
Location: Melbourne, Australia

Who is online

Users browsing this forum: No registered users and 1 guest