[SOLVED] Trouble Building .dll and .lib files

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

JofuInSpace
Just popping in
Just popping in
Posts: 2
Joined: Fri Jun 10, 2011 05:06

[SOLVED] Trouble Building .dll and .lib files

Postby JofuInSpace » Fri Jun 10, 2011 05:16

Hey, I've spent the last couple of hours stuck on this problem. I'm trying to create the CEGUI dlls for use in Ogre3D. I'm using Visual Studio 2010 for compilation.

I've completely followed everything on the wiki article at: http://www.cegui.org.uk/wiki/index.php/ ... reRenderer

I get this linker error when compiling:
Error 29 fatal error LNK1104: cannot open file 'libboost_thread-vc90-mt-gd-1_42.lib' CEGUIOgreRenderer CEGUIOgreRenderer

So I've narrowed it down to not being able to find the boost .lib files that it needs as dependencies for linking. So I include the paths to my boost .libs in my Ogre3D folder in "Additional Dependencies" for my project. Only to find out that the version of the .lib that I have is "libboost_thread-vc100-mt-gd-1_42.lib" and not "libboost_thread-vc90-mt-gd-1_42.lib". tldr; 100 and not 90.

It would seem I have a more recent version of Boost, or something. Anyone got any ideas? If you need more information, just let me know. I'm completely stuck right now.
Last edited by JofuInSpace on Fri Jun 10, 2011 11:59, edited 1 time in total.

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: Trouble Building .dll and .lib files

Postby Kulik » Fri Jun 10, 2011 08:47

Seems like a misconfiguration to me.

vc9 is Visual Studio 2008, vc10 is 2010. Boost uses the nasty pragma autolinking so it always selects the right version. Make sure you are building everything using MSVC 2010.

JofuInSpace
Just popping in
Just popping in
Posts: 2
Joined: Fri Jun 10, 2011 05:06

Re: Trouble Building .dll and .lib files

Postby JofuInSpace » Fri Jun 10, 2011 11:59

Doh. I was compiling with VS2008 instead of VS2010, which I guess my Boost was configured for. Thanks for the help. I'm all good now. I wish I had came here sooner :]


Return to “Help”

Who is online

Users browsing this forum: No registered users and 10 guests