Build 创建食人魔时发生错误

Build 创建食人魔时发生错误,build,cmake,ogre,Build,Cmake,Ogre,我正在使用我的build目录中的cmake.././OGRE\u src\u v1-8-1构建OGRE源代码。我曾研究过许多类似的错误,但都没有结果 上述cmake命令的输出给出以下输出: -- 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;/h

我正在使用我的
build
目录中的
cmake.././OGRE\u src\u v1-8-1
构建OGRE源代码。我曾研究过许多类似的错误,但都没有结果

上述cmake命令的输出给出以下输出:

-- 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!
——配置OGRE 1.8.1
--检测到g++4.8
--启用GCC可见性标志
--搜索路径:/home/kamal/Documents/ogre_src_v1-8-1/build/Dependencies/home/kamal/Documents/ogre_src_v1-8-1/依赖项/home/kamal/Documents/ogre\u src\u v1-8-1/build//依赖项/home/kamal/Documents/ogre\u src\u v1-8-1//依赖项
--寻找ZLIB。。。
--发现ZLIB:优化/usr/lib/x86_64-linux-gnu/libz.so;调试/usr/lib/x86_64-linux-gnu/libz.so
--寻找ZZip。。。
--发现ZZip:优化/usr/lib/x86_64-linux-gnu/libzzip.so;调试/usr/lib/x86_64-linux-gnu/libzzip.so
--正在查找FreeImage。。。
--正在检查模块“freeimage”
--找不到程序包“freeimage”
--发现自由形象:优化/usr/lib/libfreeimage.so;调试/usr/lib/libfreeimage.so
--正在寻找FREETYPE。。。
--CMAKE_PREFIX_PATH:/home/kamal/Documents/ogre_src_v1-8-1/build/Dependencies/home/kamal/Documents/ogre_src_v1-8-1/依赖项/home/kamal/Documents/ogre\u src\u v1-8-1/build//依赖项/home/kamal/Documents/ogre_src_v1-8-1//依赖项/usr/本地/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/依赖项/home/kamal/Documents/ogre\u src\u v1-8-1/build//依赖项/home/kamal/Documents/ogre_src_v1-8-1//依赖项/usr/本地/usr/lib/x86_64-linux-gnu
--找不到FREETYPE
--寻找Cg。。。
--检查模块“Cg”
--找不到包“Cg”
--发现Cg:优化/usr/lib/x86_64-linux-gnu/libCg.so;调试/usr/lib/x86_64-linux-gnu/libCg.so
--寻找POCO。。。
--检查模块“POCO”
--找不到包“POCO”
--找不到POCO
--寻找TBB。。。
--发现TBB:优化/usr/lib/libtbb.so;调试/usr/lib/libtbb.so
--寻找TBB_MALLOC。。。
--发现TBB_MALLOC:优化/usr/lib/libtbbmalloc.so;调试/usr/lib/libtbbmalloc.so
--正在查找TBB_MALLOC_代理。。。
--找到TBB_MALLOC_代理:已优化/usr/lib/libtbbmalloc_proxy.so;调试/usr/lib/libtbbmalloc_proxy.so
--正在寻找GLSL_优化器。。。
--正在检查模块“GLSL_优化器”
--找不到包“GLSL_优化器”
--找不到GLSL_优化器
--正在查找HLSL2GLSL。。。
--正在检查模块“HLSL2GLSL”
--找不到程序包“HLSL2GLSL”
--找不到HLSL2GLSL
--寻找OIS。。。
--发现OIS:优化/usr/lib/x86_64-linux-gnu/libOIS.so;调试/usr/lib/x86_64-linux-gnu/libOIS.so
--正在查找Softimage。。。
--找不到Softimage
--正在寻找CPP单元。。。
--正在检查模块“CPPFUnit”
--找不到包“cppunit”
--找不到CPP单元
CMake/Utils/MacroLogFeature处的CMake错误。CMake:100(消息):
-----------------------------------------------------------------------------
--在您的系统上找不到以下必需的软件包。
--请在继续此软件安装之前安装它们。
--如果您在Windows中,请尝试传递-DOGRE\u DEPENDENCIES\u DIR=
-----------------------------------------------------------------------------
+freetype:便携式字体引擎
-----------------------------------------------------------------------------
调用堆栈(最新调用优先):
CMake/Dependencies.CMake:234(宏\显示\功能\日志)
CMakeLists.txt:194(包括)
--配置不完整,出现错误!

如何解决这个问题?任何帮助都将不胜感激

它缺少构建食人魔所需的
freetype
库。确保系统上安装了库本身和开发包。
这可能会有所帮助,OGRE wiki页面提供了各种linux发行版的先决条件安装说明

我的系统上同时安装了
libfreetype6
libfreetype6 dev
。很好,但CMake没有找到它。您可以手动设置libs的变量和include目录,我发现通过
cmakegui
这样做速度更快,尤其是在您闲逛的时候。谢谢。使用
cmakegui
有助于更具体地理解它。