Problems building python-ogre on linux, step 5

3 views
Skip to first unread message

Rui_Silva

unread,
Jun 23, 2008, 7:17:04 PM6/23/08
to Python Ogre Developers
ois generates the code without a problem, however when generating the
code for ogre i get this error:

INFO GCCXML version - 0.9
/home/rui/Coding/python-ogre/root/usr/lib/python2.5/site-packages/
pygccxml/parser/scanner.py:335: UserWarning: unable to find out array
size from expression
""
warnings.warn( msg )
Traceback (most recent call last):
File "generate_code.py", line 1059, in <module>
generate_code()
File "generate_code.py", line 965, in generate_code
common_utils.fix_unnamed_classes( main_ns.classes( name='' ),
'Ogre' )
File "../common_utils/__init__.py", line 87, in fix_unnamed_classes
if declarations.is_array (mvar.type):
AttributeError: 'destructor_t' object has no attribute 'type'

I recently re-installed my linux system with the same configurations,
before the re-installation I did built ogre without any problem

Rui_Silva

unread,
Jun 23, 2008, 7:24:50 PM6/23/08
to Python Ogre Developers
As a walk arround I have commented the lines 87, 88 and 89:

#if declarations.is_array (mvar.type):^M
# template = '''def_readonly("%(mvar)s", &%(ns)s::%
(parent)s::%(mvar)s)'''^M
#else:^M
template = '''def_readwrite("%(mvar)s", &%(ns)s::%
(parent)s::%(mvar)s)'''^M
named_parent.add_code( template % dict( ns=namespace,
mvar=mvar.name, parent=named_parent.name ) )^M

Rui_Silva

unread,
Jun 23, 2008, 7:27:47 PM6/23/08
to Python Ogre Developers
But... ogre fails to build

Andy Miller

unread,
Jun 23, 2008, 8:51:13 PM6/23/08
to python-ogre...@googlegroups.com
Can you confirm that you are using the SVN r557 of Python-Ogre and r1234 for Py++ (as per the wiki instructions for the Linux build).....
 
Regards
 
Andy...

2008/6/24 Rui_Silva <rui.ped...@gmail.com>:

Roman Yakovenko

unread,
Jun 24, 2008, 12:19:20 AM6/24/08
to python-ogre...@googlegroups.com
On Tue, Jun 24, 2008 at 2:17 AM, Rui_Silva <rui.ped...@gmail.com> wrote:
>
> ois generates the code without a problem, however when generating the
> code for ogre i get this error:
>
> INFO GCCXML version - 0.9
> /home/rui/Coding/python-ogre/root/usr/lib/python2.5/site-packages/
> pygccxml/parser/scanner.py:335: UserWarning: unable to find out array
> size from expression
> ""
> warnings.warn( msg )
> Traceback (most recent call last):
> File "generate_code.py", line 1059, in <module>
> generate_code()
> File "generate_code.py", line 965, in generate_code
> common_utils.fix_unnamed_classes( main_ns.classes( name='' ),
> 'Ogre' )
> File "../common_utils/__init__.py", line 87, in fix_unnamed_classes
> if declarations.is_array (mvar.type):
> AttributeError: 'destructor_t' object has no attribute 'type'

The latest GCCXML version started to generate artificial declarations
( constructor, copy constructor and operator= ). I am in the middle of
the process, to update pygccxml and Py++. It is possible I broke
something.

Andy may I ask you to verify this point?

Thanks

--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/

Andy Miller

unread,
Jun 24, 2008, 1:39:41 AM6/24/08
to python-ogre...@googlegroups.com
I'm using latest gccxml with Py++ r1337 without any issues...
 
I suspect the problem that Rui is having relates to mixing versions of Gccxml/Py++ and Python-Ogre....
 
Once the Windows version is out I'll (perhaps) take a fresh look at the Linux system
 
Andy

2008/6/24 Roman Yakovenko <roman.y...@gmail.com>:

Rui_Silva

unread,
Jun 24, 2008, 3:09:43 AM6/24/08
to Python Ogre Developers
I am using the revisions mentioned in the wiki. The problem is with
pygccxml, since the declarations.is_array function is in the pygccxml
namespace, therefore I assume the error is with pygccxml. I am using
the revisions mentioned in the linuxbuildv2 wiki page, that's for
sure:)

On Jun 24, 6:39 am, "Andy Miller" <nzmill...@gmail.com> wrote:
> I'm using latest gccxml with Py++ r1337 without any issues...
>
> I suspect the problem that Rui is having relates to mixing versions of
> Gccxml/Py++ and Python-Ogre....
>
> Once the Windows version is out I'll (perhaps) take a fresh look at the
> Linux system
>
> Andy
>
> 2008/6/24 Roman Yakovenko <roman.yakove...@gmail.com>:
>
>
>
> > On Tue, Jun 24, 2008 at 2:17 AM, Rui_Silva <rui.pedro.si...@gmail.com>

Rui_Silva

unread,
Jun 24, 2008, 1:49:25 PM6/24/08
to Python Ogre Developers
Can anyone at least tell me how can I compile python-ogre in linux?
The svn version according to the wiki page is clearly broken! Can I
use any other revisions? some quick walk arround?

Andy Miller

unread,
Jun 24, 2008, 9:24:18 PM6/24/08
to python-ogre...@googlegroups.com
What gccxml version are you using -- do you happen to have a more recent version installed as this is where you problem seems to be  ?
 
Either that or grab one of the binary release for Linux to get you started until the Linux team get a chance to respond..
 
Andy

2008/6/25 Rui_Silva <rui.ped...@gmail.com>:

Deifante Jay Walters

unread,
Jun 26, 2008, 12:21:15 AM6/26/08
to Python Ogre Developers
I happen to have a binary for linux prepared recently if you'd like.

On Jun 24, 7:24 pm, "Andy Miller" <nzmill...@gmail.com> wrote:
> What gccxml version are you using -- do you happen to have a more recent
> version installed as this is where you problem seems to be  ?
>
> Either that or grab one of the binary release for Linux to get you started
> until the Linux team get a chance to respond..
>
> Andy
>
> 2008/6/25 Rui_Silva <rui.pedro.si...@gmail.com>:

Rui_Silva

unread,
Jun 26, 2008, 4:30:37 AM6/26/08
to Python Ogre Developers
Deifant, yes I would like that :)

Deifante Jay Walters

unread,
Jun 26, 2008, 11:25:00 AM6/26/08
to Python Ogre Developers

ivucica

unread,
Jun 27, 2008, 11:59:31 AM6/27/08
to Python Ogre Developers
Deifante,

anything special you've done when compiling?


Here's some debugging information, please don't be scared, I tried to
include everything relevant and only relevant stuff.

Done on out-of-the-box Ubuntu 8.04 (more specifically Xubuntu). I
think same thing happens on Debian Lenny but it's been a while since I
last tried it.

I'm getting this in log.out when on this step " python python-ogre/
BuildModule.py -b cegui"

---------------------CUT HERE-----------
06-27 17:45 PythonOgre.BuildModule INFO Build Command patch -s -N -
i ../pyth
on-ogre/patch/cegui.patch -p0
06-27 17:45 PythonOgre.BuildModule DEBUG Spawning 'patch -s -N -
i ../python-o
gre/patch/cegui.patch -p0' in '/home/ivucica/development/CEGUI-0.6.0'
06-27 17:45 PythonOgre.BuildModule WARNING Task Failed
06-27 17:45 PythonOgre.BuildModule DEBUG 1 out of 1 hunk FAILED --
saving rej
ects to file ScriptingModules/CEGUILua/LuaScriptModule/src/
Makefile.am.rej
1 out of 1 hunk FAILED -- saving rejects to file WindowRendererSets/
Falagard/src
/Makefile.am.rej
1 out of 1 hunk FAILED -- saving rejects to file RendererModules/
IrrlichtRendere
r/Makefile.am.rej
------------------CUT HERE----------
and so on.

Also, in the end there is this:

-------------- CUT HERE---------
make[2]: Leaving directory `/home/ivucica/development/CEGUI-0.6.0/
XMLParserModules/TinyXMLParser'
make[1]: Leaving directory `/home/ivucica/development/CEGUI-0.6.0/
XMLParserModules'

06-27 17:47 PythonOgre.BuildModule DEBUG configure: WARNING:
FreeImage.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: FreeImage.h: proceeding with the compiler's result
ceguitinyxml/tinyxmlerror.cpp:55:2: warning: no newline at end of file
/usr/bin/ld: cannot find -lCEGUIBase
collect2: ld returned 1 exit status
make[2]: *** [libCEGUITinyXMLParser.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

06-27 17:47 PythonOgre.BuildModule INFO Build Command make
install
06-27 17:47 PythonOgre.BuildModule DEBUG Spawning 'make install' in
'/home/ivucica/development/CEGUI-0.6.0'
---------------------- CUT HERE ----------------------------


Notable is that the SO, LA has built (lines are from output of find |
grep CEGUIBase, with some snips):
./root/usr/lib/libCEGUIBase.la
./root/usr/lib/libCEGUIBase.so.1.0.0
./root/usr/lib/libCEGUIBase.so.1
./root/usr/lib/libCEGUIBase.so
......
./CEGUI-0.6.0/src/libCEGUIBase.la
.....
./CEGUI-0.6.0/src/.libs/libCEGUIBase.so
.....


Also interesting, from the stdout:
PythonOgre.BuildModule: INFO Build Command ./configure --prefix=/
home/ivucica/development/root/usr --enable-freeimage=yes --disable-
samples --without-ogre-renderer --includedir=/home/ivucica/development/
root/usr/include



Ok, to sum it up.
The build process works until the Step 4 in the Wiki tutorial. It has
issues in this substep: "python python-ogre/BuildModule.py -b cegui ".
It fails to patch cegui, and then it fails to locate CEGUIBase.
Additionally libCEGUIBase.a is missing, but I've never tried writing
code that uses shared objects so I don't know if libCEGUIBase.la is a
sufficient replacement.



On Jun 26, 5:25 pm, Deifante Jay Walters <Deifa...@gmail.com> wrote:
> here's a link to the binaries I created recently.
>
> http://portia-viewer.googlecode.com/files/python-ogre-linux-binaries-...

Deifante Jay Walters

unread,
Jun 28, 2008, 1:42:25 PM6/28/08
to Python Ogre Developers
Sorry for the late response, I've had connectivity issues. At first
look, I'm not sure what is going on here. I don't remember having any
particular issues when going through that step. I also notice that the
wiki has changed a little from when I built those binaries 20 days
ago. May I ask, are you using the most recent python ogre or a
specific svn version? I used 557 to create the binaries I've posted. I
can make a run through with a clean 8.04 and make notes if you'd like.
Reply all
Reply to author
Forward
0 new messages