我已经安装了OGRE的静态版本。我将CMakeLists.txt修改为:
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/modules
/usr/lib/OGRE/cmake/lib/OGRE/cmake)
使用OGRE编译应用程序时收到以下消息。
$ cmake ..
-- Boost version: 1.54.0
-- Found the following Boost libraries:
-- system
-- Looking for OGRE...
-- checking for module 'OGRE'
-- package 'OGRE' not found
-- Could not locate OGRE
CMake Error at /usr/lib/OGRE/cmake/lib/OGRE/cmake/FindPkgMacros.cmake:117 (message):
Required library OGRE not found! Install the library (including dev
packages) and try again. If the library is already installed, set the
missing variables manually in cmake.
Call Stack (most recent call first):
/usr/lib/OGRE/cmake/lib/OGRE/cmake/FindOGRE.cmake:215 (findpkg_finish)
source/CMakeLists.txt:32 (FIND_PACKAGE)
-- Configuring incomplete, errors occurred!
任何人都可以帮忙吗?