Re: [osg-users] [build] ld: symbol(s) not found for architecture x86_64
Hi Michael, Quoting Michael Zurek michael.zu...@gmail.com: I downloaded the stable release 3.2.0 which I am able to build (without libc++) but whenever I compile an application I'm getting ld: symbol(s) not found for architecture x86_64. I don't use xcode though. I'm using clang++ from Apple and libc++ that comes with the developer tools but I'm using Code::Blocks for my programming. I have compiled OSG with the dependencies package that can be downloaded from the website. Somewhere on the forum I found a thread talking about this error and libc++. So I checked out the svn last night ... michaels-mbp:build michael$ make Scanning dependencies of target OpenThreads [ 0%] Building CXX object src/OpenThreads/pthreads/CMakeFiles/OpenThreads.dir/PThread.cpp.o g++-4.8: error: unrecognized command line option '-stdlib=libstdc++' How did you configure cmake? From the output it looks like it's using g++-4.8 but with clang options. Maybe you could explain your setup again, because I'm slightly confused: at one point you're saying that you *ARE* able to compile OSG (without libc++, with what compiler), but you're getting errors linking an application (which C++ lib, which compiler?); then you're saying you're only using clang and libc++? Please rephrase ;-) Cheers, /ulrich pgpADuZYtakmj.pgp Description: PGP Digital Signature ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] [build] ld: symbol(s) not found for architecture x86_64
Hi, I am completely new to OpenSceneGraph but the project looks great and I'd like to give it a try. However, I'm having quite some problems building it. I'm running OSX 10.9. I downloaded the stable release 3.2.0 which I am able to build (without libc++) but whenever I compile an application I'm getting ld: symbol(s) not found for architecture x86_64. I don't use xcode though. I'm using clang++ from Apple and libc++ that comes with the developer tools but I'm using Code::Blocks for my programming. I have compiled OSG with the dependencies package that can be downloaded from the website. Somewhere on the forum I found a thread talking about this error and libc++. So I checked out the svn last night which I'm now trying to build but I keep getting: ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [lib/libosgDB.3.3.1.dylib] Error 1 make[1]: *** [src/osgDB/CMakeFiles/osgDB.dir/all] Error 2 make: *** [all] Error 2 Here is the terminal output (I use cmake to create a unix makefile): Code: michaels-mbp:~ michael$ cd Downloads/OSGsub/OpenSceneGraph/build/ michaels-mbp:build michael$ make Scanning dependencies of target OpenThreads [ 0%] Building CXX object src/OpenThreads/pthreads/CMakeFiles/OpenThreads.dir/PThread.cpp.o g++-4.8: error: unrecognized command line option '-stdlib=libstdc++' make[2]: *** [src/OpenThreads/pthreads/CMakeFiles/OpenThreads.dir/PThread.cpp.o] Error 1 make[1]: *** [src/OpenThreads/pthreads/CMakeFiles/OpenThreads.dir/all] Error 2 make: *** [all] Error 2 michaels-mbp:build michael$ make [ 0%] Building CXX object src/OpenThreads/pthreads/CMakeFiles/OpenThreads.dir/PThread.cpp.o [ 0%] Building CXX object src/OpenThreads/pthreads/CMakeFiles/OpenThreads.dir/PThreadBarrier.cpp.o [ 0%] Building CXX object src/OpenThreads/pthreads/CMakeFiles/OpenThreads.dir/PThreadCondition.cpp.o [ 0%] Building CXX object src/OpenThreads/pthreads/CMakeFiles/OpenThreads.dir/PThreadMutex.cpp.o [ 0%] Building CXX object src/OpenThreads/pthreads/CMakeFiles/OpenThreads.dir/__/common/Version.cpp.o [ 0%] Building CXX object src/OpenThreads/pthreads/CMakeFiles/OpenThreads.dir/__/common/Atomic.cpp.o Linking CXX shared library ../../../lib/libOpenThreads.dylib [ 0%] Built target OpenThreads Scanning dependencies of target osg [ 0%] Building CXX object src/osg/CMakeFiles/osg.dir/AlphaFunc.cpp.o [ 0%] Building CXX object src/osg/CMakeFiles/osg.dir/AnimationPath.cpp.o [ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/ApplicationUsage.cpp.o [ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/ArgumentParser.cpp.o [ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/Array.cpp.o [ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/ArrayDispatchers.cpp.o [ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/AudioStream.cpp.o [ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/AutoTransform.cpp.o [ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/Billboard.cpp.o [ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/BlendColor.cpp.o [ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/BlendEquation.cpp.o [ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/BlendFunc.cpp.o [ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/BufferIndexBinding.cpp.o [ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/BufferObject.cpp.o [ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/Camera.cpp.o [ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/CameraView.cpp.o [ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/ClampColor.cpp.o [ 2%] Building CXX object src/osg/CMakeFiles/osg.dir/ClearNode.cpp.o [ 2%] Building CXX object src/osg/CMakeFiles/osg.dir/ClipNode.cpp.o [ 2%] Building CXX object src/osg/CMakeFiles/osg.dir/ClipPlane.cpp.o [ 2%] Building CXX object src/osg/CMakeFiles/osg.dir/ClusterCullingCallback.cpp.o [ 2%] Building CXX object src/osg/CMakeFiles/osg.dir/CollectOccludersVisitor.cpp.o [ 2%] Building CXX object src/osg/CMakeFiles/osg.dir/ColorMask.cpp.o [ 2%] Building CXX object src/osg/CMakeFiles/osg.dir/ColorMatrix.cpp.o [ 2%] Building CXX object src/osg/CMakeFiles/osg.dir/ComputeBoundsVisitor.cpp.o [ 2%] Building CXX object src/osg/CMakeFiles/osg.dir/ConvexPlanarOccluder.cpp.o [ 2%] Building CXX object src/osg/CMakeFiles/osg.dir/ConvexPlanarPolygon.cpp.o [ 2%] Building CXX object src/osg/CMakeFiles/osg.dir/CoordinateSystemNode.cpp.o [ 2%] Building CXX object src/osg/CMakeFiles/osg.dir/CopyOp.cpp.o [ 2%] Building CXX object src/osg/CMakeFiles/osg.dir/CullFace.cpp.o [ 2%] Building CXX object src/osg/CMakeFiles/osg.dir/CullingSet.cpp.o [ 2%] Building CXX object src/osg/CMakeFiles/osg.dir/CullSettings.cpp.o [ 2%] Building CXX object src/osg/CMakeFiles/osg.dir/CullStack.cpp.o [ 3%] Building CXX object src/osg/CMakeFiles/osg.dir/DeleteHandler.cpp.o [ 3%] Building CXX object src/osg/CMakeFiles/osg.dir/Depth.cpp.o [ 3%] Building CXX object