Hi Martins,

I have no experience in Mac. But it seems that type definition of
GLint changes to some other types in your system. In most other cases,
we have:

typedef int GLint;

in the gl.h header. And an ADD_INT_SERIALIZER is workable with it.

Maybe we should have more tests on 64bit systems and try to find out
if an independent ADD_GLINT_SERIALIZER was required to keep compatible
on different platforms.

Wang Rui


2010/3/18 Martins Innus <[email protected]>:
> Hello,
>
> I get the following 2 errors when trying to compile the latest svn on a Mac
> running 10.6 but using the 10.4 SDK.  This compiles fine using the 10.6 SDK
> with gcc-4.2, but since the 10.4 SDK requires gcc-4.0, I assume its a
> compiler quirk.  Any suggestions on how to get around it?
>
> /util/src/osgsvn/src/osgWrappers/serializers/osg/LineStipple.cpp: In
> function 'void wrapper_propfunc_LineStipple(osgDB::ObjectWrapper*)':
> /util/src/osgsvn/src/osgWrappers/serializers/osg/LineStipple.cpp:11: error:
> no matching function for call to 'osgDB::PropByValSerializer<MyClass,
> int>::PropByValSerializer(const char [7], int, GLint
> (osg::LineStipple::*)()const, void (osg::LineStipple::*)(GLint))'
> /util/src/osgsvn/include/osgDB/Serializer:205: note: candidates are:
> osgDB::PropByValSerializer<C, P>::PropByValSerializer(const char*, P, P
> (C::*)()const, void (C::*)(P), bool) [with C = MyClass, P = int]
> /util/src/osgsvn/include/osgDB/Serializer:199: note:
> osgDB::PropByValSerializer<MyClass, int>::PropByValSerializer(const
> osgDB::PropByValSerializer<MyClass, int>&)
>
> /util/src/osgsvn/src/osgWrappers/serializers/osg/Texture.cpp: In function
> 'void wrapper_propfunc_Texture(osgDB::ObjectWrapper*)':
> /util/src/osgsvn/src/osgWrappers/serializers/osg/Texture.cpp:89: error: no
> matching function for call to 'osgDB::PropByValSerializer<MyClass,
> int>::PropByValSerializer(const char [12], int, GLint
> (osg::Texture::*)()const, void (osg::Texture::*)(GLint))'
> /util/src/osgsvn/include/osgDB/Serializer:205: note: candidates are:
> osgDB::PropByValSerializer<C, P>::PropByValSerializer(const char*, P, P
> (C::*)()const, void (C::*)(P), bool) [with C = MyClass, P = int]
> /util/src/osgsvn/include/osgDB/Serializer:199: note:
> osgDB::PropByValSerializer<MyClass, int>::PropByValSerializer(const
> osgDB::PropByValSerializer<MyClass, int>&)
>
>
> Thanks
>
> Martins
> _______________________________________________
> 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