2014-09-06 4 views
3

Je construis la source OGRE en utilisant cmake ../../ogre_src_v1-8-1 dans mon build répertoire. J'ai examiné de nombreuses erreurs similaires, mais rien n'a fonctionné pour moi.Cmake erreur lors de la construction OGRE

La sortie de la commande cmake mentionnée ci-dessus donne suite à la sortie:

-- Configuring OGRE 1.8.1 
-- Detected g++ 4.8 

-- Enabling GCC visibility flags 
-- Search path: /home/kamal/Documents/ogre_src_v1-8-1/build/Dependencies;/home/kamal/Documents/ogre_src_v1-8-1/Dependencies;/home/kamal/Documents/ogre_src_v1-8-1/build/../Dependencies;/home/kamal/Documents/ogre_src_v1-8-1/../Dependencies 
-- Looking for ZLIB... 
-- Found ZLIB: optimized;/usr/lib/x86_64-linux-gnu/libz.so;debug;/usr/lib/x86_64-linux-gnu/libz.so 
-- Looking for ZZip... 
-- Found ZZip: optimized;/usr/lib/x86_64-linux-gnu/libzzip.so;debug;/usr/lib/x86_64-linux-gnu/libzzip.so 
-- Looking for FreeImage... 
-- checking for module 'freeimage' 
-- package 'freeimage' not found 
-- Found FreeImage: optimized;/usr/lib/libfreeimage.so;debug;/usr/lib/libfreeimage.so 
-- Looking for FREETYPE... 
-- CMAKE_PREFIX_PATH: /home/kamal/Documents/ogre_src_v1-8-1/build/Dependencies;/home/kamal/Documents/ogre_src_v1-8-1/Dependencies;/home/kamal/Documents/ogre_src_v1-8-1/build/../Dependencies;/home/kamal/Documents/ogre_src_v1-8-1/../Dependencies;/usr/local;/usr/lib/x86_64-linux-gnu 
-- CMAKE_PREFIX_PATH: /home/kamal/Documents/ogre_src_v1-8-1/build/Dependencies;/home/kamal/Documents/ogre_src_v1-8-1/Dependencies;/home/kamal/Documents/ogre_src_v1-8-1/build/../Dependencies;/home/kamal/Documents/ogre_src_v1-8-1/../Dependencies;/usr/local;/usr/lib/x86_64-linux-gnu 
-- Could not locate FREETYPE 
-- Looking for Cg... 
-- checking for module 'Cg' 
-- package 'Cg' not found 
-- Found Cg: optimized;/usr/lib/x86_64-linux-gnu/libCg.so;debug;/usr/lib/x86_64-linux-gnu/libCg.so 
-- Looking for POCO... 
-- checking for module 'POCO' 
-- package 'POCO' not found 
-- Could not locate POCO 
-- Looking for TBB... 
-- Found TBB: optimized;/usr/lib/libtbb.so;debug;/usr/lib/libtbb.so 
-- Looking for TBB_MALLOC... 
-- Found TBB_MALLOC: optimized;/usr/lib/libtbbmalloc.so;debug;/usr/lib/libtbbmalloc.so 
-- Looking for TBB_MALLOC_PROXY... 
-- Found TBB_MALLOC_PROXY: optimized;/usr/lib/libtbbmalloc_proxy.so;debug;/usr/lib/libtbbmalloc_proxy.so 
-- Looking for GLSL_Optimizer... 
-- checking for module 'GLSL_Optimizer' 
-- package 'GLSL_Optimizer' not found 
-- Could not locate GLSL_Optimizer 
-- Looking for HLSL2GLSL... 
-- checking for module 'HLSL2GLSL' 
-- package 'HLSL2GLSL' not found 
-- Could not locate HLSL2GLSL 
-- Looking for OIS... 
-- Found OIS: optimized;/usr/lib/x86_64-linux-gnu/libOIS.so;debug;/usr/lib/x86_64-linux-gnu/libOIS.so 
-- Looking for Softimage... 
-- Could not locate Softimage 
-- Looking for CppUnit... 
-- checking for module 'cppunit' 
-- package 'cppunit' not found 
-- Could not locate CppUnit 
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 <http://www.freetype.org> 

----------------------------------------------------------------------------- 
Call Stack (most recent call first): 
CMake/Dependencies.cmake:234 (MACRO_DISPLAY_FEATURE_LOG) 
CMakeLists.txt:194 (include) 

-- Configuring incomplete, errors occurred! 

Comment résoudre ce problème? Toute aide sera appréciée!

Répondre

4

Il manque la bibliothèque freetype requise pour construire OGRE. Assurez-vous que la lib elle-même et le package de développement sont installés sur votre système. Cela pourrait aider, la page OGRE wiki avec des instructions d'installation pour les prérequis pour les différentes distributions Linux Install OGRE Prerequisite

+2

J'ai à la fois 'libfreetype6' et' libfreetype6-dev' installé sur mon système. –

+0

OK, mais CMake ne le trouve pas. Vous pouvez définir des variables pour les libs et inclure le répertoire manuellement, je trouve que faire cela via 'cmake-gui' est plus rapide surtout si vous tripotez. – lazycoder

+0

Merci. L'utilisation de 'cmake-gui' a aidé à mieux le comprendre. –

Questions connexes