Mathias,

I had already noticed someone commited osgSWIG changes for osg 2.6
that probably accidentally broke osg 2.4 Arrays
(http://code.google.com/p/osgswig/source/detail?r=179). I didn't feel
like fixing it at the time, because my own checkout was far out of
sync and it would require some time to test stuff for both osg 2.4 and
osg 2.6. Hopefully now I fixed stuff again in SVN, revision 185,
(http://code.google.com/p/osgswig/source/detail?r=185). Excuse me for
the trouble, hopefully you can continue your journey now.

Gerwin

On Wed, Feb 18, 2009 at 2:46 PM, Mathias Franzius
<[email protected]> wrote:
> using swig 1.3.38 all compiled well.
> I found the issue with osg 2.6 and VecArray and thus tried osg 2.4.
> Now I have the libraries in build/lib/python/
> which I manually copy to site-packages/osgswig (or is that wrong?)
> If I try something from the examples dir I get the following error:
>
>>python pyramid.py
> Traceback (most recent call last):
>  File "pyramid.py", line 26, in <module>
>    lineVertices.push_back(osg.Vec3(-10,10,0))
>  File "/tmp/osg/osg.py", line 12044, in <lambda>
>    __getattr__ = lambda self, name: _swig_getattr(self, Vec3Array, name)
>  File "/tmp/osg/osg.py", line 48, in _swig_getattr
>    raise AttributeError(name)
> AttributeError: push_back
>
>
> Again, I'm lost here...  Is this the same bug as for osg 2.6?
> Best,
>   Mathias
>
> -----Ursprüngliche Nachricht-----
> Von: "Mathias Franzius" <[email protected]>
> Gesendet: 18.02.09 11:45:31
> An: OpenSceneGraph Users <[email protected]>
> Betreff: Re: [osg-users] osg swig build problem
>
> Thanks for the quick reply!
> I'll try the latest swig version then. Till then, I just commented the 
> section with the $selfs out and fixed the chars to const chars to see if 
> that's sufficient.
> It seems to be sth systematic, as after fixing src/python/osgPYTHON_wrap.cxx 
> there are the same errors in src/python/osgDBPYTHON_wrap.cxx and 
> src/python/osgFXPYTHON_wrap.cxx
> After that I lost confidence that I can fix it in some limited amount of 
> time...
> I suppose the right place for bug reports is the google code page?
>
> Best,
>   Mathias
>
> -----Ursprüngliche Nachricht-----
> Von: "Hartmut Seichter" <[email protected]>
> Gesendet: 18.02.09 11:26:07
> An: OpenSceneGraph Users <[email protected]>
> Betreff: Re: [osg-users] osg swig build problem
>
> 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
>
>
>
> _______________________________________________________________________
> DSL zum Nulltarif + 20 Euro Extraprämie bei Online-Bestellung über die
> DSL Freundschaftswerbung! http://dsl.web.de/?ac=OM.AD.AD008K15279B7069a
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
>
> ____________________________________________________________________
> Psssst! Schon vom neuen WEB.DE MultiMessenger gehört?
> Der kann`s mit allen: http://www.produkte.web.de/messenger/?did=3123
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to