On Dec 13, 2007 9:13 AM, Gerrick Bivins <[EMAIL PROTECTED]> wrote: > What is the the suggested method to fix the build(ie avoid linking errors) > on OSX 10.5 with CMake? > Our app doesn't use frameworks etc so I run into the "freetype" linking > error during compile. I'm not all that familiar > with CMake so other than setting the couple of freetype path variables in > the ccmake gui, I don't know > where to tweek the build so that it picks up the correct libs. As a side > note, I upgrade from Tiger to Leopard > rather than a new install. I'm running on a fairly new mbp (received in > oct). > > Here is the exact error: > [ 86%] Built target osgdb_qt > Linking CXX shared module ../../../lib/osgPlugins-2.2.0/osgdb_freetype.so > ld: cycle in dylib re-exports with > /Developer/SDKs/MacOSX10.5.sdk/usr/X11/lib/libGL.dylib for architecture i386 > collect2: ld returned 1 exit status > ld: cycle in dylib re-exports with > /Developer/SDKs/MacOSX10.5.sdk/usr/X11/lib/libGL.dylib for architecture ppc > collect2: ld returned 1 exit status > lipo: can't open input file: > /var/folders/m2/m2u1oBxxGAqUxi2h7sbDK++++TI/-Tmp-//ccWn7pVI.out (No such > file or directory) > make[2]: *** [lib/osgPlugins-2.2.0/osgdb_freetype.so] Error 1 > make[1]: *** [src/osgPlugins/freetype/CMakeFiles/osgdb_freetype.dir/all] > Error 2 > make: *** [all] Error 2 > [EMAIL PROTECTED] ~/devEnv/research/APIs/OpenSceneGraph_svn$
Use the MacPorts freetype and point CMake to its location(in /opt/local). -Daniel _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

