[Flightgear-devel] error compiling in ssgEntityArray.cxx
I'm having this problem compiling FG cvs: make[2]: Entering directory `/home/john/myfiles/source/src/Objects' source='ssgEntityArray.cxx' object='ssgEntityArray.o' libtool=no \ depfile='.deps/ssgEntityArray.Po' tmpdepfile='.deps/ssgEntityArray.TPo' \ depmode=gcc3 /bin/sh ../../depcomp \ g++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src -I/usr/X11R 6/include -g -O2 -D_REENTRANT -c -o ssgEntityArray.o `test -f 'ssgEntityArray.c xx' || echo './'`ssgEntityArray.cxx ssgEntityArray.cxx: In member function `virtual void ssgEntityArray::getStats(int*, int*, int*, int*)': ssgEntityArray.cxx:195: no matching function for call to `ssgEntity::getStats(int*, int*, int*, int*)' make[2]: *** [ssgEntityArray.o] Error 1 make[2]: Leaving directory `/home/john/myfiles/source/src/Objects' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/john/myfiles/source/src' make: *** [all-recursive] Error 1 [EMAIL PROTECTED] source]$ I'm using cvs versions of plib and SimGear. Suggestions? thanks, John Gallas __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] Trouble compiling: undefined reference to ssgCullAndDraw(ssgRoot*)
Curt, Thanks for the suggestion - actually I figured it out just yesterday. I switched back to the non-cvs plib tgz file (v. 1.6.0) and it worked fine. And yes, I had used the same compiler for all of the code. The function definitions in the cvs version of plib and in the 1.6.0 tarball do not match up. Compare: in plib-cvs/src/ssg: [EMAIL PROTECTED] ssg]$ grep CullAndDraw * Binary file libplibssg.a matches ssg.cxx:void ssgCullAndDraw ( ssgBranch *r ) ssg.h:void ssgCullAndDraw ( ssgBranch *root ) ; in plib-1.6.0/src/ssg [EMAIL PROTECTED] ssg]$ grep CullAndDraw * Binary file libplibssg.a matches ssg.cxx:void ssgCullAndDraw ( ssgRoot *r ) ssg.h:void ssgCullAndDraw ( ssgRoot *root ) ; I'm not experienced enough to know, maybe this is just something that my compiler should be overlooking. Take care, John John, Have you compiled plib with the same compiler as the rest of the code? Curt. John A. Gallas writes: Hello all, I downloaded the cvs source tree for the first time yesterday and all the compiling went okay, but it won't link. Here is the output: [EMAIL PROTECTED] Main]$ make g++ -DPKGLIBDIR=\/usr/local/lib/FlightGear\ -g -O2 -L/usr/X11R6/lib -o fgfs main.o fg_commands.o fg_init.o fg_io.o fg_props.o __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
[Flightgear-devel] Trouble compiling: undefined reference to ssgCullAndDraw(ssgRoot*) ???
Hello all, I downloaded the cvs source tree for the first time yesterday and all the compiling went okay, but it won't link. Here is the output: [EMAIL PROTECTED] Main]$ make g++ -DPKGLIBDIR=\/usr/local/lib/FlightGear\ -g -O2 -L/usr/X11R6/lib -o fgfs main.o fg_commands.o fg_init.o fg_io.o fg_props.o fgfs.o globals.o logger.o opti ons.o splash.o util.o viewer.o viewmgr.o location.o ../../src/Aircraft/libAircra ft.a ../../src/ATC/libATC.a ../../src/Autopilot/libAutopilot.a ../../src/Cockpit /libCockpit.a ../../src/Cockpit/built_in/libBuilt_in.a ../../src/Controls/libCon trols.a ../../src/FDM/libFlight.a ../../src/FDM/Balloon/libBalloon.a ../../src/F DM/ExternalNet/libExternalNet.a ../../src/FDM/ExternalPipe/libExternalPipe.a ../ ../src/FDM/JSBSim/libJSBSim.a ../../src/FDM/YASim/libYASim.a ../../src/FDM/JSBSi m/filtersjb/libfiltersjb.a ../../src/FDM/LaRCsim/libLaRCsim.a ../../src/FDM/UIUC Model/libUIUCModel.a ../../src/GUI/libGUI.a ../../src/Input/libInput.a ../../src /Instrumentation/libInstrumentation.a ../../src/Model/libModel.a ../../src/Netwo rk/libNetwork.a ../../src/Navaids/libNavaids.a ../../src/Scenery/libScenery.a .. /../src/Scripting/libScripting.a ../../src/Sound/libSound.a ../../src/Airports/l ibAirports.a ../../src/MultiPlayer/libMultiPlayer.a ../../src/Objects/libObject s.a ../../src/Systems/libSystems.a ../../src/Time/libTime.a ../../src/Environmen t/libEnvironment.a -lsgroute -lsgsky -lsgephem -lsgtiming -lsgio -lsgscreen -lsg math -lsgbucket -lsgdebug -lsgmagvar -lsgmisc -lsgxml -lsgserial -lplibpu -lpli bfnt -lplibjs -lplibnet -lplibssg -lplibsg -lplibul -lplibpsl -lmk4 -lz -lglut - lGLU -lGL -lXmu -lXt -lSM -lICE -lXi -lXext -lX11 -lpthread -lm -lplibsl -lplib sm -lm main.o: In function `trRenderFrame()': /home/john/myfiles/FlightGear/src/Main/../../src/Scenery/scenery.hxx:323: undefined reference to `ssgCullAndDraw(ssgRoot*)' /home/john/myfiles/FlightGear/src/Main/../../src/Scenery/scenery.hxx:323: undefined reference to `ssgCullAndDraw(ssgRoot*)' /home/john/myfiles/FlightGear/src/Main/../../src/Scenery/scenery.hxx:323: undefined reference to `ssgCullAndDraw(ssgRoot*)' main.o: In function `fgRenderFrame()': /home/john/myfiles/FlightGear/src/Main/../../src/Scenery/scenery.hxx:323: undefined reference to `ssgCullAndDraw(ssgRoot*)' /home/john/myfiles/FlightGear/src/Main/../../src/Scenery/scenery.hxx:323: undefined reference to `ssgCullAndDraw(ssgRoot*)' main.o:/home/john/myfiles/FlightGear/src/Main/../../src/Scenery/scenery.hxx:323: more undefined references to `ssgCullAndDraw(ssgRoot*)' follow collect2: ld returned 1 exit status make: *** [fgfs] Error 1 [EMAIL PROTECTED] Main]$ Im using the current cvs versions of plib and SimGear, which compiled and installed without a problem. Do I need to update something else? Thanks very much, John Gallas __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
[Flightgear-devel] Does SGRoute.distance_off_route() work?
Hello everyone- I was just wondering if the subroutine SGRoute.distance_off_route() calculates accurate results (or even reasonably usable results for navigation in fgfs) for waypoints on a wgs84 system. I've run some tests and it seems okay, but I'm no expert - can someone verify this? Also, what units does it return? I measured two distances, two line segments a and b, forming one line perpendicular to line c, and the total distance came to be .03802. Then I used the SGWaypoint routines to calculate the actual length of line a+b and got 1.92609NM or 3567.11 meters. This makes me suspect that either distance_off_route() is using some strange (large) units, or else it just isn't working correctly. The code says that it assumes that all points are lying on a flat plane, and that it works best with a cartesian system. Thanks, John Gallas __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel