[Solved] Problem linking CEGUISampleFramework (boost/OGRE)

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

pav
Not too shy to talk
Not too shy to talk
Posts: 37
Joined: Thu Dec 01, 2011 14:17

[Solved] Problem linking CEGUISampleFramework (boost/OGRE)

Postby pav » Thu Jan 17, 2013 08:49

I'm getting the following error when building from Mercurial.

Code: Select all

[ 67%] Linking CXX executable ../bin/CEGUISampleFramework
/usr/bin/ld: CMakeFiles/CEGUISampleFramework.dir/src/SamplesFrameworkBase.cpp.o: undefined reference to symbol '_ZN5boost6system15system_categoryEv'
/usr/bin/ld: note: '_ZN5boost6system15system_categoryEv' is defined in DSO /usr/lib/libboost_system.so.1.50.0 so try adding it to the linker command line
/usr/lib/libboost_system.so.1.50.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[2]: *** [bin/CEGUISampleFramework] Error 1
make[1]: *** [samples_framework/CMakeFiles/CEGUISampleFramework.dir/all] Error 2

I'm using Archlinux. Here's two relevant topics: OGRE forums, Arch forums.
Question: Is this a problem with boost, OGRE, CEGUI or Archlinux? (yes, I'm a noob)
Last edited by pav on Tue Jan 22, 2013 11:26, edited 1 time in total.

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

Re: Problem linking CEGUISampleFramework (boost/OGRE)

Postby Kulik » Thu Jan 17, 2013 09:57

This is a change in boost that they made in 1.50 release AFAIK. You have to link to boost_system now.

There is a more elaborate thread about this on the Ogre forums and elsewhere if you are interested in the "why" :-)

pav
Not too shy to talk
Not too shy to talk
Posts: 37
Joined: Thu Dec 01, 2011 14:17

Re: Problem linking CEGUISampleFramework (boost/OGRE)

Postby pav » Thu Jan 17, 2013 10:17

Kulik wrote:This is a change in boost that they made in 1.50 release AFAIK. You have to link to boost_system now.

So it's CEGUI's build script that has to be updated, right? Or Ogre's? :? (aka "How to fix without studying for 2 days and nights")

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

Re: Problem linking CEGUISampleFramework (boost/OGRE)

Postby Kulik » Thu Jan 17, 2013 12:30

CEGUI Ogre Renderer has to link to boost_system in this instance, so CEGUI's. However we refuse to introduce these hacks in our build systems because it's not us making a mistake :-) We will have to figure out some clean solution. For the moment you can just adjust the flags to link to boost_system.

EDIT: Not CEGUIBase, CEGUIOgreRenderer!

pav
Not too shy to talk
Not too shy to talk
Posts: 37
Joined: Thu Dec 01, 2011 14:17

Re: Problem linking CEGUISampleFramework (boost/OGRE)

Postby pav » Tue Jan 22, 2013 11:26

Thanks, I had to change the last line of "samples_framework/CMakeLists.txt" from:

Code: Select all

cegui_target_link_libraries(${CEGUI_TARGET_NAME} ${CEGUI_BASE_LIBNAME})


to

Code: Select all

cegui_target_link_libraries(${CEGUI_TARGET_NAME} ${CEGUI_BASE_LIBNAME} boost_system)


Return to “Help”

Who is online

Users browsing this forum: No registered users and 12 guests