In src/Main/Makefile.am, OSG_LIBS is set explicitly to -losg, etc. This is not portable with OS X, which uses "-framework osg" (it can also use the -losg style depending on how osg was installed. End users will use the -framework style installation).
The following patch demonstrates the problem, but it's not meant for general consumption. It seems that what should be happening instead is an autoconf check for the appropriate libraries. Autoconf is able to find the right flags, whether they be -l or -framework. I'm not an autoconf guru, but I think the magic command is AC_CHECK_LIB(osg, <some symbol in libosg>) and so forth. I'd be willing to write a patch adding AC_CHECK_LIB statements to configure.ac, if someone more familiar with osg will point out a symbol from each library (osgViewer osgGA osgText osgFX osgUtil osgDB osgSim osg OpenThread), so I don't have to ingest the whole OSG API in the process. Index: fgs/src/Main/Makefile.am =================================================================== --- fgs.orig/src/Main/Makefile.am 2007-12-20 17:39:36.000000000 -0700 +++ fgs/src/Main/Makefile.am 2007-12-20 17:40:09.000000000 -0700 @@ -29,7 +29,7 @@ if USE_OSGDEBUG OSG_LIBS = -losgViewerd -losgGAd -losgTextd -losgFXd -losgUtild -losgDBd -losgSimd -losgd -lOpenThreadsd else -OSG_LIBS = -losgViewer -losgGA -losgText -losgFX -losgUtil -losgDB -losgSim -losg -lOpenThreads +OSG_LIBS = -framework osgViewer -framework osgGA -framework osgText -framework osgFX -framework osgUtil -framework osgDB -framework osgSim -framework osg -framework OpenThreads endif JSBSIM_LIBS = \ @@ -111,13 +111,14 @@ -lsgstructure -lsgenvironment \ -lplibpuaux -lplibpu -lplibfnt -lplibjs -lplibnet \ -lplibsg -lplibul \ - $(OSG_LIBS) \ $(THREAD_LIBS) \ $(network_LIBS) \ -lz \ $(opengl_LIBS) \ $(openal_LIBS) +fgfs_LDFLAGS = $(OSG_LIBS) + metar_SOURCES = metar_main.cxx metar_LDADD = \ -- Hans Fugal Fugal Computing ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel