gerwindehaan / osgswig

Python bindings for OpenSceneGraph (auto-export from code.google.com/p/osgswig)
Other
1 stars 1 forks source link

[build error] r209 / OSG 2.9.5 / jaunty 64bit #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The make of revision 209 on OpenSceneGraph 2.9.5 fails with the following
error:

------------------------------------

[  3%] Building CXX object src/python/CMakeFiles/_osg.dir/osgPYTHON_wrap.cxx.o
cd /home/huib/dev/osgswig/build/src/python && /usr/bin/c++   
-D_osg_EXPORTS -O2 -fPIC -I/home/huib/dev/OpenSceneGraph/include
-I/home/huib/dev/osgswig/include -I/usr/include/python2.6   -o
CMakeFiles/_osg.dir/osgPYTHON_wrap.cxx.o -c
/home/huib/dev/osgswig/build/src/python/osgPYTHON_wrap.cxx
/home/huib/dev/osgswig/build/src/python/osgPYTHON_wrap.cxx: In function
‘PyObject* _wrap_Image_setImage__SWIG_0(PyObject*, PyObject*)’:
/home/huib/dev/osgswig/build/src/python/osgPYTHON_wrap.cxx:83794: error:
cannot convert ‘int*’ to ‘Py_ssize_t*’ for argument ‘3’ to ‘int
PyString_AsStringAndSize(PyObject*, char**, Py_ssize_t*)’
/home/huib/dev/osgswig/build/src/python/osgPYTHON_wrap.cxx: In function
‘PyObject* _wrap_Image_setImage__SWIG_1(PyObject*, PyObject*)’:
/home/huib/dev/osgswig/build/src/python/osgPYTHON_wrap.cxx:83903: error:
cannot convert ‘int*’ to ‘Py_ssize_t*’ for argument ‘3’ to ‘int
PyString_AsStringAndSize(PyObject*, char**, Py_ssize_t*)’
/home/huib/dev/osgswig/build/src/python/osgPYTHON_wrap.cxx: In function
‘PyObject* _wrap_ImageRef_setImage__SWIG_0(PyObject*, PyObject*)’:
/home/huib/dev/osgswig/build/src/python/osgPYTHON_wrap.cxx:233234: error:
cannot convert ‘int*’ to ‘Py_ssize_t*’ for argument ‘3’ to ‘int
PyString_AsStringAndSize(PyObject*, char**, Py_ssize_t*)’
/home/huib/dev/osgswig/build/src/python/osgPYTHON_wrap.cxx: In function
‘PyObject* _wrap_ImageRef_setImage__SWIG_1(PyObject*, PyObject*)’:
/home/huib/dev/osgswig/build/src/python/osgPYTHON_wrap.cxx:233343: error:
cannot convert ‘int*’ to ‘Py_ssize_t*’ for argument ‘3’ to ‘int
PyString_AsStringAndSize(PyObject*, char**, Py_ssize_t*)’

------------------------------------

System info:

Platform          Linux-2.6.28-13-generic-x86_64-with-Ubuntu-9.04-jaunty
Architecture      ('64bit', 'ELF')
Machine           x86_64
--
Python build      ('release26-maint', 'Apr 19 2009 01:58:18')
Python compiler   GCC 4.3.3

Original issue reported on code.google.com by huib...@gmail.com on 17 Aug 2009 at 11:34

GoogleCodeExporter commented 9 years ago
Yes, this is a 64bit/SWIG issue. 

For similar issues see also http://trac.osgeo.org/gdal/ticket/1379

Original comment by gerwinde...@gmail.com on 21 Aug 2009 at 2:20

GoogleCodeExporter commented 9 years ago
I had the same issue on 64bit Fedora11, fix was to re-type the len variable 
from int
to Py_ssize_t at the four declarations (see the line numbers).

Original comment by bobhueb...@gmail.com on 1 Sep 2009 at 6:17

GoogleCodeExporter commented 9 years ago
That does not come from swig only, see third hook of 
https://trac.macports.org/browser/trunk/dports/devel/osgswig-devel/files/patch-s
rc-osg.i.diff

Original comment by n.oxyde on 26 Dec 2009 at 1:01

GoogleCodeExporter commented 9 years ago
I got this error some days ago when recompiling an ancient 2.4 version, now it 
seems the problem does not occur anymore. closing the issue

Original comment by gerwinde...@gmail.com on 24 Jun 2011 at 4:12