Binding Ogre only


20-07-2011 13:10:33

Dear all:

I have all dependency packages of python-ogre already. Because I have used ogre to develop project 1 year.

Now I want to change to the python-ogre and I just want to bind it with ogre (1.7.3 PPA) only.

I have already reading install guide (Instructions-Ubuntu.txt), but I still have questions:

1. Does any possible do that? (bind python-ogre with ogre(1.7.3) only.)
2. I try to modify ogre version in configure file (, from 1.7.2 to 1.7.3, is the good first step ?
3. and ... how I should do ? it's very complexly ?



21-07-2011 09:04:00

1. Yes it should be possible to do that, you can add --usesystem to your build commands; "usesystem" tells the build to use the config file and installs to the system python dist-packages directory.

You shouldn't need any LD_LIBRARY_PATH etc since your dependencies are already installed on the system path.

2. Given that you already have all the dependency packages you can skip the retrieval/build stages i.e. -r -b and just proceed to generating/compiling the wrapper code:

python python-ogre/ -g -c ogre --usesystem
python python-ogre/ -g -c ois --usesystem
python python-ogre/ -b install --usesystem

If you need to modify paths you can update as required.

You should probably check that your version of pygccxml / gccxml matches that in (I use the latest svn/cvs for pygccxml / gccxml - if you are on 64bit machine you should definitely use the latest versions).

3. There are a number of ways to build python-ogre but outlining them here would probably just add to the confusion.


27-07-2011 04:14:33

I can't use "--usesystem" with the build commands.

I paste my install command as below:

sudo apt-get install subversion
cd ~
mkdir development
cd development
svn co ... ython-ogre python-ogre
python python-ogre/ -g -c ogre --usesystem

But return a error message as below:

#python python-ogre/ -g -c ogre --usesystem

Traceback (most recent call last):
File "python-ogre/", line 9, in <module>
import environment
File "/home/user/workspace/Python-ogre/develope/python-ogre/", line 1858, in <module>
class hydrax(pymodule):
File "/home/user/workspace/Python-ogre/develope/python-ogre/", line 1877, in hydrax
moduleLibs = [ os.path.join(Config.PATH_LIB_hydrax, 'Hydrax')]
AttributeError: 'module' object has no attribute 'PATH_LIB_hydrax'


27-07-2011 06:43:08

Update and add path for hydrax lib:

PATH_INCLUDE_hydrax= PATH_hydrax
## insert after the above, either
PATH_LIB_hydrax=os.path.join(PATH_THIRDPARTY, 'Hydrax')
## OR

There may be other paths you have to update, the different Config files appear to out of sync and need to be updated.


28-07-2011 08:45:32

It works! thank you a lot!