By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH error: using typedef-name ‘Ogre::Vector3’

错误1:

By not providing “FindOpenCV.cmake” in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by “OpenCV”, but
CMake did not find one.

Could not find a package configuration file provided by “OpenCV” with any
of the following names:

OpenCVConfig.cmake
opencv-config.cmake

方法

试过网上修改Cmakelist.txt文件里面的内容无效
后来直接重新对opencv包安装
cd build
cmake …
make -j8
sudo make install
问题就解决了

错误2

error: using typedef-name ‘Ogre::Vector3’

重新到github下载Ogre(版本不要最新的,我的ogre-1.11.2)
mkdir build && cd build
cmake …
make -j8
sudo make install
再跳回刚刚编译的终端重新编译即可

你可能感兴趣的:(By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH error: using typedef-name ‘Ogre::Vector3’)