AMD 64 Debian installation SOLVED!!

Dawgmatic

14-12-2005 17:03:54

I have been trying to install pyogre on Debian AMD64.
(I also use pyogre on windows where it works pretty well).
In linux if I sys.path.append the pyogre directory and say

from pyogre import ogre it gives me an error.
Am i supposed to move this directory to some location.
Where should it be moved to. I will update the wiki once it
gets working for me.

dermont

14-12-2005 18:24:42

Not too sure if you are building from source or using apt-get. Here's what worked from me:

1. Building from source on gentoo:

python setup.py build
su
python setup.py install

should install in directory similiar to /usr/lib/python2.3/site-packages/pyogre

2. Download Media files from SVN and extract to pyogre/demos/(media) to give dir pyogre/demos/media

3. plugins.cfg in pyogre/demos/ogre and pyogre/demos/cegui

# Define plugin folder
PluginFolder=/usr/local/lib/OGRE

# Define D3D rendering implementation plugin
Plugin=RenderSystem_GL.so
Plugin=Plugin_ParticleFX.so
Plugin=Plugin_BSPSceneManager.so
Plugin=Plugin_OctreeSceneManager.so
Plugin=Plugin_CgProgramManager.so

4. resources.cfg in pyogre/demos/ogre

# Resource locations to be added to the default path
[General]
FileSystem=../media
FileSystem=../media/fonts
FileSystem=../media/materials/programs
FileSystem=../media/materials/scripts
FileSystem=../media/materials/textures
FileSystem=../media/models
FileSystem=../media/overlays
FileSystem=../media/particle
#FileSystem=../media/gui
Zip=../media/packs/cubemap.zip
Zip=../media/packs/cubemapsJS.zip
Zip=../media/packs/dragon.zip
Zip=../media/packs/fresneldemo.zip
Zip=../media/packs/ogretestmap.zip
Zip=../media/packs/skybox.zip
#Zip=../media/packs/chiropteraDM.pk3


5. resources.cfg in pyogre/demos/cegui

# Resource locations to be added to the default path
[General]
FileSystem=../media
FileSystem=../media/fonts
FileSystem=../media/models
FileSystem=../media/materials/programs
FileSystem=../media/materials/scripts
FileSystem=../media/materials/textures
FileSystem=../media/overlays
FileSystem=../media/particle

FileSystem=../media/gui/datafiles/fonts
FileSystem=../media/gui
FileSystem=../media/gui/datafiles
FileSystem=../media/gui/datafiles/schemes
FileSystem=../media/gui/datafiles/imagesets
FileSystem=../media/gui/datafiles/layouts
FileSystem=../media/gui/datafiles/looknfeel
FileSystem=layouts/

Zip=../media/packs/cubemap.zip
Zip=../media/packs/cubemapsJS.zip
Zip=../media/packs/dragon.zip
Zip=../media/packs/fresneldemo.zip
Zip=../media/packs/ogretestmap.zip
Zip=../media/packs/skybox.zip
#Zip=../media/packs/TestLevel.zip

Dawgmatic

14-12-2005 21:01:29

The docs mentioned that Linux doesnt have a build file yet which is why i tried the swig and the gcc commands given in the doc at the command line.

A few things

1) Swig on my machine chews up over 600-700 Mb of RAM. I have a gig of RAM but till an hour ago did not have a swap file. Dont try swig if you have less then 1.5 Gb of RAM+ Swapspace. I do not know if this is normal. Swig is swig 1.3

2) I get an error saying CEGUI-OGRE.pc cannot be found.
I am on debian sid amd 64. The 64 bit packages for ogre are not compiled yet. I have compiled ogre 1.0.6 sucessfully (i believe).
Have also installed cegui. (I do have CEGUI-OPENGL.pc).
Any ideas about this??

Thanks in advance.

Dawgmatic

14-12-2005 22:21:27

I had installed ogre without first installing cegui.
So i recompiled ogre after installing cegui and the
python setup.py install now begins to run.

However it stops at this point

pyogre/cegui/cegui_wrap.cxx:3044: error: 'class CEGUI::Window' has no member named 'getActiveSibling'. cegui is version 0.4.1-1.

dermont

15-12-2005 17:33:08

Not encountered this before using:

- swig version 1.3.7
- CEGUI 0.4.1 .bz2 from http://www.cegui.org.uk
- pyogre trunk from http://developer.berlios.de/svn/?group_id=3464


Try:

a) running nm on libCEGUIBase.so:

nm /usr/local/lib/libCEGUIBase.so | grep 'getActiveSibling'

You should get something similiar to: 000f6ee0 T _ZN5CEGUI6Window16getActiveSiblingEv


b) manually deleting the cegui swig files, i.e. in pyogre/pyogre/cegui delete

cegui_wrap.cxx
cegui_wrap.h

and rerun setup.py build

Dawgmatic

19-12-2005 14:23:16

Do the following and everything will be fine on Debian64

1) Install latest version of libtool (by default an older version of libtool is installed)

2) Roll back to gcc 3.3 instead of gcc 4.0

3) First do this :
"

k, it took me about 3 DAMN hours on this shit, i HATE THE DevIL! Wink

here is what you ll have to do:

-get libpng sources
if you r on x86_64:
-edit pngconf.h in the libpng root dir and replace
typedef unsigned long png_uint_32;
typedef long png_int_32;
with
typedef unsigned int png_uint_32;
typedef int png_int_32;
-build & install the libpng, and do a ldconfig as root

-get the DevIL(openIL) sources:
if your on x86_64 you may need to edit src-XTRA/libpng/pngconf.h
from DevILs root dir and do the same manip i explained for libpng
(i dunno if it s really necessary here...)
-edit the src-IL/src/il_alloc.c
and replace each occurence of vec_malloc with malloc
except this one: void *vec_malloc( ILuint size )
(should be the first one Wink
-build & install, and do a ldconfig as root

now rebuild ogre, everything should be ok.
i hope this help."

This is from this post:
http://www.ogre3d.org/phpBB2/viewtopic. ... rary+error

4) Now install cegui

5) build and install ogre

6) build and install pyogre (python setup.py build followed by python setup.py install)

7) Enjoy!