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 <osgfo...@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@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to