From: Durk T. <d.t...@xs...> - 2007-04-24 18:58:24
|
On Tuesday 24 April 2007 19:10, Mathias Fr=F6hlich wrote: > On Monday 23 April 2007, Andy Ross wrote: > > Indeed. Nonetheless, from a build just completed: > > > > $ ldd ./yasim > > libdl.so.2 =3D> /lib/libdl.so.2 (0x00002ac79e774000) > > libstdc++.so.6 =3D> /usr/lib/libstdc++.so.6 (0x00002ac79e878000) > > libm.so.6 =3D> /lib/libm.so.6 (0x00002ac79ea78000) > > libgcc_s.so.1 =3D> /lib/libgcc_s.so.1 (0x00002ac79ebf9000) > > libc.so.6 =3D> /lib/libc.so.6 (0x00002ac79ed07000) > > /lib64/ld-linux-x86-64.so.2 (0x00002ac79e657000) > > > > Those extra SimGear libraries don't require anything from OSG, except > > perhaps the compile-time headers. Are you doing anything fancy like > > building SimGear as a shared library? > > Hmm, the same for me. > What symbols are missing for you link? > Hi Matthias (and Andy), In response to Andy's question; no, I don't recall doing anything fancy,=20 just ./configure; make; make install where appropriate. I also completely=20 removed every hint of SimGear and OSG from /usr/local/include=20 and /usr/local/lib, and recompiled the "clean" versions of OpenThreads,=20 Producer, OpenSceneGraph, and SimGear, but still yasim standalone refuses t= o=20 compile.=20 =46WIW, I'm using gcc 3.3.5. 20050117, as part of Suse 9.3. durk@linux:/usr/include> gcc --version gcc (GCC) 3.3.5 20050117 (prerelease) (SUSE Linux) Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. In response to Matthias, here's the full error log produced by g++. I tried= =20 googeling the exact error message, but that didn't bring up anything. Cheers, Durk if g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/Include -I../../..=20 =2DI../../../src -I/usr/X11R6/include -I/usr/local/include -g -O2=20 =2DD_REENTRANT -MT yasim-test.o -MD -MP -MF ".deps/yasim-test.Tpo" -c -o=20 yasim-test.o yasim-test.cpp; \ then mv -f ".deps/yasim-test.Tpo" ".deps/yasim-test.Po"; else rm -f=20 ".deps/yasim-test.Tpo"; exit 1; fi g++ -g -O2 -D_REENTRANT -L/usr/X11R6/lib -L/usr/local/lib -o yasim =20 yasim-test.o Airplane.o Atmosphere.o ControlMap.o FGFDM.o Gear.o Glue.o=20 Ground.o Hitch.o Hook.o Launchbar.o Integrator.o Jet.o Math.o Model.o=20 PropEngine.o Propeller.o PistonEngine.o TurbineEngine.o RigidBody.o Rotor.o= =20 Rotorpart.o SimpleJet.o Surface.o Thruster.o Wing.o Turbulence.o -lsgxml=20 =2Dlsgprops -lsgdebug -lsgmisc -lsgstructure -ldl -lm Gear.o(.gnu.linkonce.r._ZTIN3osg6ObjectE+0x8): undefined reference to=20 `typeinfo for osg::Referenced' Gear.o(.gnu.linkonce.t._ZN3osg12NodeCallbackclEPNS_4NodeEPNS_11NodeVisitorE= +0x5):=20 In function `osg::NodeCallback::operator()(osg::Node*, osg::NodeVisitor*)': /usr/local/include/osg/NodeCallback:45: undefined reference to=20 `osg::NodeCallback::traverse(osg::Node*, osg::NodeVisitor*)' Gear.o(.gnu.linkonce.t._ZN3osg6ObjectD2Ev+0x5a): In function=20 `osg::Object::~Object [not-in-charge]()': /usr/include/c++/3.3.5/bits/stl_alloc.h:656: undefined reference to=20 `osg::Referenced::~Referenced [not-in-charge]()' Gear.o(.gnu.linkonce.t._ZN3osg6ObjectD2Ev+0xa1): In function=20 `osg::Object::~Object [not-in-charge]()': /usr/local/include/osg/Referenced:173: undefined reference to=20 `osg::Referenced::getDeleteHandler()' Gear.o(.gnu.linkonce.t._ZN3osg6ObjectD2Ev+0xc2):/usr/local/include/osg/Refe= renced:174:=20 undefined reference to `osg::Referenced::getDeleteHandler()' Gear.o(.gnu.linkonce.t._ZN3osg6ObjectD2Ev+0xed): In function=20 `osg::Object::~Object [not-in-charge]()': /usr/include/c++/3.3.5/bits/stl_alloc.h:656: undefined reference to=20 `osg::Referenced::~Referenced [not-in-charge]()' Gear.o(.gnu.linkonce.t._ZN3osg6ObjectD0Ev+0x5a): In function=20 `osg::Object::~Object [in-charge deleting]()': /usr/include/c++/3.3.5/bits/stl_alloc.h:656: undefined reference to=20 `osg::Referenced::~Referenced [not-in-charge]()' Gear.o(.gnu.linkonce.t._ZN3osg6ObjectD0Ev+0xa1): In function=20 `osg::Object::~Object [in-charge deleting]()': /usr/local/include/osg/Referenced:173: undefined reference to=20 `osg::Referenced::getDeleteHandler()' Gear.o(.gnu.linkonce.t._ZN3osg6ObjectD0Ev+0xc2):/usr/local/include/osg/Refe= renced:174:=20 undefined reference to `osg::Referenced::getDeleteHandler()' Gear.o(.gnu.linkonce.t._ZN3osg6ObjectD0Ev+0xed): In function=20 `osg::Object::~Object [in-charge deleting]()': /usr/include/c++/3.3.5/bits/stl_alloc.h:656: undefined reference to=20 `osg::Referenced::~Referenced [not-in-charge]()' Gear.o(.gnu.linkonce.t._ZN3osg6ObjectD1Ev+0x5a): In function=20 `osg::Object::~Object [in-charge]()': /usr/include/c++/3.3.5/bits/stl_alloc.h:656: undefined reference to=20 `osg::Referenced::~Referenced [not-in-charge]()' Gear.o(.gnu.linkonce.t._ZN3osg6ObjectD1Ev+0xa1): In function=20 `osg::Object::~Object [in-charge]()': /usr/local/include/osg/Referenced:173: undefined reference to=20 `osg::Referenced::getDeleteHandler()' Gear.o(.gnu.linkonce.t._ZN3osg6ObjectD1Ev+0xc2):/usr/local/include/osg/Refe= renced:174:=20 undefined reference to `osg::Referenced::getDeleteHandler()' Gear.o(.gnu.linkonce.t._ZN3osg6ObjectD1Ev+0xed): In function=20 `osg::Object::~Object [in-charge]()': /usr/include/c++/3.3.5/bits/stl_alloc.h:656: undefined reference to=20 `osg::Referenced::~Referenced [not-in-charge]()' Gear.o(.gnu.linkonce.t._ZN3osg12NodeCallbackD0Ev+0xa1): In function=20 `osg::NodeCallback::~NodeCallback [in-charge deleting]()': /usr/local/include/osg/Referenced:173: undefined reference to=20 `osg::Referenced::getDeleteHandler()' Gear.o(.gnu.linkonce.t._ZN3osg12NodeCallbackD0Ev+0xbf):/usr/local/include/o= sg/Referenced:174:=20 undefined reference to `osg::Referenced::getDeleteHandler()' Gear.o(.gnu.linkonce.t._ZN3osg12NodeCallbackD1Ev+0x91): In function=20 `osg::NodeCallback::~NodeCallback [in-charge]()': /usr/local/include/osg/Referenced:173: undefined reference to=20 `osg::Referenced::getDeleteHandler()' Gear.o(.gnu.linkonce.t._ZN3osg12NodeCallbackD1Ev+0xaf):/usr/local/include/o= sg/Referenced:174:=20 undefined reference to `osg::Referenced::getDeleteHandler()' Gear.o(.gnu.linkonce.t._ZNK3osg12NodeCallback5cloneERKNS_6CopyOpE+0x19): In= =20 function `osg::NodeCallback::clone(osg::CopyOp const&) const': /usr/local/include/osg/Object:53: undefined reference to=20 `osg::Referenced::Referenced[not-in-charge]()' Gear.o(.gnu.linkonce.t._ZNK3osg12NodeCallback9cloneTypeEv+0x18): In functio= n=20 `osg::NodeCallback::cloneType() const': /usr/local/include/osg/Object:53: undefined reference to=20 `osg::Referenced::Referenced[not-in-charge]()' Gear.o(.gnu.linkonce.t._ZNK3osg8StateSet8Callback5cloneERKNS_6CopyOpE+0x18)= :=20 In function `osg::StateSet::Callback::clone(osg::CopyOp const&) const': /usr/local/include/osg/Object:53: undefined reference to=20 `osg::Referenced::Referenced[not-in-charge]()' Gear.o(.gnu.linkonce.t._ZNK3osg8StateSet8Callback9cloneTypeEv+0x18): In=20 function `osg::StateSet::Callback::cloneType() const': /usr/local/include/osg/Object:53: undefined reference to=20 `osg::Referenced::Referenced[not-in-charge]()' Gear.o(.gnu.linkonce.t._ZNK3osg7Uniform8Callback5cloneERKNS_6CopyOpE+0x18):= In=20 function `osg::Uniform::Callback::clone(osg::CopyOp const&) const': /usr/local/include/osg/Object:53: undefined reference to=20 `osg::Referenced::Referenced[not-in-charge]()' Gear.o(.gnu.linkonce.t._ZNK3osg7Uniform8Callback9cloneTypeEv+0x18):/usr/loc= al/include/osg/Object:53:=20 more undefined references to `osg::Referenced::Referenced[not-in-charge]()'= =20 follow collect2: ld returned 1 exit status make[3]: *** [yasim] Error 1 |