problem with linuxbuildv4

NikitaUtiu

14-07-2010 17:29:50

I downloaded and used the building script to build python-ogre on ubuntu 10.04, but when I try to import ogre.renderer.OGRE I get this:

>>> import ogre.renderer.OGRE
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.6/dist-packages/ogre/renderer/OGRE/__init__.py", line 10, in <module>
from _ogre_ import *
ImportError: dynamic module does not define init function (init_ogre_)

Could anybody help me ? :( :roll:
Thanks!

iblis

15-07-2010 00:47:50

Has the script been terminated / interrupted while it was generating the wrapper code? I ran into a similar problem (see this thread). I was able to resolve it by removing the incompletely generated code and restarting the generation process; in my case it was with OIS, but I'd imagine it would have a similar effect on other portions of the codebase.

I'm currently attempting to build from trunk, we'll see how it goes. (:

NikitaUtiu

15-07-2010 13:04:16

Has the script been terminated / interrupted while it was generating the wrapper code? I ran into a similar problem (see this thread). I was able to resolve it by removing the incompletely generated code and restarting the generation process; in my case it was with OIS, but I'd imagine it would have a similar effect on other portions of the codebase.

I'm currently attempting to build from trunk, we'll see how it goes. (:


Well as I said, I have been running the script, I haven't been doing it step-by-step so I don't know exactly where it stopped. These are the last lines on the console though:
PythonOgre.BuildModule: INFO Build Command make
PythonOgre.BuildModule: WARNING Task Failed
PythonOgre.BuildModule: INFO Build Command sudo make install
PythonOgre.BuildModule: WARNING Task Failed
PythonOgre.BuildModule: INFO Build Command tar zxf /home/nichitautiu/development/downloads/CEGUI-0.7.1.tar.gz --overwrite
PythonOgre.BuildModule: INFO Build Command ./bootstrap
PythonOgre.BuildModule: INFO Build Command ./configure --prefix=/usr --enable-freeimage=yes --enable-ogre-renderer=yes --with-default-xml-parser=TinyXMLParser --includedir=/usr/include
PythonOgre.BuildModule: INFO Build Command make
PythonOgre.BuildModule: INFO Build Command sudo make install
PythonOgre.BuildModule: INFO Building Source code for ogre
PythonOgre.BuildModule: WARNING Task Failed
PythonOgre.BuildModule: INFO Compiling Source code for ogre
PythonOgre.BuildModule: INFO Building Source code for ois
PythonOgre.BuildModule: WARNING Task Failed
PythonOgre.BuildModule: INFO Compiling Source code for ois
PythonOgre.BuildModule: INFO Building Source code for cegui
PythonOgre.BuildModule: WARNING Task Failed
PythonOgre.BuildModule: INFO Compiling Source code for cegui
PythonOgre.BuildModule: INFO Build Command sudo python setup.py install

NikitaUtiu

16-07-2010 13:33:28

I changed the tactic and downloaded the 1.7.1 source, satisfied each and every dependency and used the setup.py provided to copy the files in the system directory, and yet I still get the same error when trying to run even the most basic application. :x

Is there going to be a packed version of the 1.7.1 soon ? If not, for my own satisfaction: has anyone here ever manged to successfully run a python ogre application on Linux ?

Thanks!

iblis

16-07-2010 22:18:23



Is there going to be a packed version of the 1.7.1 soon ? If not, for my own satisfaction: has anyone here ever manged to successfully run a python ogre application on Linux ?

Thanks!


I don't know about a packaged version, but I've managed to build trunk using Ubuntu 10.04, and most of the demos (and tutorials on the wiki) run here.

NikitaUtiu

17-07-2010 08:11:57

I guess I'll continue trying till then. Thanks for your help! :D

NikitaUtiu

19-07-2010 13:33:18



Is there going to be a packed version of the 1.7.1 soon ? If not, for my own satisfaction: has anyone here ever manged to successfully run a python ogre application on Linux ?

Thanks!


I don't know about a packaged version, but I've managed to build trunk using Ubuntu 10.04, and most of the demos (and tutorials on the wiki) run here.


Hey, iblis. Thanks for the help; it was actually ois causing problems, but I have fixed it now. :D

vak

17-08-2011 14:19:23



Hey, iblis. Thanks for the help; it was actually ois causing problems, but I have fixed it now. :D

Nikita, what ois? :)

I have the same damn trouble during import :-/