So a couple of weeks ago I finally solved my AMD64 problem, so I'm now
very close to having a "good" set of python ogre packages for Debian and
Ubuntu.
These packages include an upgraded ogre (1.4.9) and any extra
dependencies which might be needed.
There are a number of outstanding issues,
* ogreal module has issues
* caleum module is not included (but will be when I get working)
* ogreode module is not included (but will be when I get working)
* demos are not included (will package into a separate package)
As mentioned previously, non-FOSS modules will never be included. I
could use any feedback.
I will soon move onto getting python-ogre with ogre 1.6 and cegui 6.1
packaged.
Instructions on how to test are as follows,
For my project Thousand Parsec I have packaged Python Ogre for Debian
and Ubuntu (hopefully RPM based distros will be coming soon).
Thousand Parsec has it's own APT repository the easiest way to get
Python Ogre is to use this repository. Just follow these instructions.
1. The packages and the repository meta-data are digitally signed, so
you'll need to import the key into your apt's list of trusted keys in
order to not get warnings about it.
curl http://packages.thousandparsec.net/key.asc | sudo apt-key add -
Ignore any failure on this step, it is not important.
>
2. Add the following lines to either your /etc/apt/sources.list file or
to a new file in /etc/apt/sources.list.d.
>
Replace the "DIST" text with whatever is appropriate for your system.
(See the table right for a list of supported distributions and
architectures.)
# Thousand Parsec repository at packages.thousandparsec.net
deb http://packages.thousandparsec.net/DIST DIST repository
deb-src http://packages.thousandparsec.net/DIST DIST repository
For example, if your distro is Ubuntu Gutsy, then you would use the
following configuration statements:
# Thousand Parsec repository at packages.thousandparsec.net
deb http://packages.thousandparsec.net/gutsy gutsy universe
deb-src http://packages.thousandparsec.net/gutsy gutsy universe
Or, if your distro is Debian Unstable , then you would use the following
configuration statements:
# Thousand Parsec repository at packages.thousandparsec.net
deb http://packages.thousandparsec.net/sid sid main
deb-src http://packages.thousandparsec.net/sid sid main
3. Run the this command to update your local copy of the package
meta-data.
>
sudo apt-get update
>
4. You can now use your favorite package selection tool to install or
upgrade the Thousand Parsec packages. Here's how to do it with apt-get:
sudo apt-get install python-ogre
Tim 'Mithro' Ansell
Opps! It appears that I forgot the import the ogre packages into Debian
etch. I have started the process, they will appear in about 12 hours.
I don't have the ability to build Sid packages at the moment, only Etch.
Tim 'mithro' Ansell
Thanks! I see it now in the Etch packages. It installs fine, but
when I try to import, I get this:
Traceback (most recent call last):
File "test.py", line 1, in <module>
import ogre.renderer.OGRE as ogre
File "/usr/lib/python2.5/site-packages/ogre/renderer/OGRE/__init__.py",
line 10, in <module>
from _ogre_ import *
ImportError: No module named _ogre_
I don't see any _ogre_.* files on my system. Is there something else
I need to install?
Jeff
This doesn't give us any useful information for fixing this problem.
Please include the following,
a) What demo are you running?
b) What output are you getting? (The exact error not just "it's saying
it's missing").
c) Where did you get the demos from?
d) What did you do to make the demos run?
Thanks for your help.
Tim 'Mithro' Ansell
> --ben
<snip>
You can ignore that step for now (but I'm going to leave it in the
instructions so when people search they get consistent info). We are
still trying to figure out how to sign the repositories correctly.
Tim
This should be finally fixed! Just do an,
apt-get update
apt-get install python-ogre
Oh, you can also get the "demos" now too.
apt-get install python-ogre-demos
Tim 'mithro' Ansell
I have fixed the problem which was causing amd64 debs to get clobbered.
If you do an update you should be able to install the packages now.
You can also get the demos using,
Remove both this and your plugins.cfg (it should then default to
reading /etc/OGRE/plugins.cfg).
Tim
You need to use main if you are using Debian and universe if you are
using Ubuntu as the html on packages.thousandparsec.net explains.
> I ran into a few issues though.
>
> 1. the libOgreMain was incompatable with ubuntu hardy ogre version.
> Solved by importing the ogre libs from your repo. (Uses a different
> naming scheme)
Have you pinned the Ubuntu repository? By default apt should see the
updated packages in my repo and download them.
> 2. SampleFramework used in the tutorials is not included.
$ dpkg --listfiles python-ogre-demos | grep SampleFramework.py
/usr/share/python-ogre-demos/SampleFramework.py
/usr/share/python-ogre-demos/noise/SampleFramework.py
/usr/share/python-ogre-demos/ogre/tests/SampleFramework.py
/usr/share/python-ogre-demos/showcase_01/SampleFramework.py
Seems to be to me.
> 3. _bullet_.so not included
It doesn't compile, so it not included.
> Is this a skimmed version of the python-ogre collection or are there
> other reasons for these missing files?
The ones which don't compile easily are not included, I hope to fix
these in the future. Any module which is non-free is not included, these
will never be included.
> Anyways thanks for the effort.
>
> appreciate it :)
>
> Freyr
Tim
> 3. _bullet_.so not includedIt doesn't compile, so it not included.
The ones which don't compile easily are not included, I hope to fix
> Is this a skimmed version of the python-ogre collection or are there
> other reasons for these missing files?
these in the future. Any module which is non-free is not included, these
will never be included.
It is a warning you can safely ignore it.
> The python-ogre-demo install gives the following errors and warnings,
> sorry in advance, but it's longish:
The below errors should be fixed (the packages are currently importing
into packages.thousandparsec.net and should be there within the hour).
You might have to remove the package before you can upgrade however.
<snip>
Tim
> Is your definition of non-free the same as Debian's definition or
> different?
>
> Lakin
My definition is pretty much "any OSI approved license". So I guess I'm
a little less strict then Debian. If it gets into Ubuntu, it's likely to
be okay. Anything provides are a binary-only module is not okay (plus it
makes supporting non-i386 arch hard).
There may be some way in the future for others to provide the non-free
extensions as extra debs, but I'm not working towards that.
Tim 'mithro' Ansell
I would recommend adding a few capitals and paragraphs to your email. It
is kind of hard to read at the moment.
On Thu, 2008-09-18 at 12:13 -0700, gord allott wrote:
>
> hi, tried to install on ubuntu hardy - ogre wasn't installed nor any
> version of python-ogre (completly new to python-ogre, so no half done
> self building laying about). python-ogre install seemed to go great
> but the python-ogre-demos package wouldn't install at all, syntax
> errors in a python file that was being compiled (into pyc i assume).
This should be fixed. I had forgotten to import the new demos package
into the hardy repository. When you download it should be version
0.0.0-2.
> tried just untaring the .deb and the data.tar.gz myself to get at the
> demos at least and 99% of them wouldn't run, at first it was issues
> with CEGUI, it was looking for .so files when all i have a .so.1
> or .so.0 and such. had to create a bunch of symlinks to get around
> that.
I'm looking into this issue. The temporary fix is to install
libcegui-mk2-dev.
> after that a few more rather basic demos ran but pretty much all
> the rest either had strange errors such as:
> gord@nala:/usr/share/python-ogre-demos/ogreforests$ python
> Demo_Forest_02.py
> Traceback (most recent call last):
> File "Demo_Forest_02.py", line 6, in <module>
> import ogre.addons.ogreforests as forests
> File "/usr/lib/python2.5/site-packages/ogre/addons/ogreforests/
> __init__.py", line 1, in <module>
> from _ogreforests_ import *
> ImportError: /usr/lib/python2.5/site-packages/ogre/addons/ogreforests/
> _ogreforests_.so: undefined symbol:
> _ZN5boost6python8indexing15python_iteratorC1ENS0_3api6objectE
ogreforest is not being linked against boost-python-indexing, please log
a bug on SourceForge and I will fix it.
> --------------------------------------------------------------------------------
>
> and:
> Traceback (most recent call last):
> File "Demo_CEGUI_Facial.py", line 217, in <module>
> ta.go()
> File "/usr/lib/python2.5/site-packages/ogre/renderer/OGRE/
> sf_OIS.py", line 66, in go
> if not self._setUp():
> File "/usr/lib/python2.5/site-packages/ogre/renderer/OGRE/
> sf_OIS.py", line 107, in _setUp
> self._createScene()
> File "Demo_CEGUI_Facial.py", line 189, in _createScene
> self._createGUI()
> File "Demo_CEGUI_Facial.py", line 144, in _createGUI
> sheet =
> cegui.WindowManager.getSingleton().loadWindowLayout("facial.layout",
> False)
> Boost.Python.ArgumentError: Python argument types in
> WindowManager.loadWindowLayout(WindowManager, str, bool)
> did not match C++ signature:
> loadWindowLayout(CEGUI::WindowManager {lvalue}, CEGUI::String
> filename, CEGUI::String name_prefix='', CEGUI::String
> resourceGroup='')
This demo appears to be using an old version of loadWindowLayout. Try
removing the False at the end. Log a bug report on SourceForge and I
will look into getting it fixed.
> --------------------------------------------------------------------------------
>
> a bunch of demos wouldn't work, even the ode demos, simpily because
> they were trying to import _ode instead of ode and such.
ODE is not included in the package (I have yet to get it to compile on
Linux) and hence none of the ODE demos will work. I'll remove them from
the demos package.
> I'm not sure
> how to proceed from here, is this all a result of not being able to
> install the demos via the package manager? me and a friend are fresh
> out of a game development competition and we would really like try
> something more long term, python-ogre was looking great until this.
> are these problems 'fixable'?
>
> as far as i can tell any libraries that python-ogre relies on is at
> the http://packages.thousandparsec.net/hardy version not the default
> ubuntu version (where applicable)
Not sure what you mean by this?
Tim 'mithro' Ansell
>
<snip>
Can you log bug reports for the demos which segfault and fail so we can
look at getting them fixed.
Tim 'mithro' Ansell
First thanks for your work.
Second, I was hoping etch build would be usable on Sid; this is not
the case since you've set dependency python (<2.5). Could you set it
to "python-2.4" and recommend "python (<2.5)"? That would be better
since this is not for production use anyway (yet!) so people can force
python-2.4 if they use PythonOgre. I'll try hardy packages in the
meantime.
Third, what's the issue with building for Sid? :)
Thanks again.
--
Regards,
Ivan Vučica
OBJECT Networks :: www.objectnetworks.net
Cateia Games :: www.cateia.com
You can't use Python Ogre compiled against 2.4 against a python 2.5
Python Ogre is a C++ module, not a portable pure-python module.
> Third, what's the issue with building for Sid? :)
The opensuse build service does not provide a sid system to build on. In
theory you could build it yourself.
Tim
Debian ships python, python-2.4 and python-2.5, with python depending
on python-2.5.
If you set dependency on python < 2.5 I can't install python-ogre.
Changing dependency to python-2.4 would allow me to install it and to
run it with Python 2.4.
By the way, I tried hardy packages (for py2.5) on Debian and cegui
demos don't seem to work. I'll try to test more extensively when I'm
on desktop.
--
Sent from Gmail for mobile | mobile.google.com
Sorry for the half written mail. Accidentally hit Send. Attachments given here along with further tests.
Results for the demos (logs attached):
I'd also like to note that many .material scripts seem to be incorrect / unrecognizable. Also there's one RuntimeWarning concerning C API version mismatch (versions 1012 and versions 1013), perhaps it makes more sense to you.
OgreAL demo seems to crash very soon after starting but I didn't feel like creating another log.
Until next time!
This is now python-central works. Without doing a custom package for
Debian (which I don't have time too), I can't work around this problem.
> By the way, I tried hardy packages (for py2.5) on Debian and cegui
> demos don't seem to work. I'll try to test more extensively when I'm
> on desktop.
Try installing libcegui-mk2-dev and check to see if the cegui demos
work.
Tim
Try installing libcegui-mk2-dev and see if this fixes your problem.
> * ogre/Demo_OgreCollision02.py - FAIL (no ODE, but that's
> knownas far as I understand)
> * ogre/Demo_Terrain.py - SUCCESS
> * ogre/Demo_BSP.py - FAIL (syntax error in the demo - incorrect
> number of arguments in a f. call)
Log a bug report so we can fix the demo.
> * ogre/Demo_Terrain.py - SUCCESS
> * ogre/Demo_Video.py - FAIL (no OgreDShow -- haha, I wonder
> why :) :) :) )
> * ogre/Demo_Lighting.py - SUCCESS
> * ogre/Demo_CameraTracking.py - SUCCESS
> * ogre/Demo_Facial.py - SUCCESS
> * ogre/Demo_Grass.py - SUCCESS
> * theora/demo_video.py - FAIL (No theora? Come on ;) )
It doesn't compile, hence not included.
> * ogreforests/Demo_Forest_01.py - FAIL (import error; undefined
> symbol in Boost::PythonIndex)
I'll fix this problem in the next release.
> * qgui/Demo_QuickGUI01.py - FAIL (no module quickgui)
QuickGUI doesn't compile.
> I'd also like to note that many .material scripts seem to be
> incorrect / unrecognizable.
This may be related to cg issues. I don't know enough about 3d to know
however.
> Also there's one RuntimeWarning concerning C API version mismatch
> (versions 1012 and versions 1013), perhaps it makes more sense to you.
The C API version mismatch is caused by using a different version of
Python then included in Ubuntu.
> OgreAL demo seems to crash very soon after starting but I didn't feel
> like creating another log.
Known problem with the older OpenAL that ships with Ubuntu/Debian. Yet
to figure out a work around.
> Until next time!
>
<snip>
That is great to here.
> By the way, is there a chance of including more of the addons in the
> .deb? In particular, it'd be great to have caelum and hydrax.
I have not had any time to do further work on this packaging. I welcome
patches however :)
> Thanks again,
> Jeff
Tim