Re: [TuxKart-users] I have a compilation problem(corection)
Status: Alpha
Brought to you by:
sjbaker
From: al <al...@te...> - 2000-07-06 13:50:24
|
> To get you up and running, (and assuming you can install PLIB > from the RPM) edit /usr/include/plib/sg.h and add this just > before it says '#define sgFloat float' : > > #ifndef FLT_MAX > # define FLT_MAX (3.40282e+38) > #endif > #ifndef DBL_MAX > # define DBL_MAX (1.79769e+308) > #endif > > Boy - those are *BIG* numbers! ...anyway, that should allow you > to compile and run TuxKart OK. > > Sorry for the hassle - I have no idea why this doesn't work for you. Certainly, it is no hassel, anything worthwhile always takes some work I made that change: /usr/include/plib/sg.h -------<snip>-------- #ifdef __CYGWIN__ #include <float.h> #endif #ifndef FLT_MAX # define FLT_MAX (3.40282e+38) #endif #ifndef DBL_MAX # define DBL_MAX (1.79769e+308) #endif #define sgFloat float #define SGfloat float -------<snip>--------- after editing sg.h... cd tuxkart/ make clean rm config.cache ./configure (no errors) make which gives: Making all in src make[1]: Entering directory `/opt/src/tuxkart-0.0.3/src' c++ -DPACKAGE=\"tuxkart\" -DVERSION=\"0.0.3\" -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DHAVE_LIBGLUT=1 -DSTDC_HEADERS=1 -DHAVE_GL_GL_H=1 -DHAVE_GL_GLUT_H=1 -DLINUX_JOYSTICK_IS_PRESENT=1 -DTUXKART_DATADIR=\"/usr/local/share/games/tuxkart\" -I. -I. -g -O2 -O6 -Wall -c start_tuxkart.cxx c++ -DPACKAGE=\"tuxkart\" -DVERSION=\"0.0.3\" -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DHAVE_LIBGLUT=1 -DSTDC_HEADERS=1 -DHAVE_GL_GL_H=1 -DHAVE_GL_GLUT_H=1 -DLINUX_JOYSTICK_IS_PRESENT=1 -DTUXKART_DATADIR=\"/usr/local/share/games/tuxkart\" -I. -I. -g -O2 -O6 -Wall -c tuxkart.cxx tuxkart.cxx: In function `void load_track(ssgBranch *, char *)': tuxkart.cxx:312: implicit declaration of function `int atan2(...)' make[1]: *** [tuxkart.o] Error 1 make[1]: Leaving directory `/opt/src/tuxkart-0.0.3/src' make: *** [all-recursive] Error 1 Let me appologize for the hassel :) aal |