链接升压和放大mygui 3.2.1未定义的符号

时间:2014-10-05 14:56:05

标签: user-interface boost linker ogre undefined-symbol

我正在尝试在kubuntu上安装myGui 3.2.1。但是,在链接文件时会出现以下问题:

/usr/bin/ld: CMakeFiles/Demo_Colour.dir/DemoKeeper.cpp.o: undefined reference to enter code here/usr/bin/ld: CMakeFiles/Demo_Gui.dir/DemoKeeper.cpp.o: undefined reference to symbol '_ZN5boost6system15system_categoryEv'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libboost_system.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
symbol '_ZN5boost6system15system_categoryEv'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libboost_system.so: error adding symbols: DSO missing from command/usr line
collect2: error: ld returned 1 exit status
/usr/bin/ld: CMakeFiles/Demo_Controllers.dir/DemoKeeper.cpp.o: undefined reference to symbol '_ZN5boost6system15system_categoryEv'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libboost_system.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
/bin/ld: CMakeFiles/Demo_Console.dir/DemoKeeper.cpp.o: undefined reference to symbol '_ZN5boost6system15system_categoryEv'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libboost_system.so: error adding symbols: DSO missing from command line

我猜有一个问题与boost相关联,我发现了一些方法来解决它,但这些解决方案仅适用于archlinux并且对我不起作用。无论如何,我查看了myGui的CMAKE文件,找不到有关提升的任何内容......

我希望得到各种形式的帮助!

2 个答案:

答案 0 :(得分:0)

  

我查看了myGui的CMAKE文件,无法找到有关提升的任何内容...

您显然需要链接相应的Boost库。 This answer可能有帮助。

答案 1 :(得分:0)

此问题已在git存储库中修复。 在MyGUI中没有使用Boost,但是当你使用OgrePlatform构建MyGUI时,OGRE需要对它的头文件进行提升。