Hi Stefan, Build under Linux should be pretty well identical to the OSX/Makefile build. Does the osgstaticviewer example build OK?
FYI, I use Kubuntu 9.04. Robert. On Fri, Jun 19, 2009 at 11:23 PM, stefan nortd<ste...@nortd.com> wrote: > Hi, > > Now I am stuck on linux (ubuntu 9.04). I was able to build OSG as static libs > without a hick. When I try to run the my app I get linker problems. If I > switch in the dynamic precompiled binaries from the wiki the built goes fine. > I am afraid I might miss something obvious that xcode does on its own. Is > there anything I need to do differently when linking to static libs as > opposed dynamic libs? I guess I need to figure out somehow if my static libs > are punk or if I am linking them in wrong. > > Here is the error I get: > > ============== > ../../../addons/ofxOsg/libs/osg/lib/linux/libosg.a(BufferObject.o)||In > function `__static_initialization_and_destruction_0(int, int)':| > BufferObject.cpp|| undefined reference to `OpenThreads::Mutex::Mutex()'| > BufferObject.cpp|| undefined reference to `OpenThreads::Mutex::~Mutex()'| > ../../../addons/ofxOsg/libs/osg/lib/linux/libosg.a(Camera.o)||In function > `osg::Camera::~Camera()':| > Camera.cpp|| undefined reference to `OpenThreads::Mutex::~Mutex()'| > Camera.cpp|| undefined reference to `OpenThreads::Mutex::~Mutex()'| > ../../../addons/ofxOsg/libs/osg/lib/linux/libosg.a(Camera.o)||In function > `osg::Camera::~Camera()':| > Camera.cpp|| undefined reference to `OpenThreads::Mutex::~Mutex()'| > Camera.cpp|| undefined reference to `OpenThreads::Mutex::~Mutex()'| > .... > (keeps on going) > > ================== > > Any ideas? > > ------------------------ > stefan hechenberger > > http://linear.nortd.com > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=14263#14263 > > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org