[osg-users] [build] osgdb_freetype build problem on Mac OS/X 10.5.6

john casu osgforum at tevs.eu
Mon Mar 16 18:19:19 PDT 2009


I'm trying to build the latest svn version of OSG 2.8.0 on OS/X, and I'm having a problem when building osgdb_freetype, specifically the header file ft2build.h cannot be located:
Scanning dependencies of target osgdb_freetype
[ 98%] Building CXX object src/osgPlugins/freetype/CMakeFiles/osgdb_freetype.dir/FreeTypeFont.cpp.o
In file included from /Users/casuj/OpenSceneGraph/OpenSceneGraph-2.8.0-svn/src/osgPlugins/freetype/FreeTypeFont.cpp:14:
/Users/casuj/OpenSceneGraph/OpenSceneGraph-2.8.0-svn/src/osgPlugins/freetype/FreeTypeFont.h:19:22: error: ft2build.h: No such file or directory
/Users/casuj/OpenSceneGraph/OpenSceneGraph-2.8.0-svn/src/osgPlugins/freetype/FreeTypeFont.h:20:10: error: #include expects "FILENAME" or <FILENAME>

However, CMakeCache.txt shows that this file has been located:
enterprise:OpenSceneGraph-2.8.0-svn casuj$ fgrep FREETYPE CMakeCache.txt
CMakeCache.txt:FREETYPE_INCLUDE_DIR_freetype2:PATH=/usr/local/include/freetype2
CMakeCache.txt:FREETYPE_INCLUDE_DIR_ft2build:PATH=/usr/local/include
CMakeCache.txt:FREETYPE_LIBRARY:FILEPATH=/usr/local/lib/libfreetype.dylib

and the file itself does in fact exist:
enterprise:OpenSceneGraph-2.8.0-svn casuj$ ls -l /usr/local/include/ft2build.h 
-rw-r--r--  1 root  admin  3890 Mar  5  2007 /usr/local/include/ft2build.h

Can anyone shed light on how to workaround this ?

Thanks,

-john c.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=8569#8569








More information about the osg-users mailing list