Hello;
I just downloaded cygwin, installed PLIB 1.6.0, got the Simgear-0.3 CVS,
installed Metakit, and proceeded to make Simgear. However, I get the
following problem:

====================================================================
make[3]: Entering directory `/usr/local/src/SimGear/simgear/screen'
if g++ -DHAVE_CONFIG_H -I. -I. -I../../simgear -I../..    -g -O2
-D_REENTRANT -M
T extensions.o -MD -MP -MF ".deps/extensions.Tpo" \
  -c -o extensions.o `test -f 'extensions.cxx' || echo './'`extensions.cxx; \
then mv -f ".deps/extensions.Tpo" ".deps/extensions.Po"; \
else rm -f ".deps/extensions.Tpo"; exit 1; \
fi
In file included from extensions.cxx:35:
extensions.hxx: In function `void (* SGLookupFunction(const char*))()':
extensions.hxx:65: `glXGetProcAddressARB' undeclared (first use this
function)
extensions.hxx:65: (Each undeclared identifier is reported only once for each
   function it appears in.)
make[3]: *** [extensions.o] Error 1
make[3]: Leaving directory `/usr/local/src/SimGear/simgear/screen'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/SimGear/simgear'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/src/SimGear/simgear'
make: *** [all-recursive] Error 1
===================================================


I looked into extensions.hxx and hacked it as follows to get everything to
compile:
===================================================
#if defined( WIN32 )
        return (void (*)()) wglGetProcAddress(func);

#elif defined( __APPLE__ )
        return (void (*)()) macosxGetGLProcAddress(func);
#else

  // If the target system s UNIX and the ARB_get_proc_address
  // GLX extension is *not* guaranteed to be supported. An alternative
  // dlsym-based approach will be used instead.
  //#if defined( linux ) || defined ( sgi ) //comment out to get to
compile under cygwin
        void *libHandle;
        void (*fptr)();
        libHandle = dlopen("libGL.so", RTLD_LAZY);
        fptr = (void (*)()) dlsym(libHandle, func);
        dlclose(libHandle);
        return fptr;
  //#else    //comment out to get to compile under cygwin

  //       return glXGetProcAddressARB(func); //comment out to get to
compile under cygwin
  //#endif //comment out to get to compile under cygwin
#endif
===================================================


After this change Simgear compiles, the FlightGear-0.9 CVS compiles,
however, upon starting FlightGear everything goes well, but when the
splash screen is shown and the beeping sound is heard, things lock and I
get a message in the console as follows:
=================================
WARNING: SlDSP: Cannot perform this operation while media data is still
playing.
  Reset the device, or wait until the data is finished playing. (33)
=================================

Could this problem be due to my hack? Could anyone confirm the compile
problem at least, and suggest another fix?

Thanks,
-Mike



_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to