Hi, In a Windows XP machine, running cygwin, latest CVS for simgear and flightgear I am getting the SAME or SIMILAR error when linking FlightGear ... well actually when linking fgjs.exe, under cygwin ... namely -
Making all in Input make[2]: Entering directory `/home/GeoffMcLane/FlightGear-0.9-cvs/source/src/Input' g++ -DPKGLIBDIR=\"/fg-cvs/share/FlightGear\" -g -O2 -D_REENTRANT -L/fg-cvs/lib -L/usr/local/lib -o fgjs.exe fgjs .o jsinput.o jssuper.o -lplibjs -lwinmm -lplibul -lsgprops -lsgmisc -lsgio -lsgdebug -lsgstructure -lsgxml -lz /fg-cvs/lib/libplibul.a(ulClock.o): In function `_ZNK7ulClock10getRawTimeEv': /home/GeoffMcLane/plib-1.8.4/src/util/ulClock.cxx:79: undefined reference to [EMAIL PROTECTED]' collect2: ld returned 1 exit status make[2]: *** [fgjs.exe] Error 1 make[2]: Leaving directory `/home/GeoffMcLane/FlightGear-0.9-cvs/source/src/Input' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/GeoffMcLane/FlightGear-0.9-cvs/source/src' make: *** [all-recursive] Error 1 ERROR in make Have read what Georg and Fred wrote ... and having found that libwinmm.a is in /lib/w32api and in /usr/lib/w32api from - $ find / -name *winmm* /lib/w32api/libwinmm.a /usr/lib/w32api/libwinmm.a I altered -lwinmm to -llibwinmm in the 'configure' file, and did ./configure -prefix=xxx, and make again but this time got the error - Making all in Input make[2]: Entering directory `/home/GeoffMcLane/FlightGear-0.9-cvs/source/src/Input' g++ -DPKGLIBDIR=\"/fg-cvs/share/FlightGear\" -g -O2 -D_REENTRANT -L/fg-cvs/lib -L/usr/local/lib -o fgjs.exe fgjs .o jsinput.o jssuper.o -lplibjs -llibwinmm -lplibul -lsgprops -lsgmisc -lsgio -lsgdebug -lsgstructure -lsgxml -lz /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find -llibwinmm collect2: ld returned 1 exit status make[2]: *** [fgjs.exe] Error 1 make[2]: Leaving directory `/home/GeoffMcLane/FlightGear-0.9-cvs/source/src/Input' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/GeoffMcLane/FlightGear-0.9-cvs/source/src' make: *** [all-recursive] Error 1 ERROR in make I altered the same line in configure.ac from -lwinmm to -llibwinmm and set the environment - $ export LDFLAGS=-L/lib/w32api $ export CPPFLAGS=-DNOMINMAX then did $ ./autogen.sh $ ./configure -prefix=/fg=cvs $ make BUT I STILL GET THE ERROR 'CAN NOT FIND'! on linking fgjs.exe - Making all in Input make[2]: Entering directory `/home/GeoffMcLane/FlightGear-0.9-cvs/source/src/Input' g++ -DPKGLIBDIR=\"/fg-cvs/share/FlightGear\" -g -O2 -D_REENTRANT -L/lib/w32api -L/fg-cvs/lib -L/usr/local/lib -o fgjs.exe fgjs.o jsinput.o jssuper.o -lplibjs -llibwinmm -lplibul -lsgprops -lsgmisc -lsgio -lsgdebug -lsgstructu re -lsgxml -lz /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find -llibwinmm collect2: ld returned 1 exit status make[2]: *** [fgjs.exe] Error 1 make[2]: Leaving directory `/home/GeoffMcLane/FlightGear-0.9-cvs/source/src/Input' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/GeoffMcLane/FlightGear-0.9-cvs/source/src' make: *** [all-recursive] Error 1 Note, now there is a -L/lib/w32api and -llibwinmm in the g++ command line ... version is ... $ g++ --version g++ (GCC) 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125) The 'configure' and 'configure.ac' of cvs simgear and tar ball of plib-1.8.4, BOTH also use -lwinmm, but I do not get an error compiling plib or simgear ... but would not expect one since these are just static libraries, just for flightgear, well fgjs.exe ... Commenting OUT the following lines in /src/input/makefile.am, I got the rest of FG to compile ... that is killing the fgjs.exe make, and js_demo as well, although it may not be a problem ... I am 'great' at 'hacking' ;=)) #bin_PROGRAMS = js_demo fgjs #js_demo_SOURCES = js_demo.cxx #js_demo_LDADD = -lplibjs $(base_LIBS) $(joystick_LIBS) -lplibul #fgjs_SOURCES = fgjs.cxx jsinput.cxx jsinput.h jssuper.cxx jssuper.h #fgjs_LDADD = -lplibjs $(base_LIBS) $(joystick_LIBS) -lplibul \ # -lsgprops -lsgmisc -lsgio -lsgdebug -lsgstructure -lsgxml -lz But still a problem with missing -llibwinmm ... So putting this back as -lwinmm in 'configure', and clearing the environment - ie close cygwin windows, then re-open it again - then doing just - $ export CPPFLAGS=-DNOMINMAX $ ./configure -prefix=/fg-cvs $ make AND fgfs.exe LINKED - Making all in Main make[2]: Entering directory `/home/GeoffMcLane/FlightGear-0.9-cvs/source/src/Main' g++ -DPKGLIBDIR=\"/fg-cvs/share/FlightGear\" -g -O2 -D_REENTRANT -L/fg-cvs/lib -L/usr/local/lib -o fgfs.exe boot strap.o ../../src/Main/libMain.a ../../src/Aircraft/libAircraft.a ... etc, etc, etc ... ../../src/Environment/libEnvironment.a -lsgroute -lsgsky -lsgsound -lsgephem -lsgmaterial -lsgtgdb -lsgmodel -lsgtiming -lsgio -lsgscreen -lsgmath -lsgbucket -lsgprops -lsgdebug -lsgmagvar -lsgmisc -lsgnasal -lsgxml -lsgsound -lsgserial -lsgstructure -lsgenvironment -lsgthreads -lplibpuaux -lplibpu -lplibfnt -lplibjs -lplibnet -lplibssgaux -lplibssg -lplibsg -lplibul -lz -lglut32 -lglu32 -lopengl32 -luser32 -lgdi32 -lopenal32 -lwinmm -ldsound -ldxguid -lole32 And it RAN, sort of ... still missing the Golden Gate Bridge ... see - http://geoffmclane.com/fg/fgfs-028.htm#missing_bridge but the important fact is that it LINKED and RAN, with a modest 16-20 fps ... Note, this was with -lwinmm - so it seems the gcc linker 'knows' that 'lib' might have to be pre-pended to a library name ;=() or something ... This page is where I was writing this up - http://geoffmclane.com/fg/fgfs-029.htm ANY HELP ON LINKING FGJS.EXE (in cygwin) WOULD BE MUCH APPRECIATED ... Regards, Geoff. EOF - fg-44.doc _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel