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
再跳回刚刚编译的终端重新编译即可

发布了10 篇原创文章 · 获赞 2 · 访问量 2386

猜你喜欢

转载自blog.csdn.net/weixin_44023934/article/details/100604967
今日推荐