I have been attempting to get the current version of Flightgear compiling on Cygwin. Previously I had the PREOSG version running without issues. I am still using the same plib and it seems to compiles just like it did before. I have OSG and OpenThreads and Openal all on the system. Simgear compiles although I had an issue with a HUGE I think should have been a HUGE_VAL and an issue with volatile long conversion to long but I got it to compile.
Now atttempting to compile Flightgear and I get the following error: g++ -DNOMINMAX -I/usr/local/include/ -DPKGLIBDIR=\"/usr/FlightGear/share/FlightG ear\" -g -O2 -D_REENTRANT -O2 -g -L/usr/local/lib -L/usr/lib/ -L/lib/ -L/usr/Fl ightGear/lib -o js_demo.exe js_demo.o -lplibjs -lwinmm -lplibul if g++ -DNOMINMAX -I/usr/local/include/ -DHAVE_CONFIG_H -I. -I/usr/src/FlightGea r-0.9/source/src/Input -I../../src/Include -I/usr/src/FlightGear-0.9/source -I/u sr/src/FlightGear-0.9/source/src -I/usr/src/FlightGear-0.9/source/src/Main -I/u sr/FlightGear/include -I/usr/local/include -DPKGLIBDIR=\"/usr/FlightGear/share/F lightGear\" -g -O2 -D_REENTRANT -MT fgjs.o -MD -MP -MF ".deps/fgjs.Tpo" -c -o fg js.o /usr/src/FlightGear-0.9/source/src/Input/fgjs.cxx; \ then mv -f ".deps/fgjs.Tpo" ".deps/fgjs.Po"; else rm -f ".deps/fgjs.Tpo" ; exit 1; fi In file included from /usr/FlightGear/include/simgear/structure/SGReferenced.hxx :24, from /usr/FlightGear/include/simgear/props/props.hxx:44, from /usr/FlightGear/include/simgear/structure/subsystem_mgr.hx x:44, from /usr/src/FlightGear-0.9/source/src/Main/fg_io.hxx:29, from /usr/src/FlightGear-0.9/source/src/Input/fgjs.cxx:50: /usr/FlightGear/include/simgear/structure/SGAtomic.hxx:87: warning: `align' attr ibute directive ignored if g++ -DNOMINMAX -I/usr/local/include/ -DHAVE_CONFIG_H -I. -I/usr/src/FlightGea r-0.9/source/src/Input -I../../src/Include -I/usr/src/FlightGear-0.9/source -I/u sr/src/FlightGear-0.9/source/src -I/usr/src/FlightGear-0.9/source/src/Main -I/u sr/FlightGear/include -I/usr/local/include -DPKGLIBDIR=\"/usr/FlightGear/share/F lightGear\" -g -O2 -D_REENTRANT -MT jsinput.o -MD -MP -MF ".deps/jsinput.Tpo" -c -o jsinput.o /usr/src/FlightGear-0.9/source/src/Input/jsinput.cxx; \ then mv -f ".deps/jsinput.Tpo" ".deps/jsinput.Po"; else rm -f ".deps/jsi nput.Tpo"; exit 1; fi if g++ -DNOMINMAX -I/usr/local/include/ -DHAVE_CONFIG_H -I. -I/usr/src/FlightGea r-0.9/source/src/Input -I../../src/Include -I/usr/src/FlightGear-0.9/source -I/u sr/src/FlightGear-0.9/source/src -I/usr/src/FlightGear-0.9/source/src/Main -I/u sr/FlightGear/include -I/usr/local/include -DPKGLIBDIR=\"/usr/FlightGear/share/F lightGear\" -g -O2 -D_REENTRANT -MT jssuper.o -MD -MP -MF ".deps/jssuper.Tpo" -c -o jssuper.o /usr/src/FlightGear-0.9/source/src/Input/jssuper.cxx; \ then mv -f ".deps/jssuper.Tpo" ".deps/jssuper.Po"; else rm -f ".deps/jss uper.Tpo"; exit 1; fi g++ -DNOMINMAX -I/usr/local/include/ -DPKGLIBDIR=\"/usr/FlightGear/share/FlightG ear\" -g -O2 -D_REENTRANT -O2 -g -L/usr/local/lib -L/usr/lib/ -L/lib/ -L/usr/Fl ightGear/lib -o fgjs.exe fgjs.o jsinput.o jssuper.o -lplibjs -lwinmm -lplibul -lsgprops -lsgmisc -lsgio -lsgdebug -lsgstructure -lsgxml -lz /usr/FlightGear/lib/libplibul.a(ulClock.o): In function `_ZNK7ulClock10getRawTim eEv': /usr/src/plib-1.8.4/src/util/ulClock.cxx:79: undefined reference to `_timeGetTim [EMAIL PROTECTED]' collect2: ld returned 1 exit status make[2]: *** [fgjs.exe] Error 1 make[2]: Leaving directory `/usr/develop/obj/cygwin-apps/FlightGear-0.9/src/Inpu t' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/develop/obj/cygwin-apps/FlightGear-0.9/src' make: *** [all-recursive] Error 1 [EMAIL PROTECTED] /usr/develop/obj/cygwin-apps/FlightGear-0.9 $ I read some emails from last year said this might be related to winmm but I found the lib in Cygwin and the makes are referencing it. So I kept digging around thinking maybe Cygwin vs Win32 problem but if it is I haven't found it. I checked libplibul.a and ulClock.o for timeGetTime and I checked winmm as follows: $ nm /lib/w32api/libwinmm.a |grep timeGetTime 00000000 I [EMAIL PROTECTED] 00000000 T [EMAIL PROTECTED] Which does appear to show [EMAIL PROTECTED] as existing and then I did the same for libplibul.a and I got the following $ nm libplibul.a |grep timeGetTime U [EMAIL PROTECTED] which seems to show it as undefined. I checked ulClock.o and got that same result of undefined reference. I have a version of Flightgear with the same plib and using the PRE OSG Flightgear (which runs) on another computer and did the same nm check on it with the same results for plib and winmm. I also tried to do some compares of the source/src/input branch of the current FlightGear against the PRE OSG version and there are obviously a lot of changes. I'm at a loss. Not sure where to go from here. I also checked the Pre OSG build .o files for timeGetTime and they did not seem to have it. bk ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Flightgear-users mailing list Flightgear-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-users