Re: [osg-users] Mac Serializer Compile Error

2010-03-19 Thread Martins Innus
I have attempted to add a ADD_GLINT_SERIALIZER for the cases where I got errors. I did as Robert suggested and just blindly cast to int. Figured I'd post here first instead of to submissions since I have no idea if this will break other builds, but it allows the serializers to compile for me

Re: [osg-users] Mac Serializer Compile Error

2010-03-18 Thread Robert Osfield
HI Matrin Wang Rui On Thu, Mar 18, 2010 at 3:15 AM, Wang Rui wangra...@gmail.com wrote: 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.

Re: [osg-users] Mac Serializer Compile Error

2010-03-18 Thread Martins Innus
Wang Rui, Looking at gl.h under the different SDK's here are the typedefs: 10.4 : long 10.5 : int 10.6 : int So I'm not sure what that means in terms of being able to support different types with the serializer. Martins On 3/17/2010 11:15 PM, Wang Rui wrote: Hi Martins, I

[osg-users] Mac Serializer Compile Error

2010-03-17 Thread Martins Innus
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?

Re: [osg-users] Mac Serializer Compile Error

2010-03-17 Thread Wang Rui
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