I am having a problem with SimGear when building flightgear.

in simgear/screen/extensions.cxx

I need to wrap the #ifdef lines within

#ifndef __APPLE__
#ifndef WIN32
#include <dlfcn.h>
#else
#include <windows.h>
#endif
#endif //__APPLE__      

Otherwise I get the message that
g++ -DHAVE_CONFIG_H -I. -I. -I../../simgear -I../.. -I/Users/ima/Desktop/FlightGear/fgdev9.2/include -g -O2 -D_REENTRANT -c -o extensions.o `test -f 'extensions.cxx' || echo './'`extensions.cxx
extensions.cxx:28:19: dlfcn.h: No such file or directory
make[3]: *** [extensions.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1


So I downloaded dlcompat, but I don't see dlfcn.h anywhere on my system. Is this file required now for flightgear on macos x?

With the #ifdefs out of the picture, simgear builds fine, as does fg.

Fink shows the following dlcompat loaded:
Information about 1159 packages read in 1 seconds.

 i   dlcompat         20021117-1   Dynamic loading compatibility library
 i   dlcompat-shlibs  20021117-1   shared libraries for dlcompat

but I still don't see dlfcn.h.

Any ideas what I'm doing wrong? Using mac os x (10.2) with developer tools and plib/simgear and fg/data of Thursday 17:00 GMT. I'd rather not separate my local source from the cvs servers any more than absolutely necessary

thanks, Ima


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

Reply via email to