MegaGlest Forum

Archives (read only) => Glest Advanced Engine => General discussion => Topic started by: ChupaReaper on 31 May 2011, 23:42:59

Title: Latest GIT: Error Building
Post by: ChupaReaper 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)
Title: Re: Latest GIT: Error Building
Post by: hailstone on 1 June 2011, 00:32:14
Try rerun CMake and do a clean rebuild. It should be glestadv.exe not lib.
Title: Re: Latest GIT: Error Building
Post by: ChupaReaper 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.
Title: Re: Latest GIT: Error Building
Post by: hailstone 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.
Title: Re: Latest GIT: Error Building
Post by: silnarm 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' ??
Title: Re: Latest GIT: Error Building
Post by: ChupaReaper 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.