Hi Robert, I don't have an OSX box, nor the specific platform expertise to spot what the problem might be, but I have checked for the existence of the GraphicsWindowCocoa::setMultiTouchEnabled(..) method that the linker is struggling with and it exists in the OSG-3.2 branch and OSG-trunk. As the method exists then the error must be in the linkage or build option combination.
Any chance it's a architecture issue? One built for 32bit and another built for 64bit? Robert. On 18 November 2014 06:09, Robert Graf <[email protected]> wrote: > Howdy all, > > I tried building OpenSceneGraph 3.2.1 from source using CMake to generate > an Xcode project, and the following linker error occurred for the > osgmultitouch example. Has anyone seen this or know how to correct it? > > > Ld /Users/robert/Documents/inst/OpenSceneGraph-3.2.1/bin/osgmultitouchd > normal x86_64 > cd /Users/robert/Documents/src/OpenSceneGraph-3.2.1 > export MACOSX_DEPLOYMENT_TARGET=10.10 > > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ > -arch x86_64 -isysroot > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk > -L/Users/robert/Documents/inst/OpenSceneGraph-3.2.1/bin > -F/Users/robert/Documents/inst/OpenSceneGraph-3.2.1/bin > -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks > -filelist > /Users/robert/Documents/inst/OpenSceneGraph-3.2.1/examples/osgmultitouch/OpenSceneGraph.build/Debug/example_osgmultitouch.build/Objects-normal/x86_64/osgmultitouchd.LinkFileList > -mmacosx-version-min=10.10 -Wl,-search_paths_first > -Wl,-headerpad_max_install_names > /Users/robert/Documents/inst/OpenSceneGraph-3.2.1/lib/libOpenThreadsd.3.2.1.dylib > /Users/robert/Documents/inst/OpenSceneGraph-3.2.1/lib/libosgd.3.2.1.dylib > /Users/robert/Documents/inst/OpenSceneGraph-3.2.1/lib/libosgDBd.3.2.1.dylib > /Users/robert/Documents/ > inst/OpenSceneGraph-3.2.1/lib/libosgUtild.3.2.1.dylib > /Users/robert/Documents/inst/OpenSceneGraph-3.2.1/lib/libosgGAd.3.2.1.dylib > /Users/robert/Documents/inst/OpenSceneGraph-3.2.1/lib/libosgViewerd.3.2.1.dylib > /Users/robert/Documents/inst/OpenSceneGraph-3.2.1/lib/libosgTextd.3.2.1.dylib > /Users/robert/Documents/inst/OpenSceneGraph-3.2.1/lib/libosgGAd.3.2.1.dylib > /Users/robert/Documents/inst/OpenSceneGraph-3.2.1/lib/libosgDBd.3.2.1.dylib > -framework Carbon /usr/lib/libz.dylib > /Users/robert/Documents/inst/OpenSceneGraph-3.2.1/lib/libosgUtild.3.2.1.dylib > /Users/robert/Documents/inst/OpenSceneGraph-3.2.1/lib/libosgd.3.2.1.dylib > /Users/robert/Documents/inst/OpenSceneGraph-3.2.1/lib/libOpenThreadsd.3.2.1.dylib > /usr/lib/libm.dylib /usr/lib/libdl.dylib -framework Cocoa -framework AGL > -framework OpenGL -stdlib=libstdc++ -Xlinker -dependency_info -Xlinker > /Users/robert/Documents/inst/OpenSceneGraph-3.2.1/examples/osgmultitouch/OpenSceneGraph.build/Debug/example_osgmultitouch.build/Objec > ts-normal/x86_64/osgmultitouchd_dependency_info.dat -o > /Users/robert/Documents/inst/OpenSceneGraph-3.2.1/bin/osgmultitouchd > > Undefined symbols for architecture x86_64: > "osgViewer::GraphicsWindowCocoa::setMultiTouchEnabled(bool)", referenced > from: > _main in osgmultitouch.o > "typeinfo for osgViewer::GraphicsWindowCocoa", referenced from: > _main in osgmultitouch.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'm running with the following configuration: > - MacBook Pro (Retina, 15-inch, Early 2013) > - OSX Yosemite 10.10.1 > - CMake 3.0.2 > - Xcode Version 6.1 (6A1052d) > > Thanks a bunch! > -Robert > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=61659#61659 > > > > > > _______________________________________________ > 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

