用CMake编译OGRE的时候出现这种情况,原因是从官网下过来的Dependencies文件没有编译,编译Dependencies\src目录下的.sln文件即可
\
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:208 (MACRO_DISPLAY_FEATURE_LOG)
CMakeLists.txt:175 (include)
记住要debug版本和release版本都生成,如果只生成debug版本,会报如下错误。
send_errorE:/Source Code/OGRE/OGRE/Dependencies/bin/release/OIS.dll did not exist, can’t install!
send_errorE:/Source Code/OGRE/OGRE/Dependencies/bin/release/cg.dll did not exist, can’t install!
send_errorE:/Source Code/OGRE/OGRE/Dependencies/bin/debug/libgles_cm.dll did not exist, can’t install!
send_errorE:/Source Code/OGRE/OGRE/Dependencies/bin/release/libgles_cm.dll did not exist, can’t install!
然后再次configure。
红色表示第一次生成,为了确认不会出错,再次点击configure。
确认无误后,点击generate即可。