Linkage problem in Linux with OGRE 1.7.0 Final


14-03-2010 00:47:16

I used the instructions to buid Python-Ogre 1.7.0 given in, but i found linkage problems on, giving the following problem when trying to run demos:

ImportError: /usr/local/lib/python2.6/dist-packages/ogre/renderer/OGRE/ undefined symbol: _ZN4Ogre11PropertySet11setValueMapERKSt3mapISsNS_13PropertyValueESt4lessISsENS_12STLAllocatorISt4pairIKSsS2_ENS_22CategorisedAllocPolicyILNS_14MemoryCategoryE0EEEEEE

i found by using nm and grep that this symbol is contained in and based on ldd info: => (0xb76f0000) => /usr/lib/ (0xb26d7000) => /../../lib/tls/i686/cmov/ (0xb26be000) => /usr/lib/ (0xb25cb000) => /usr/lib/ (0xb2580000) => /../../lib/tls/i686/cmov/ (0xb255a000) => /../../lib/ (0xb253c000) => /../../lib/tls/i686/cmov/ (0xb23f7000) => /usr/lib/ (0xb2377000) => /usr/lib/ (0xb236e000) => /usr/lib/ (0xb2353000) => /usr/lib/ (0xb2224000) => /usr/lib/ (0xb2214000) => /usr/lib/ (0xb21c1000) => /usr/lib/ (0xb215a000) => /../../lib/tls/i686/cmov/ (0xb2156000) => /usr/lib/ (0xb2142000) => /usr/lib/ (0xb2131000) => /usr/lib/ (0xb1ea3000) => /usr/lib/ (0xb1e9b000) => /../../lib/ (0xb1e85000)
/lib/ (0xb76f1000) => /../../lib/tls/i686/cmov/ (0xb1e81000) => /../../lib/tls/i686/cmov/ (0xb1e78000) => /../../lib/ (0xb1e73000) => /usr/lib/ (0xb1e54000) => /usr/lib/ (0xb1e50000) => /usr/lib/ (0xb1e37000) => /usr/lib/ (0xb1e25000) => /usr/lib/ (0xb1e20000)

it was not linked inside the library, are there any steps to follow to fix this problem?

also there is a comma in Config that makes ogresdksample path a tuple so os.path.join chokes on it

UPDATE: Found the solution myself:
libs = [boost.lib, 'OgreMain']


libs = [boost.lib, 'OgreMain', 'libOgreProperty']


14-03-2010 20:12:56

Patch file for some changes i made to compile python-ogre on ubuntu 9.10 using ogre-1.7.0 final, also some updates to nvidia-cg and simple stuff like that, all this based on rv1100 from svn.

Also this command: [0, "find . -name *.a -execdir cp {} %s/lib \;" % PREFIX, baseDir] on bullet doesnt work while building using the new --usesystem switch, there are some tweaks needed to make bullet and ogrebulletd to compile, i also include that in the patch file.

I add to the tr1 patches to final ogre sourcecode


15-03-2010 00:53:34

Thanks for the patch -- nearly finished with the 1.7 Windows release at which point I'll clean up the Linux version...



15-03-2010 01:13:43

Can you tell mithro his libboost-serialization1.41.0 package from ppa is broken? i had to modify it to build python-ogre, it depends on a future version of itself and i was trying to use as many precompiled libraries as possible and had to install that to avoid the broken relation between python 2.6.4 and boost 1.38


15-03-2010 02:36:07

Sorry to keep bothering but i am offering some new patches to the build system on linux. Updated for rv1101

The final bullet build patch that includes modifications on source code and the modificiations on

UPDATE: remade python-ogre.patch since the changes in rv 1101 include something for debug support and dont allow to build the libs, also some adds from ogrevideo and theoraplayer made by andy