Author Topic: Latest GIT: Error Building  (Read 1410 times)

ChupaReaper

  • Guest
Latest GIT: Error Building
« on: 31 May 2011, 23:42:59 »
Got this when trying to build a few minutes ago:
Code: [Select]
3>     Creating library C:/GAE/trunk/build/source/game/Release/glestadv.lib and object C:/GAE/trunk/build/source/game/Release/glestadv.exp
3>renderer.obj : error LNK2001: unresolved external symbol "public: bool __thiscall Shared::Graphics::TextureManager::deleteTexture2D(class Shared::Graphics::Texture2D *)" (?deleteTexture2D@TextureManager@Graphics@Shared@@QAE_NPAVTexture2D@23@@Z)
3>terrain_renderer.obj : error LNK2001: unresolved external symbol "public: void __thiscall Shared::Graphics::Texture2D::setPixmap(class Shared::Graphics::Pixmap2D *)" (?setPixmap@Texture2D@Graphics@Shared@@QAEXPAVPixmap2D@23@@Z)
3>widget_window.obj : error LNK2001: unresolved external symbol "bool Shared::Graphics::use_tangents" (?use_tangents@Graphics@Shared@@3_NA)

hailstone

  • Local Moderator
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: Latest GIT: Error Building
« Reply #1 on: 1 June 2011, 00:32:14 »
Try rerun CMake and do a clean rebuild. It should be glestadv.exe not lib.
« Last Edit: 1 June 2011, 00:34:24 by hailstone »
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

ChupaReaper

  • Guest
Re: Latest GIT: Error Building
« Reply #2 on: 1 June 2011, 01:42:13 »
Try rerun CMake and do a clean rebuild. It should be glestadv.exe not lib.
Tried that but it turns out that even though it isn't a debug version (set in CMake) it has to built using the debug configuration in Visual 10, using the release config creates this problem, it never used to though.

hailstone

  • Local Moderator
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: Latest GIT: Error Building
« Reply #3 on: 1 June 2011, 05:06:45 »
Maybe glestadv.lib is for the stack traces. http://msdn.microsoft.com/en-us/library/67wc07b9%28v=vs.80%29.aspx

I got it to compile as Release with Visual Studio 2008 so maybe it's a 2010 issue. I don't think debug version in CMake has anything to do with build configuration.
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Latest GIT: Error Building
« Reply #4 on: 1 June 2011, 13:12:29 »
I got it to compile as Release with Visual Studio 2008 so maybe it's a 2010 issue. I don't think debug version in CMake has anything to do with build configuration.

The build type in CMake is indeed ignored when using visual studio generators.

As to the original problem, seems like it is/was trying to link with old object files... a clean and rebuild should have fixed it, @Chuppa, is this 'Release' config, or 'RelWithDebInf' ??
Glest Advanced Engine - Code Monkey

Timeline | Downloads

ChupaReaper

  • Guest
Re: Latest GIT: Error Building
« Reply #5 on: 1 June 2011, 16:11:21 »
I've found out what was causing it. For some reason the projects build type changed to Debug, so to change it back I set glestae to Release which didn't work, turns out I had to set everything to Release.