Hi, try a more recent version from trunk or the 3.2-branch, a fix for this issue was added last week. It seems that clang/llvm does some too optimistic optimizations. I could fix the bug by adding a explicit destructor (this got committed to trunk) or by reducing the optimization-setting for the serializer (this got committed to the 3.2-branch as it does not break ABI-compatibility)
Note that the github-mirror is currently not in sync with the subversion repository so try svn instead. cheers, Stephan Am 25.11.2013 um 17:47 schrieb Jean-Claude Monnin <[email protected]>: > Hi, > > I had exactly the same issue than Jan Klimke when trying to compile the > latest osg with Xcode 5, 64-bit dylib build (not frameworks) with libc++ as > standard library. > Could anyone successfully build a recent osg with Xcode 5? > > The problem is that the linker can't find the destructor of GUIEventHandler > when building the serializers: > Undefined symbols for architecture x86_64: > "osgGA::GUIEventHandler::~GUIEventHandler()", referenced from: > construction vtable for > osgGA::GUIEventHandler-in-osgGA::KeySwitchMatrixManipulator in > KeySwitchMatrixManipulator.cpp.o > .... > > I found following workarounds, but none of them is good: > 1) Remove the file > "src/osgWrappers/serializers/osgGA/KeySwitchMatrixManipulator.cpp" > 2) Define an empty virtual destructor in GUIEventHandler (eg. "virtual > ~GUIEventHandler() {}). > > Looks like a linker issue. KeySwitchMatrixManipulator is used at other places > sucessfully, it's just in the serializers that the issue shows up. > > Any hints welcome. > > Thanks > Jean-Claude > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

