Problems installing on Ubuntu 13.10

150 views
Skip to first unread message

David Braude

unread,
Dec 11, 2013, 1:52:32 PM12/11/13
to python-ogre...@googlegroups.com
Hi

I have been trying to get python-orge working on my Ubuntu box and I'm out of ideas.

It seems there is a linker problem but I'm not sure how to fix it not really being fimiliar with CMake.

The problem:
When I try to run:

python python-ogre/BuildModule.py -b ogre --usesystem

or

sudo python python-ogre/BuildModule.py -b ogre --usesystem

The build fails when it tries to build the Sample Browser

log.out:

12-11 18:13 PythonOgre.BuildModule INFO     Build Command tar  jxf /home/david/development/downloads/ogre_src_v1-7-2.tar.bz2 --overwrite 
12-11 18:13 PythonOgre.BuildModule DEBUG    Spawning 'tar  jxf /home/david/development/downloads/ogre_src_v1-7-2.tar.bz2 --overwrite' in '/home/david/development'
12-11 18:13 PythonOgre.BuildModule INFO     Build Command mv ogre_src_v1-7-2 ogre 
12-11 18:13 PythonOgre.BuildModule DEBUG    Spawning 'mv ogre_src_v1-7-2 ogre' in '/home/david/development'
12-11 18:13 PythonOgre.BuildModule WARNING  Task Failed
12-11 18:13 PythonOgre.BuildModule DEBUG    
12-11 18:13 PythonOgre.BuildModule DEBUG    mv: cannot move ‘ogre_src_v1-7-2’ to ‘ogre/ogre_src_v1-7-2’: Directory not empty

12-11 18:13 PythonOgre.BuildModule INFO     Build Command cmake . -DOGRE_INSTALL_PLUGINS_HEADERS=TRUE -DCMAKE_INSTALL_PREFIX:PATH=/usr 
12-11 18:13 PythonOgre.BuildModule DEBUG    Spawning 'cmake . -DOGRE_INSTALL_PLUGINS_HEADERS=TRUE -DCMAKE_INSTALL_PREFIX:PATH=/usr' in 'ogre'
12-11 18:13 PythonOgre.BuildModule INFO     Build Command make 
12-11 18:13 PythonOgre.BuildModule DEBUG    Spawning 'make' in 'ogre'
12-11 18:13 PythonOgre.BuildModule WARNING  Task Failed
12-11 18:13 PythonOgre.BuildModule DEBUG    [ 43%] Built target OgreMain
[ 57%] Built target RenderSystem_GL
[ 60%] Built target Plugin_OctreeSceneManager
[ 62%] Built target Plugin_BSPSceneManager
[ 63%] Built target Plugin_CgProgramManager
[ 68%] Built target Plugin_ParticleFX
[ 71%] Built target Plugin_PCZSceneManager
[ 74%] Built target Plugin_OctreeZone
[ 76%] Built target OgrePaging
[ 76%] Built target OgreProperty
[ 78%] Built target OgreTerrain
[ 85%] Built target OgreRTShaderSystem
[ 85%] Built target Sample_BezierPatch
[ 85%] Built target Sample_CameraTrack
[ 86%] Built target Sample_Character
[ 86%] Built target Sample_Compositor
[ 86%] Built target Sample_FacialAnimation
[ 86%] Built target Sample_Grass
[ 86%] Built target Sample_Instancing
[ 86%] Built target Sample_Lighting
[ 87%] Built target Sample_Ocean
[ 87%] Built target Sample_ParticleFX
[ 87%] Built target Sample_ShaderSystem
[ 87%] Built target Sample_Shadows
[ 87%] Built target Sample_SkeletalAnimation
[ 88%] Built target Sample_SkyBox
[ 88%] Built target Sample_SkyDome
[ 88%] Built target Sample_SkyPlane
[ 88%] Built target Sample_Smoke
[ 89%] Built target Sample_SphereMapping
[ 89%] Built target Sample_Terrain
[ 89%] Built target Sample_TextureFX
[ 89%] Built target Sample_Transparency
[ 90%] Built target Sample_VolumeTex
[ 91%] Built target Sample_Water
[ 92%] Built target Sample_BSP
[ 92%] Built target Sample_CelShading
[ 95%] Built target Sample_DeferredShading
[ 95%] Built target Sample_CubeMapping
[ 95%] Built target Sample_Dot3Bump
[ 96%] Built target Sample_DynTex
[ 96%] Built target Sample_Fresnel
[ 97%] Built target Sample_Isosurf
[ 98%] Built target Sample_ParticleGS
Linking CXX executable ../../bin/SampleBrowser

12-11 18:13 PythonOgre.BuildModule DEBUG    CMakeFiles/SampleBrowser.dir/src/SampleBrowser.cpp.o: In function `thread_exception':
/usr/include/boost/thread/exceptions.hpp:51: undefined reference to `boost::system::system_category()'
CMakeFiles/SampleBrowser.dir/src/SampleBrowser.cpp.o: In function `__static_initialization_and_destruction_0':
/usr/include/boost/system/error_code.hpp:214: undefined reference to `boost::system::generic_category()'
/usr/include/boost/system/error_code.hpp:215: undefined reference to `boost::system::generic_category()'
/usr/include/boost/system/error_code.hpp:216: undefined reference to `boost::system::system_category()'
CMakeFiles/SampleBrowser.dir/src/FileSystemLayerImpl_Unix.cpp.o: In function `__static_initialization_and_destruction_0':
/usr/include/boost/system/error_code.hpp:214: undefined reference to `boost::system::generic_category()'
/usr/include/boost/system/error_code.hpp:215: undefined reference to `boost::system::generic_category()'
/usr/include/boost/system/error_code.hpp:216: undefined reference to `boost::system::system_category()'
../../lib/libOgreMain.so.1.7.2: undefined reference to `boost::this_thread::interruption_point()'
../../lib/libOgreMain.so.1.7.2: undefined reference to `boost::thread::native_handle()'
../../lib/libOgreMain.so.1.7.2: undefined reference to `boost::detail::get_tss_data(void const*)'
../../lib/libOgreMain.so.1.7.2: undefined reference to `boost::this_thread::disable_interruption::~disable_interruption()'
../../lib/libOgreMain.so.1.7.2: undefined reference to `typeinfo for boost::detail::thread_data_base'
../../lib/libOgreMain.so.1.7.2: undefined reference to `boost::detail::get_current_thread_data()'
../../lib/libOgreMain.so.1.7.2: undefined reference to `boost::detail::thread_data_base::~thread_data_base()'
../../lib/libOgreMain.so.1.7.2: undefined reference to `boost::thread::detach()'
../../lib/libOgreMain.so.1.7.2: undefined reference to `boost::thread::hardware_concurrency()'
../../lib/libOgreMain.so.1.7.2: undefined reference to `boost::thread::join_noexcept()'
../../lib/libOgreMain.so.1.7.2: undefined reference to `boost::thread::start_thread_noexcept()'
../../lib/libOgreMain.so.1.7.2: undefined reference to `boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)'
../../lib/libOgreMain.so.1.7.2: undefined reference to `vtable for boost::detail::thread_data_base'
../../lib/libOgreMain.so.1.7.2: undefined reference to `boost::this_thread::disable_interruption::disable_interruption()'
collect2: ld returned 1 exit status
make[2]: *** [bin/SampleBrowser] Error 1
make[1]: *** [Samples/Browser/CMakeFiles/SampleBrowser.dir/all] Error 2
make: *** [all] Error 2

12-11 18:13 PythonOgre.BuildModule INFO     Build Command sudo  make install 
12-11 18:13 PythonOgre.BuildModule DEBUG    Spawning 'sudo  make install' in 'ogre'
12-11 18:13 PythonOgre.BuildModule WARNING  Task Failed
12-11 18:13 PythonOgre.BuildModule DEBUG    [ 43%] Built target OgreMain
[ 57%] Built target RenderSystem_GL
[ 60%] Built target Plugin_OctreeSceneManager
[ 62%] Built target Plugin_BSPSceneManager
[ 63%] Built target Plugin_CgProgramManager
[ 68%] Built target Plugin_ParticleFX
[ 71%] Built target Plugin_PCZSceneManager
[ 74%] Built target Plugin_OctreeZone
[ 76%] Built target OgrePaging
[ 76%] Built target OgreProperty
[ 78%] Built target OgreTerrain
[ 85%] Built target OgreRTShaderSystem
[ 85%] Built target Sample_BezierPatch
[ 85%] Built target Sample_CameraTrack
[ 86%] Built target Sample_Character
[ 86%] Built target Sample_Compositor
[ 86%] Built target Sample_FacialAnimation
[ 86%] Built target Sample_Grass
[ 86%] Built target Sample_Instancing
[ 86%] Built target Sample_Lighting
[ 87%] Built target Sample_Ocean
[ 87%] Built target Sample_ParticleFX
[ 87%] Built target Sample_ShaderSystem
[ 87%] Built target Sample_Shadows
[ 87%] Built target Sample_SkeletalAnimation
[ 88%] Built target Sample_SkyBox
[ 88%] Built target Sample_SkyDome
[ 88%] Built target Sample_SkyPlane
[ 88%] Built target Sample_Smoke
[ 89%] Built target Sample_SphereMapping
[ 89%] Built target Sample_Terrain
[ 89%] Built target Sample_TextureFX
[ 89%] Built target Sample_Transparency
[ 90%] Built target Sample_VolumeTex
[ 91%] Built target Sample_Water
[ 92%] Built target Sample_BSP
[ 92%] Built target Sample_CelShading
[ 95%] Built target Sample_DeferredShading
[ 95%] Built target Sample_CubeMapping
[ 95%] Built target Sample_Dot3Bump
[ 96%] Built target Sample_DynTex
[ 96%] Built target Sample_Fresnel
[ 97%] Built target Sample_Isosurf
[ 98%] Built target Sample_ParticleGS
Linking CXX executable ../../bin/SampleBrowser

12-11 18:13 PythonOgre.BuildModule DEBUG    CMakeFiles/SampleBrowser.dir/src/SampleBrowser.cpp.o: In function `thread_exception':
/usr/include/boost/thread/exceptions.hpp:51: undefined reference to `boost::system::system_category()'
CMakeFiles/SampleBrowser.dir/src/SampleBrowser.cpp.o: In function `__static_initialization_and_destruction_0':
/usr/include/boost/system/error_code.hpp:214: undefined reference to `boost::system::generic_category()'
/usr/include/boost/system/error_code.hpp:215: undefined reference to `boost::system::generic_category()'
/usr/include/boost/system/error_code.hpp:216: undefined reference to `boost::system::system_category()'
CMakeFiles/SampleBrowser.dir/src/FileSystemLayerImpl_Unix.cpp.o: In function `__static_initialization_and_destruction_0':
/usr/include/boost/system/error_code.hpp:214: undefined reference to `boost::system::generic_category()'
/usr/include/boost/system/error_code.hpp:215: undefined reference to `boost::system::generic_category()'
/usr/include/boost/system/error_code.hpp:216: undefined reference to `boost::system::system_category()'
../../lib/libOgreMain.so.1.7.2: undefined reference to `boost::this_thread::interruption_point()'
../../lib/libOgreMain.so.1.7.2: undefined reference to `boost::thread::native_handle()'
../../lib/libOgreMain.so.1.7.2: undefined reference to `boost::detail::get_tss_data(void const*)'
../../lib/libOgreMain.so.1.7.2: undefined reference to `boost::this_thread::disable_interruption::~disable_interruption()'
../../lib/libOgreMain.so.1.7.2: undefined reference to `typeinfo for boost::detail::thread_data_base'
../../lib/libOgreMain.so.1.7.2: undefined reference to `boost::detail::get_current_thread_data()'
../../lib/libOgreMain.so.1.7.2: undefined reference to `boost::detail::thread_data_base::~thread_data_base()'
../../lib/libOgreMain.so.1.7.2: undefined reference to `boost::thread::detach()'
../../lib/libOgreMain.so.1.7.2: undefined reference to `boost::thread::hardware_concurrency()'
../../lib/libOgreMain.so.1.7.2: undefined reference to `boost::thread::join_noexcept()'
../../lib/libOgreMain.so.1.7.2: undefined reference to `boost::thread::start_thread_noexcept()'
../../lib/libOgreMain.so.1.7.2: undefined reference to `boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)'
../../lib/libOgreMain.so.1.7.2: undefined reference to `vtable for boost::detail::thread_data_base'
../../lib/libOgreMain.so.1.7.2: undefined reference to `boost::this_thread::disable_interruption::disable_interruption()'
collect2: ld returned 1 exit status
make[2]: *** [bin/SampleBrowser] Error 1
make[1]: *** [Samples/Browser/CMakeFiles/SampleBrowser.dir/all] Error 2
make: *** [all] Error 2


I have been trying to figure it out by doing everything on these two sites:


and




And I really can't think of anything else. I assume I need to modify a Makefile to do the linking but I don't know enough about CMake to fix it. Does anyone have any ideas?

holocronweaver

unread,
Dec 11, 2013, 7:17:08 PM12/11/13
to python-ogre...@googlegroups.com
Looks like you are having trouble linking to the Boost library.  Try compiling without Boost by setting OGRE_CONFIG_THREADS to 0.

dermont

unread,
Dec 12, 2013, 2:03:27 AM12/12/13
to python-ogre...@googlegroups.com
Ogre's CMake and finding boost dependencies is probably not up-to-date for Ogre1.7.2.

To disable threading (for background resource loading) try:

1) Updating the build command for Linux - environment.py (class ogre).

###            [0, "cmake . -DOGRE_INSTALL_PLUGINS_HEADERS=TRUE -DCMAKE_INSTALL_PREFIX:PATH=%s" % PREFIX, baseDir],

            [0, "cmake . -DOGRE_CONFIG_THREADS:STRING=0 -DOGRE_USE_BOOST:BOOL=OFF -DOGRE_INSTALL_PLUGINS_HEADERS=TRUE -DCMAKE_INSTALL_PREFIX:PATH=%s" % PREFIX, baseDir],


2) Go to the build dir and remove CMakeCache.txt.

3) rerun your ogre build command.

If you need threading (for background resource loading) then it is probably a bit more involved with both Ogre and in general the python-ogre build.

David Braude

unread,
Dec 12, 2013, 5:30:27 AM12/12/13
to python-ogre...@googlegroups.com
So Andreas emailed me last night (UK time) and suggested changing to clang. After searching around I found CMakeCache.txt is where the compiler is set and it was c++ instead of gcc, changing that fixed the problem. For my application I need to explain in detail how to set it up for a new user so I will try with clang too and see if it works and is faster on a virtual machine and will report back.

Thanks for all the help
Reply all
Reply to author
Forward
0 new messages