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

Robert Osfield robert.osfield at gmail.com
Tue Mar 17 01:55:31 PDT 2009


Hi John,

When I've built under OSX before I haven't had problems, but I haven't
personally built and installed freetype so this may be factor.   The
freetype plugin uses:

   INCLUDE_DIRECTORIES(${FREETYPE_INCLUDE_DIRS} )

Which suggests the entry in the OpenSceneGraph/FindFreeType.cmake

IF(FREETYPE_INCLUDE_DIR_ft2build AND FREETYPE_INCLUDE_DIR_freetype2)
  SET(FREETYPE_INCLUDE_DIRS
"${FREETYPE_INCLUDE_DIR_ft2build};${FREETYPE_INCLUDE_DIR_freetype2}")
ENDIF(FREETYPE_INCLUDE_DIR_ft2build AND FREETYPE_INCLUDE_DIR_freetype2)

Isn't successful for some reason.  Check you CMakeCache.txt for the
FREETYPE_INCLUDE_DIRS var.

Which version of CMake are you using?  Perhaps it has its own
FindFreeType.cmake that is taking precidence over ours and is not setting
the FREETYPE_INCLUDE_DIRS.

Robert.

On Tue, Mar 17, 2009 at 1:19 AM, john casu <osgforum at tevs.eu> wrote:

> 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
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20090317/1eca9f0b/attachment-0003.htm>


More information about the osg-users mailing list