Mhh, I have hunch that SWIG 1.3.29 is too old to expand $self correctly.
For the other errors please file an error report
Cheers,
Hartmut
On 18/2/09 10:02 PM, Mathias Franzius wrote:
Dear ng,
I try to build osgswig on debian etch with either osg 2.4 or osg 2.6,
python 2.5, swig 1.3.29, cmake 2.4-patch 5, and a fresh checkout from
the osgswig svn.
With both versions of osg cmake finishes happily but make stops with the
same errors about invalid conversion from 'const char*' to 'char*' and
undeclared '$self's (see below).
Can somebody give me a hint how to proceed?
Thanks!
Mathias
[...]
Scanning dependencies of target _osg
cd /home/franzius/osgswig/osgswig-read-only/build&& /usr/bin/cmake -E
cmake_depends "Unix Makefiles" /home/franzius/osgswig/osgswig-read-only
/home/franzius/osgswig/osgswig-read-only/src/python
/home/franzius/osgswig/osgswig-read-only/build
/home/franzius/osgswig/osgswig-read-only/build/src/python
/home/franzius/osgswig/osgswig-read-only/build/src/python/CMakeFiles/_osg.dir/DependInfo.cmake
make[2]: Leaving directory `/home/franzius/osgswig/osgswig-read-only/build'
make -f src/python/CMakeFiles/_osg.dir/build.make
src/python/CMakeFiles/_osg.dir/build
make[2]: Entering directory `/home/franzius/osgswig/osgswig-read-only/build'
/usr/bin/cmake -E cmake_progress_report
/home/franzius/osgswig/osgswig-read-only/build/CMakeFiles 1
[ 11%] Building CXX object src/python/CMakeFiles/_osg.dir/osgPYTHON_wrap.o
/usr/bin/c++ -D_osg_EXPORTS -fPIC
-I/HRI/External/OpenSceneGraph/2.4/include
-I/home/franzius/osgswig/osgswig-read-only/include
-I/HRI/External/python/2.5/include/python2.5 -o
src/python/CMakeFiles/_osg.dir/osgPYTHON_wrap.o -c
/home/franzius/osgswig/osgswig-read-only/build/src/python/osgPYTHON_wrap.cxx
/home/franzius/osgswig/osgswig-read-only/build/src/python/osgPYTHON_wrap.cxx:
In function 'int SWIG_Python_ConvertFunctionPtr(PyObject*, void**,
swig_type_info*)':
/home/franzius/osgswig/osgswig-read-only/build/src/python/osgPYTHON_wrap.cxx:2052:
error: invalid conversion from 'const char*' to 'char*'
/home/franzius/osgswig/osgswig-read-only/build/src/python/osgPYTHON_wrap.cxx:
In function 'osg::ImageStream* osg_Image_asImageStream(osg::Image*)':
/home/franzius/osgswig/osgswig-read-only/build/src/python/osgPYTHON_wrap.cxx:5255:
error: '$self' was not declared in this scope
/home/franzius/osgswig/osgswig-read-only/build/src/python/osgPYTHON_wrap.cxx:
In function 'double osg_Viewport_getX(osg::Viewport*)':
/home/franzius/osgswig/osgswig-read-only/build/src/python/osgPYTHON_wrap.cxx:5256:
error: '$self' was not declared in this scope
/home/franzius/osgswig/osgswig-read-only/build/src/python/osgPYTHON_wrap.cxx:
In function 'double osg_Viewport_getY(osg::Viewport*)':
/home/franzius/osgswig/osgswig-read-only/build/src/python/osgPYTHON_wrap.cxx:5257:
error: '$self' was not declared in this scope
/home/franzius/osgswig/osgswig-read-only/build/src/python/osgPYTHON_wrap.cxx:
In function 'double osg_Viewport_getWidth(osg::Viewport*)':
/home/franzius/osgswig/osgswig-read-only/build/src/python/osgPYTHON_wrap.cxx:5258:
error: '$self' was not declared in this scope
/home/franzius/osgswig/osgswig-read-only/build/src/python/osgPYTHON_wrap.cxx:
In function 'double osg_Viewport_getHeight(osg::Viewport*)':
/home/franzius/osgswig/osgswig-read-only/build/src/python/osgPYTHON_wrap.cxx:5259:
error: '$self' was not declared in this scope
/home/franzius/osgswig/osgswig-read-only/build/src/python/osgPYTHON_wrap.cxx:
In function 'void SWIG_Python_FixMethods(PyMethodDef*, swig_const_info*,
swig_type_info**, swig_type_info**)':
/home/franzius/osgswig/osgswig-read-only/build/src/python/osgPYTHON_wrap.cxx:310853:
error: invalid conversion from 'const char*' to 'char*'
make[2]: *** [src/python/CMakeFiles/_osg.dir/osgPYTHON_wrap.o] Error 1
make[2]: Leaving directory `/home/franzius/osgswig/osgswig-read-only/build'
make[1]: *** [src/python/CMakeFiles/_osg.dir/all] Error 2
make[1]: Leaving directory `/home/franzius/osgswig/osgswig-read-only/build'
make: *** [all] Error 2
_______________________________________________________________________
Jetzt 1 Monat kostenlos! WEB.DE FreeDSL - Telefonanschluss + DSL
für nur 17,95 EURO/mtl.!* http://dsl.web.de/?ac=OM.AD.AD008K15039B7069a
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
Hartmut Seichter, PhD (HKU), Dipl-Ing.(BUW), Postdoctoral Fellow, HITLabNZ
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org