Hi Robert,

Am 22.11.2013 um 09:41 schrieb Stephan Maximilian Huber 
<[email protected]>:

> Fortunately there’s no EventHandler-class in osg.3-2 :-) I think you 
> introduced it with osg-3.3 and the new event-base-class.
> 
> I’ll try to checkout the 3.2-branch and do a test-compile today on 10.9 / 
> Xcode5. It compiles fine on older systems.

Unfortunately the bug pops up for GUIEventHandler :-( — here’s the complete 
compile/linker-error:

Ld /Users/stephan/Desktop/osg_tutorial/osg_build/lib/osgdb_serializers_osgga.so 
normal x86_64
    cd /Users/stephan/Desktop/osg_tutorial/osg
    setenv MACOSX_DEPLOYMENT_TARGET 10.9
    
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
 -arch x86_64 -bundle -isysroot 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
 -L/Users/stephan/Desktop/osg_tutorial/osg_build/lib 
-F/Users/stephan/Desktop/osg_tutorial/osg_build/lib -F/Applications -filelist 
/Users/stephan/Desktop/osg_tutorial/osg_build/src/osgWrappers/serializers/osgGA/OpenSceneGraph.build/Release/osgdb_serializers_osgga.build/Objects-normal/x86_64/osgdb_serializers_osgga.LinkFileList
 -mmacosx-version-min=10.9 -Wl,-search_paths_first 
-Wl,-headerpad_max_install_names 
/Users/stephan/Desktop/osg_tutorial/osg_build/lib/OpenThreads.framework/Versions/13/OpenThreads
 
/Users/stephan/Desktop/osg_tutorial/osg_build/lib/osg.framework/Versions/100/osg
 
/Users/stephan/Desktop/osg_tutorial/osg_build/lib/osgDB.framework/Versions/100/osgDB
 
/Users/stephan/Desktop/osg_tutorial/osg_build/lib/osgUtil.framework/Versions/100/osgUtil
 
/Users/stephan/Desktop/osg_tutorial/osg_build/lib/osgGA.framework/Versions/100/osgGA
 
/Users/stephan/Desktop/osg_tutorial/osg_build/lib/osgDB.framework/Versions/100/osgDB
 -framework Carbon /usr/lib/libz.dylib 
/Users/stephan/Desktop/osg_tutorial/osg_build/lib/osgUtil.framework/Versions/100/osgUtil
 
/Users/stephan/Desktop/osg_tutorial/osg_build/lib/osg.framework/Versions/100/osg
 
/Users/stephan/Desktop/osg_tutorial/osg_build/lib/OpenThreads.framework/Versions/13/OpenThreads
 /usr/lib/libm.dylib /usr/lib/libdl.dylib -framework OpenGL -stdlib=libstdc++ 
-Xlinker -dependency_info -Xlinker 
/Users/stephan/Desktop/osg_tutorial/osg_build/src/osgWrappers/serializers/osgGA/OpenSceneGraph.build/Release/osgdb_serializers_osgga.build/Objects-normal/x86_64/osgdb_serializers_osgga_dependency_info.dat
 -o /Users/stephan/Desktop/osg_tutorial/osg_build/lib/osgdb_serializers_osgga.so
Undefined symbols for architecture x86_64:
  "osgGA::GUIEventHandler::~GUIEventHandler()", referenced from:
      construction vtable for 
osgGA::GUIEventHandler-in-osgGA::KeySwitchMatrixManipulator in 
KeySwitchMatrixManipulator.o
  "osgGA::GUIEventHandler::~GUIEventHandler()", referenced from:
      construction vtable for 
osgGA::GUIEventHandler-in-osgGA::KeySwitchMatrixManipulator in 
KeySwitchMatrixManipulator.o
  "non-virtual thunk to osgGA::GUIEventHandler::~GUIEventHandler()", referenced 
from:
      construction vtable for 
osgGA::GUIEventHandler-in-osgGA::KeySwitchMatrixManipulator in 
KeySwitchMatrixManipulator.o
  "non-virtual thunk to osgGA::GUIEventHandler::~GUIEventHandler()", referenced 
from:
      construction vtable for 
osgGA::GUIEventHandler-in-osgGA::KeySwitchMatrixManipulator in 
KeySwitchMatrixManipulator.o
  "non-virtual thunk to osgGA::GUIEventHandler::~GUIEventHandler()", referenced 
from:
      construction vtable for 
osgGA::GUIEventHandler-in-osgGA::KeySwitchMatrixManipulator in 
KeySwitchMatrixManipulator.o
  "non-virtual thunk to osgGA::GUIEventHandler::~GUIEventHandler()", referenced 
from:
      construction vtable for 
osgGA::GUIEventHandler-in-osgGA::KeySwitchMatrixManipulator in 
KeySwitchMatrixManipulator.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)


I can fix the linker error w/o any code-changes if I change the optimize-flags 
from -O3 to -O0 for the osgdb_serializers_osgga-target. I’ll try to adapt the 
cmake-file.Will this change break ABI-compatibility?

cheers,

Stephan
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to