CMake Error at CMake/Utils/MacroLogFeature.cmake:100 (MESSAGE):
-----------------------------------------------------------------------------
-- The following REQUIRED packages could NOT be located on your system.
-- Please install them before continuing this software installation.
-- If you are in Windows, try passing -DOGRE_DEPENDENCIES_DIR=<path to
dependencies>
-----------------------------------------------------------------------------
+ freetype: Portable font engine
-----------------------------------------------------------------------------
Call Stack (most recent call first):
CMake/Dependencies.cmake:234 (MACRO_DISPLAY_FEATURE_LOG)
CMakeLists.txt:194 (include)
Configuring incomplete, errors occurred!
I have Freetype already installed, under /usr/include/freetype2/
How can I get CMake to point to, and find, Freetype??
You can install cmake-gui (package is cmake-qt-qui in the newest distros) and use it to manually set the corresponding variables.
Nevertheless I never had a problem with freetype on ubuntu, did you install it from the regular repos ? (package should be libfreetype6-dev)
*EDIT:
The variables you need to set (in 1.9) are FREETYPE_FT2BUILD_INCLUDE_DIR, FREETYPE_INCLUDE_DIR, FREETYPE_LIBRARY_DBG and FREETYPE_LIBRARY_REL.
The first 2 should point to your include directory, in your case /usr/include/freetype2/
The last two should point to the library itself. In ubuntu (depending on your distribution/architecture) they should be in /usr/lib/libfreetype.so or /usr/lib/[i386-linux-gnu / x86_64-linux-gnu]/libfreetype.so
If you have the debug package installed, you should point the FREETYPE_LIBRARY_DBG to the debug version of the library.
That means that your libOgreMain (the core ogre library) has a declared symbol (a freetype function taken from the freetype headers) for which there is no actual implementation in any of the libraries the executable is linking against.
So, either you're linking to a wrong freetype library that doesn't have those symbols defined or the make script is not actually trying to link against the library (basically there is no -lfreetype flag).
So, you can check that the library you set in the cmake configuration has those symbols (by doing nm -D libfreetype.so | grep FT_New_Memory_Face), and if that is actually there then you can check that the make script is actually trying to link with the -lfreetype flag set (you can check this by doing 'make VERBOSE=1' to see the actual commands being run).
Well, you can always edit the link flags to explicitly add the freetype libs. With cmake-gui edit the link flags definition and add "-L[dir-where-libfreetype.so lives] -lfreetype". That should add the freetype library to everything you build.
Yeah the world is still waiting for GandalfMake where it just finds everything by magic regardless of what arbitrary changes your distro makes. Until then ...