Hello Marcio,

[EMAIL PROTECTED] wrote:
> Hi there,
> I am not able to compile OpenSG on osx 10.5

what version of OpenSG are you using ? What is your configure command
(or scons invocation) ?


I am using the CVS version (one week old now). I used configure -- enable-glut only


> Here is the error message I get when running make:
>
> /Users/marcio/Programming/OpenSG/Source/Base/Base/ OSGBaseTypeTraits.h:1038:
> error: redefinition of 'struct osg::TypeTraits<osg::UInt32>'
> /Users/marcio/Programming/OpenSG/Source/Base/Base/ OSGBaseTypeTraits.h:452:
> error: previous definition of 'struct osg::TypeTraits<osg::UInt32>'

I know near nothing about OSX, but it seems that previous versions had
different types for GLenum and unsigned int. To me it looks as if that
has changed, 10.5 is pretty new, isn't it ?


Yes, it is new.

Therefore you might want to try to comment out the line in
Source/Base/Base/OSGConfig that has (about line 563)

# define OSG_GLENUM_NEQ_UINT32

It might also be necessary to comment out the line above that

# define SIZE_T_NEQ_UINT32


It passed that error but now it produces another error message in several files:

/Users/marcio/Programming/OpenSG/Source/Experimental/Text/ OSGVectorFontGlyph.cpp: In member function 'bool osg::VectorFontGlyph::createTriangles()': /Users/marcio/Programming/OpenSG/Source/Experimental/Text/ OSGVectorFontGlyph.cpp:240: error: invalid conversion from 'GLvoid (*) (...)' to 'GLvoid (*)()' /Users/marcio/Programming/OpenSG/Source/Experimental/Text/ OSGVectorFontGlyph.cpp:240: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)())'


/Users/marcio/Programming/OpenSG/Source/System/Text/ OSGTextVectorGlyph.cpp: In member function 'const osg::TextVectorGlyph::PolygonOutline& osg::TextVectorGlyph::getLines(osg::UInt32) const': /Users/marcio/Programming/OpenSG/Source/System/Text/ OSGTextVectorGlyph.cpp:354: error: invalid conversion from 'GLvoid (*) (...)' to 'GLvoid (*)()' /Users/marcio/Programming/OpenSG/Source/System/Text/ OSGTextVectorGlyph.cpp:354: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)())'


/Users/marcio/Programming/OpenSG/Source/System/NodeCores/Drawables/ VolRen/OSGDVRClipper.cpp: In member function 'void osg::DVRClipper::initialize(osg::DVRVolume*)': /Users/marcio/Programming/OpenSG/Source/System/NodeCores/Drawables/ VolRen/OSGDVRClipper.cpp:128: error: invalid conversion from 'GLvoid (*)(...)' to 'GLvoid (*)()' /Users/marcio/Programming/OpenSG/Source/System/NodeCores/Drawables/ VolRen/OSGDVRClipper.cpp:128: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)())'

Thanks!

Marcio


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to