Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

0.9.4 build error on linux. undefined reference to `ssgCullAndDraw(ssgRoot*)'

Featured Replies

---------------------------------------------------------------------make[2]: Entering directory `/home/pheldens/src/build/FlightGear-0.9.4/src/Maing++ -DPKGLIBDIR="/usr/lib/FlightGear" -O2 -s -march=pentium4 -pipe -s -L/usrX11R6/lib -o fgfs bootstrap.o ../../src/Main/libMain.a ../../src/Aircraft/libArcraft.a ../../src/ATC/libATC.a ../../src/Cockpit/libCockpit.a ../../src/Cockpi/built_in/libBuilt_in.a ../../src/Controls/libControls.a ../../src/FDM/libFligh.a ../../src/FDM/Balloon/libBalloon.a ../../src/FDM/ExternalNet/libExternalNet. ../../src/FDM/ExternalPipe/libExternalPipe.a ../../src/FDM/JSBSim/libJSBSim.a ./../src/FDM/YASim/libYASim.a ../../src/FDM/JSBSim/filtersjb/libfiltersjb.a .././src/FDM/LaRCsim/libLaRCsim.a ../../src/FDM/UIUCModel/libUIUCModel.a ../../srcGUI/libGUI.a ../../src/Autopilot/libAutopilot.a ../../src/Input/libInput.a .././src/Instrumentation/libInstrumentation.a ../../src/Model/libModel.a ../../src/IModel/libAIModel.a ../../src/Network/libNetwork.a ../../src/Navaids/libNavaidsa ../../src/Scenery/libScenery.a ../../src/Scripting/libScripting.a ../../src/Sund/libSound.a ../../src/Airports/libAirports.a ../../src/MultiPlayer/libMultiPayer.a ../../src/Replay/libReplay.a ../../src/Systems/libSystems.a ../../src/Tie/libTime.a ../../src/Environment/libEnvironment.a -lsgclouds3d -lsgroute -lsgsy -lsgsound -lsgephem -lsgmaterial -lsgtgdb -lsgmodel -lsgtiming -lsgio -lsgscren -lsgmath -lsgbucket -lsgprops -lsgdebug -lsgmagvar -lsgmisc -lsgnasal -lsgxm -lsgsound -lsgserial -lsgstructure -lsgenvironment -lplibpu -lplibfnt -lplibj -lplibnet -lplibssg -lplibsg -lplibul -lz -lglut -lGLU -lGL -lXmu -lXt -lSM -ICE -lXi -lXext -lX11 -ldl -lm -lplibsl -lplibsm /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../libsgsky.a(cloud.o): In functon `SGCloudLayer::draw()':cloud.o(.text+0x1f6b): undefined reference to `ssgCullAndDraw(ssgRoot*)'/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../libsgsky.a(sky.o): In functio `SGSky::preDraw(float, float)':sky.o(.text+0x8fd): undefined reference to `ssgCullAndDraw(ssgRoot*)'collect2: ld returned 1 exit statusmake[2]: *** [fgfs] Error 1make[2]: Leaving directory `/home/pheldens/src/build/FlightGear-0.9.4/src/Main'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/home/pheldens/src/build/FlightGear-0.9.4/src'make: *** [all-recursive] Error 1---------------------------------------------------------------------plib 1.8.2 compiled and installed without any trouble. I doublechecked the dates on those installed (static) libraries and they seem to have succesfully overwritten my old install. All libs used in linking are of the last install and compiled with the same compiler. (gcc 3.3.2)

Not sure who to reply to, and not sure how familiar you are with compiling under Linux, but hear are some notes:1. Make sure you install the PLIB library and sources into your default library, in a directory called 'plib'.2. Make sure to install SimGear as well as PLIB.3. Make sure to run the 'configure' file (aka "./configure").4. The library that is referring to the 'ssgCullAndDraw' function can't find it (this is why I mention 'paths' above).The 'sky.o' and 'cloud.o' files mentioned in the compilation output are part of the SimGear sources, in the 'simgear/scene/sky/' directory, and both refer to 'included' files "#include " (this is where the 'ssgCullAndDraw' function is defined).Thus, if you have a LIB environment variable set that is where gcc will look for a 'plib' directory. It is there that gcc will expect to find the 'ssg.h', and 'ssg.cxx', files for 'ssgCullAndDraw'.Otherwise, the Library and Include paths you specify to the compiler are where it will for the 'plib/sky.h' and 'plib/sky.cxx' files, or for 'libsgsky.a' library. In the library file, as long as the paths are the same (as in the original files - i.e , etc), FlightGear should compile normally.Tom C.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.