My guibuild:undefined reference to symbol 'typeinfo for Poco

fabrixx

08-07-2011 21:48:16

I'm tryng to compile mygui 3.0.1
I have compiled last ogre trunk version and on my Debian wheezy i have all dipendences for mygui.

cmake configure is ok but make stopped with error:

[ 48%] Built target Plugin_StrangeButton
Linking CXX executable ../../bin/Demo_Colour
/usr/bin/ld: CMakeFiles/Demo_Colour.dir/__/__/Common/Base/Ogre/BaseManager.cpp.o: undefined reference to symbol 'typeinfo for Poco::SystemException'
/usr/bin/ld: note: 'typeinfo for Poco::SystemException' is defined in DSO /usr/lib64/libPocoFoundation.so.9 so try adding it to the linker command line
/usr/lib64/libPocoFoundation.so.9: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [bin/Demo_Colour] Error 1
make[1]: *** [Demos/Demo_Colour/CMakeFiles/Demo_Colour.dir/all] Error 2
make: *** [all] Error 2


Anyone can help me to solve this?

Thanks

Altren

08-07-2011 23:52:08

Disable MYGUI_BUILD_PLUGINS in CMake. I guess they doesn't work on Max.

fabrixx

09-07-2011 18:59:50

i've disabled MYGUI_BUILD_PLUGINS from cmake-gui, plugin are not builded but have same error: :(


a member of 'this' [-Wshadow]
/usr/include/OIS/OISKeyboard.h:299:4: warning: declaration of ‘vendor’ shadows a member of 'this' [-Wshadow]
[ 51%] Building CXX object Demos/Demo_Colour/CMakeFiles/Demo_Colour.dir/__/__/Common/Input/OIS/PointerManager.cpp.o
In file included from /usr/include/OIS/OIS.h:27:0,
from /home/fabrizio/Scrivania/stuntrally/MyGUI3.0/Common/precompiled.h:4,
from /home/fabrizio/Scrivania/stuntrally/MyGUI3.0/Common/Input/OIS/PointerManager.cpp:8:
/usr/include/OIS/OISObject.h: In constructor ‘OIS::Object::Object(const string&, OIS::Type, bool, int, OIS::InputManager*)’:
/usr/include/OIS/OISObject.h:72:41: warning: declaration of ‘buffered’ shadows a member of 'this' [-Wshadow]
/usr/include/OIS/OISObject.h:72:41: warning: declaration of ‘vendor’ shadows a member of 'this' [-Wshadow]
In file included from /usr/include/OIS/OIS.h:28:0,
from /home/fabrizio/Scrivania/stuntrally/MyGUI3.0/Common/precompiled.h:4,
from /home/fabrizio/Scrivania/stuntrally/MyGUI3.0/Common/Input/OIS/PointerManager.cpp:8:
/usr/include/OIS/OISMouse.h: In constructor ‘OIS::Mouse::Mouse(const string&, bool, int, OIS::InputManager*)’:
/usr/include/OIS/OISMouse.h:129:4: warning: declaration of ‘buffered’ shadows a member of 'this' [-Wshadow]
/usr/include/OIS/OISMouse.h:129:4: warning: declaration of ‘vendor’ shadows a member of 'this' [-Wshadow]
In file included from /usr/include/OIS/OIS.h:29:0,
from /home/fabrizio/Scrivania/stuntrally/MyGUI3.0/Common/precompiled.h:4,
from /home/fabrizio/Scrivania/stuntrally/MyGUI3.0/Common/Input/OIS/PointerManager.cpp:8:
/usr/include/OIS/OISKeyboard.h: In constructor ‘OIS::Keyboard::Keyboard(const string&, bool, int, OIS::InputManager*)’:
/usr/include/OIS/OISKeyboard.h:299:4: warning: declaration of ‘buffered’ shadows a member of 'this' [-Wshadow]
/usr/include/OIS/OISKeyboard.h:299:4: warning: declaration of ‘vendor’ shadows a member of 'this' [-Wshadow]
Linking CXX executable ../../bin/Demo_Colour
/usr/bin/ld: CMakeFiles/Demo_Colour.dir/__/__/Common/Base/Ogre/BaseManager.cpp.o: undefined reference to symbol 'typeinfo for Poco::SystemException'
/usr/bin/ld: note: 'typeinfo for Poco::SystemException' is defined in DSO /usr/lib64/libPocoFoundation.so.9 so try adding it to the linker command line
/usr/lib64/libPocoFoundation.so.9: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [bin/Demo_Colour] Error 1
make[1]: *** [Demos/Demo_Colour/CMakeFiles/Demo_Colour.dir/all] Error 2
make: *** [all] Error 2
fabrizio@debian:~/Scrivania/stuntrally/myguibuild$

fabrixx

09-07-2011 21:25:14

Finally solved adding -lPocoFoundation in every link.txt files of Cmake .dir folders