Followed the linux build wiki and I still need help

eupham

28-11-2007 05:38:45

Ok I solved some dependency issues and got the code to generate and things compile. It takes a while but it does compile and in my, although limited, experience that is to be expected. So I'm at the point where I want to try and use pyogre or atleast run examples. when I move into the directory with the demos and try to run them I get...
python Demo_Smoke.py
output
Traceback (most recent call last):
File "Demo_Smoke.py", line 15, in <module>
import ogre.renderer.OGRE as ogre
File "/home/eupham/development/root/usr/lib/python2.5/site-packages/ogre/renderer/OGRE/__init__.py", line 10, in <module>
from _ogre_ import *
ImportError: No module named _ogre_


I do not know how to get it to recognized the module. any suggestions?

andy

28-11-2007 11:28:23

It would seem that your Ogre module (for Python-Ogre) didn't build.. To confirm this run
./07-BuildModules.sh ogre
I'm doing some work on the SVN code and may have screwed things up for you -- I suspect you will need to edit python-ogre/generated/ogre_1.4/RenderQueueListener.pypp.cpp where you will see there are duplicated functions (renderQueueEnded and renderQueueStarted) -- simply remove the first set and run the 07 script again as shown above.

Andy

eupham

28-11-2007 20:01:24

Thanks for the help so far. That worked, but now I'm getting this whenever I try to run a demo
Traceback (most recent call last):
File "Demo_Smoke.py", line 15, in <module>
import ogre.renderer.OGRE as ogre
File "/home/eupham/development/root/usr/lib/python2.5/site-packages/ogre/renderer/OGRE/__init__.py", line 10, in <module>
from _ogre_ import *
ImportError: libboost_python-gcc41-1_34.so.1.34.0: cannot open shared object file: No such file or directory

I installed libboost_python on my computer but the problem still persisted. Any more magical suggestions? Thanks for the help. I really appreciate it.

skullmunky

05-12-2007 05:34:43

maybe make sure your linker paths (LD_LIBRARY_PATH) is set? figure out where the lib is:


locate libboost_python-gcc41-1_34.so.1.34.0