yillkid
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 (Setup.py, environment.py) from 1.7.2 to 1.7.3, is the good first step ?
3. and ... how I should do ? it's very complexly ?
thanks
dermont
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 PythonOgreConfig_system.py config file and installs to the system python dist-packages directory.
http://wiki.python-ogre.org/index.php/LinuxBuildV4
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. BuildModule.py -r -b and just proceed to generating/compiling the wrapper code:
python python-ogre/BuildModule.py -g -c ogre --usesystem
python python-ogre/BuildModule.py -g -c ois --usesystem
python python-ogre/BuildModule.py -b install --usesystem
If you need to modify paths you can update PythonOgreConfig_system.py as required.
You should probably check that your version of pygccxml / gccxml matches that in environment.py (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.
yillkid
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 https://python-ogre.svn.sourceforge.net ... ython-ogre python-ogre
python python-ogre/BuildModule.py -g -c ogre --usesystem
But return a error message as below:
#python python-ogre/BuildModule.py -g -c ogre --usesystem
Traceback (most recent call last):
File "python-ogre/BuildModule.py", line 9, in <module>
import environment
File "/home/user/workspace/Python-ogre/develope/python-ogre/environment.py", line 1858, in <module>
class hydrax(pymodule):
File "/home/user/workspace/Python-ogre/develope/python-ogre/environment.py", line 1877, in hydrax
moduleLibs = [ os.path.join(Config.PATH_LIB_hydrax, 'Hydrax')]
AttributeError: 'module' object has no attribute 'PATH_LIB_hydrax'
dermont
27-07-2011 06:43:08
Update PythonOgreConfig_system.py 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
PATH_LIB_hydrax=PATH_hydrax
There may be other paths you have to update, the different Config files appear to out of sync and need to be updated.
yillkid
28-07-2011 08:45:32
It works! thank you a lot!