Problem when compiling __ctypes_intergration.pypp.hpp

4 views
Skip to first unread message

Tim Ansell

unread,
Nov 23, 2008, 4:08:25 AM11/23/08
to python-ogre...@googlegroups.com
Hey guys,

I'm having problem building Python Ogre. It occurs during the
compilation of the wrapper. I've attached the end bit of log.out.

Any ideas?

Tim 'mithro' Ansell

log.out

Andy Miller

unread,
Nov 23, 2008, 5:48:40 AM11/23/08
to python-ogre...@googlegroups.com
I've attached my pixelbox.pypp.cpp for you to look at -- can you send me the one that your system generated -- also what linux/gcc version are you using..

Thanks
Andy

2008/11/23 Tim Ansell <mit...@gmail.com>
g++ -o build_dir_2.5/ogre_1.6.0/PatchSurface.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -DBOOST_PYTHON_MAX_ARITY=19 -D__PYTHONOGRE_BUILD_CODE -I/usr/local/google/foss/pyogre/root/usr/include -L/usr/local/google/foss/pyogre/root/usr/lib -fPIC -I/usr
local/google/foss/pyogre/root/usr/include/boost-1_36 -I/usr/local/google/foss/pyogre/root/usr/include/OGRE -I/usr/include/python2.5 -I/usr/local/google/foss/pyogre/root/usr/include/boost-1_36 generated/ogre_1.6.0/PatchSurface.pypp.cpp
g++ -o build_dir_2.5/ogre_1.6.0/PixelBox.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -DBOOST_PYTHON_MAX_ARITY=19 -D__PYTHONOGRE_BUILD_CODE -I/usr/local/google/foss/pyogre/root/usr/include -L/usr/local/google/foss/pyogre/root/usr/lib -fPIC -I/usr/loc
l/google/foss/pyogre/root/usr/include/boost-1_36 -I/usr/local/google/foss/pyogre/root/usr/include/OGRE -I/usr/include/python2.5 -I/usr/local/google/foss/pyogre/root/usr/include/boost-1_36 generated/ogre_1.6.0/PixelBox.pypp.cpp
scons: building terminated because of errors.

11-23 19:59 PythonOgre.BuildModule DEBUG generated/ogre_1.6.0/__ctypes_integration.pypp.hpp: In function 'uint32_t pyplusplus::convenience::addressof(const TType*, const TMemVarType TType::*) [with TType = Ogre::PixelBox, TMemVarType = void*]':
generated/ogre_1.6.0/__ctypes_integration.pypp.hpp:49: instantiated from 'boost::python::api::object pyplusplus::convenience::make_addressof_getter(const TMemVarType TType::*) [with TType = Ogre::PixelBox, TMemVarType = void*]'
generated/ogre_1.6.0/PixelBox.pypp.cpp:162: instantiated from here
generated/ogre_1.6.0/__ctypes_integration.pypp.hpp:29: error: cast from 'void* const*' to 'uint32_t' loses precision
scons: *** [build_dir_2.5/ogre_1.6.0/PixelBox.pypp.os] Error 1


PixelBox.pypp.cpp

Andy Miller

unread,
Nov 23, 2008, 5:49:17 AM11/23/08
to python-ogre...@googlegroups.com
Could you also send through your _ogre_main.cpp

Andy

2008/11/23 Andy Miller <nzmi...@gmail.com>

spom.spom

unread,
Nov 23, 2008, 8:37:12 AM11/23/08
to Python Ogre Developers
Hello Group,

I had the same problems with __ctypes_intergration.pypp.hpp which
seems to be an issue on 64bit arch within the pyplusplus package,
replacing all uint32_t by size_t in
pyplusplus/code_repository/ctypes_integration.py solved it for me.

Best regards,
Carsten

Roman Yakovenko

unread,
Nov 23, 2008, 2:01:20 PM11/23/08
to python-ogre...@googlegroups.com

Tim does this change fix your issue?

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

Tim Ansell

unread,
Nov 23, 2008, 6:16:22 PM11/23/08
to python-ogre...@googlegroups.com
Yes it does.

I am also building on a AMD64 machine.

Tim 'mithro' Ansell

Roman Yakovenko

unread,
Nov 24, 2008, 3:39:04 PM11/24/08
to python-ogre...@googlegroups.com
On Mon, Nov 24, 2008 at 1:16 AM, Tim Ansell <mit...@gmail.com> wrote:
>
> Yes it does.
>
> I am also building on a AMD64 machine.

I believe the issue is fixed now:
http://pygccxml.svn.sourceforge.net/viewvc/pygccxml?view=rev&revision=1453

P.S. It could be nice, if somebody could run Py++ test on 64 bit
architecture and report other issue. I don't have access to such
machine.

spom.spom

unread,
Nov 24, 2008, 5:00:44 PM11/24/08
to Python Ogre Developers
I runed the py++ test on my x86_64

There are a few issues related to 64bit arch.
Something like "cast from 'int*' to 'unsigned int' loses precision"

My test environment:
GNU/Linux 2.6.25-gentoo-r7 #1 SMP x86_64 GenuineIntel
gcc version 4.1.2 (Gentoo 4.1.2 p1.1)
gccxml, pygccxml py++ are current svn trunks.
boost-1.36
python2.5

A very-short log summary shows:

Ran 108 test in 141.906347s. Multi-processing overhead: 12.996347s.
FAILED (failures=10)

The complete log has 3866 lines. Is there here a posibility to attach
these?

Best regards,
Carsten

On Nov 24, 9:39 pm, "Roman Yakovenko" <roman.yakove...@gmail.com>
wrote:
> On Mon, Nov 24, 2008 at 1:16 AM, Tim Ansell <mit...@gmail.com> wrote:
>
> > Yes it does.
>
> > I am also building on a AMD64 machine.
>
> I believe the issue is fixed now:http://pygccxml.svn.sourceforge.net/viewvc/pygccxml?view=rev&revision...

Roman Yakovenko

unread,
Nov 25, 2008, 3:17:07 AM11/25/08
to python-ogre...@googlegroups.com
On Tue, Nov 25, 2008 at 12:00 AM, spom.spom <spom...@gmx.de> wrote:
>
> I runed the py++ test on my x86_64
>
> There are a few issues related to 64bit arch.
> Something like "cast from 'int*' to 'unsigned int' loses precision"
>
> My test environment:
> GNU/Linux 2.6.25-gentoo-r7 #1 SMP x86_64 GenuineIntel
> gcc version 4.1.2 (Gentoo 4.1.2 p1.1)
> gccxml, pygccxml py++ are current svn trunks.
> boost-1.36
> python2.5
>
> A very-short log summary shows:
>
> Ran 108 test in 141.906347s. Multi-processing overhead: 12.996347s.
> FAILED (failures=10)
>
> The complete log has 3866 lines. Is there here a posibility to attach
> these?

Thank you! You can it to me directly ( roman.y...@gmail.com )

Reply all
Reply to author
Forward
0 new messages