我在 Ubuntu 12.04 上安装了 Ogre3D 1.8.1(源代码包),一切都很顺利(我设法在 Ogre 界面上运行了一些示例)。但是,我在编译需要 OpenCV、ArUco 和 Ogre 库的外部项目(那个)时遇到了问题。当我运行项目的 CMake 时,我收到以下信息:
CMake Error at CMakeLists.txt:46 (find_package):
By not providing "FindOGRE.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "OGRE", but
CMake did not find one.
Could not find a package configuration file provided by "OGRE" with any of
the following names:
OGREConfig.cmake
ogre-config.cmake
Add the installation prefix of "OGRE" to CMAKE_PREFIX_PATH or set
"OGRE_DIR" to a directory containing one of the above files. If "OGRE"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
我知道 FindOGRE.cmake 在哪里,它在 /usr/local/lib/OGRE/cmake 中,但我不知道如何让 CMake 查找该文件夹并解决此问题。