Problems building on Gentoo

ropoctl

14-12-2006 18:03:46

Here are my errors trying to build pyogre: http://rafb.net/paste/results/ItoeLj30.html
It just sits there eating all my memory until I kill it.

dermont

14-12-2006 18:11:28

Building pyOgre is pretty memory intensive. Form your post it looks like your trying to build against Ogre1.2.x and SVN Trunk (Ogre 1.0.6). For Ogre1.2.x you need the dev-1.2.0 branch:
http://www.ogre3d.org/phpBB2addons/view ... hlight=svn

ropoctl

14-12-2006 18:49:05

I've tried building with both the trunk and the dev-1.2 branch. I'll let the build script continue without interrupting on the dev branch. Would I have better luck with Ogre 0.15.1 and the pyogre trunk?

Here are the errors I get when I try building the dev-1.2.0 branch:

http://rafb.net/paste/results/VuF0Ko45.html

I'm using swig 1.3.29, gcc 4.1.1, ogre 1.2.4, and cegui 0.4.1.

dermont

14-12-2006 19:30:37

http://www.ogre3d.org/phpBB2addons/view ... ntcallback

ropoctl

14-12-2006 20:10:10

Thanks, I am downgrading to CEGUI 0.4.1. Hopefully that edit will work. I never should have upgraded to gcc 4.1. It has given me no end of grief.

I was able to install easily with that edit. Now I'm having a problem with Tutorial 1.

File "/path/to/SampleFramework.py", line 116, in ?
class FrameListener(ogre.FrameListener):
AttributeError: 'module' object has no attribute 'FrameListener'

Even stranger:
>>> dir(ogre)
['__builtins__', '__doc__', '__file__', '__name__']

ropoctl

14-12-2006 22:18:59

I'm rebuilding pyogre again. Its been on the same step for almost an hour and my machine is completely unresponsive. Is it possible to build pyogre with only 512 MB of RAM?
Why is it using all of my memory but very little CPU?
774m 425m 2012 R 1.0 84.8 0:57.32 cc1plus

It finished successfully. I'm glad that's over with.

New problem:
Traceback (most recent call last):
File "basic_1.py", line 10, in ?
ta.go()
File "/path/to/pyogre/SampleFramework.py", line 23, in go
if not self._setUp():
File "/path/to/pyogre/SampleFramework.py", line 33, in _setUp
self.root = ogre.Root(ogre.getPluginPath())
File "/usr/lib/python2.4/site-packages/pyogre/ogre.py", line 19052, in __init__
this = _ogre.new_Root(*args)
pyogre.ogre.Exception: OgreDynLib.cpp(82): ogre error 9: Could not load dynamic library libOgrePlatform.so. System Error: libOgreMain.so.4: cannot open shared object file: No such file or directory

I solved that by linking libOgreMain.so.4 to libOgreMain.so.12.0.0, which leads me to the next problem:
File "/usr/lib/python2.4/site-packages/pyogre/ogre.py", line 19052, in __init__
this = _ogre.new_Root(*args)
pyogre.ogre.Exception: OgreDynLib.cpp(82): ogre error 9: Could not load dynamic library /usr/lib/OGRE/RenderSystem_Direct3D9.so. System Error: /usr/lib/OGRE/RenderSystem_Direct3D9.so: cannot open shared object file: No such file or directory

Ah, nevermind, I just commented those lines out of plugins.cfg, which leads to the next problem:
*-*-* OGRE Initialising
*-*-* Version 1.2.4 (Dagon)
Traceback (most recent call last):
File "basic_1.py", line 10, in ?
ta.go()
File "/path/to/pyogre/SampleFramework.py", line 23, in go
if not self._setUp():
File "/path/to/pyogre/SampleFramework.py", line 35, in _setUp
self._setUpResources()
File "/path/to/pyogre/SampleFramework.py", line 56, in _setUpResources
config.loadFromFile('resources.cfg' )
File "/usr/lib/python2.4/site-packages/pyogre/ogre.py", line 21071, in load
fp = file(filename, "r")
IOError: [Errno 2] No such file or directory: 'resources.cfg'

Oh well, at least it's built and installed. I guess the demos and media are harder to get in the right places.

I have a feeling that this is gonna be my last problem. (Yes. I have libpng and devil compiled with png support):
pyogre.ogre.Exception: OgreCodec.cpp(58): ogre error 7: Cannot find codec for extension png
Damn, ogre wasn't built with devil support. Rebuilding now- will I have to rebuild pyogre as well? I am _not_ looking forward to that.