Hi everybody,
just tried to get latest CVS compiled on a fresh install of SuSE 10.0. It has
gcc 4.0.2 and freeglut 2.4.0 installed. It compiles, but does not run due to
the known
freeglut (fgfs): Failed to create cursor
freeglut ERROR: Function <glutSetCursor> called without first calling
'glutInit'.
stuff. Trying to compile freeglut 2.2.0 brings up a lot of compile errors on
freeglut_callbacks.c.
The reason for the errors is in freeglut_internal.h in the definitions of the
macros FETCH_WCB and INVOKE_WCB
I modified these like this in freeglut_internal.h:
#define FETCH_WCB(window,cbname) \
((window).CallBacks[CB_ ## cbname])
#define INVOKE_WCB(window,cbname,arg_list) \
do \
{ \
if( FETCH_WCB( window, cbname ) ) \
{ \
fgSetWindow( &window ); \
((FGCB ## cbname)FETCH_WCB( window, cbname )) arg_list; \
} \
} while( 0 )
After that freeglut compiles and a rebuild of plib, SimGear and FlightGear
brings back my FlightGear.
Looks more like a freeglut-thing, but maybe someone on this list also cares...
Cheers, Torsten
_______________________________________________
Flightgear-devel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d