Hi,

Hello Marcio,

Marcio Cabral wrote:
> I am using the CVS version (one week old now). I used configure
> --enable-glut only
>> 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.

it seems Apple made some not so compatible changes to their OpenGL
implementation in 10.5.
AFAIK older versions work with/need the settings currently in the files
we need to introduce some OS version dependent defines. Do you know if
there is some macro defined that holds the version number, i.e.
something that can be used like this pseudo code:

#if defined(OSX_VERSION) && OSX_VERSION >= 10.5

>> 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 (*)())'
>

I guess this can be fixed by changing line 69 in
Source/Base/Base/OSGGLU.h from

typedef GLvoid (*OSGGLUfuncptr)(...);

to

typedef GLvoid (*OSGGLUfuncptr)();

        Hope it helps,
                Carsten


Yes, it worked! Thanks Carsten and Patrick for the help.

However it is getting stuck at another point right now:

        -o obj-dbg/OSGScanParseSkel.lex.o obj-dbg/OSGScanParseSkel.lex.cpp
lex.OSGScanParseSkel_.cc: In member function 'virtual int OSGScanParseLexer::yylex()': lex.OSGScanParseSkel_.cc:893: error: 'yy_buffer_stack' was not declared in this scope lex.OSGScanParseSkel_.cc:893: error: 'yy_buffer_stack_top' was not declared in this scope lex.OSGScanParseSkel_.cc:894: error: 'yyensure_buffer_stack' was not declared in this scope lex.OSGScanParseSkel_.cc:1545: error: 'yy_buffer_stack' was not declared in this scope lex.OSGScanParseSkel_.cc:1545: error: 'yy_buffer_stack_top' was not declared in this scope lex.OSGScanParseSkel_.cc:1568: error: 'yy_buffer_stack' was not declared in this scope lex.OSGScanParseSkel_.cc:1568: error: 'yy_buffer_stack_top' was not declared in this scope

The flex version that comes installed is 2.5.33. Does this have anything to do with this error?

Thanks again for your help guys,

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