Hi JS,
On Mon, Jan 18, 2010 at 5:21 PM, Jean-Sébastien Guay
<jean-sebastien.g...@cm-> You'll need to add /freetype2 to the end of
the INCLUDE_DIRECTORIES line:
>
> INCLUDE_DIRECTORIES(${FREETYPE_INCLUDE_DIR_ft2build}
> ${FREETYPE_INCLUDE_DIR_freetype2}/freetype
> ${FREETYPE_INCLUDE_DIR_freetype2}/freetype2)
>
> That made it work for me, since ${FREETYPE_INCLUDE_DIR_freetype2} is
> /mingw/include for me. I guess the FindFreetype.cmake script returns the
> base directory... Also, for the first case (/freetype) did you really want
> to use ${FREETYPE_INCLUDE_DIR_freetype2} or did you mean
> ${FREETYPE_INCLUDE_DIR_freetype} instead, which would give:
>
> INCLUDE_DIRECTORIES(${FREETYPE_INCLUDE_DIR_ft2build}
> ${FREETYPE_INCLUDE_DIR_freetype}/freetype
> ${FREETYPE_INCLUDE_DIR_freetype2}/freetype2)
Cmake doesn't define FREETYPE_INCLUDE_DIR_freetype, it only defines
FREETYPE_INCLUDE_DIR_freetype2.
I can't work out how the follow like from CMake's FindFreetype.cmake
is working under Mingw as it's looking for freetype/config/ftheader.h,
and you only have a freetype/config/ftheader.h... the Cmake file for
2.6.2 is:
FIND_PATH(FREETYPE_INCLUDE_DIR_freetype2 freetype/config/ftheader.h
HINTS
$ENV{FREETYPE_DIR}/include/freetype2
PATHS
/usr/local/X11R6/include
/usr/local/X11/include
/usr/X11/include
/sw/include
/opt/local/include
/usr/freeware/include
PATH_SUFFIXES freetype2
)
Could you check your Cmake Modules/FindFreeType.cmake to see if it has
something different. What version of the CMake are you using?
Could you post a src/osgPlugins/freetype/CMakeLists.txt file that you
can get working and I'll then review this to see if it might work on
other platforms safely.
Cheers,
Robert.
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org