当前位置: 技术问答>linux和unix
安装软件cmake找不到opencv路径求助
来源: 互联网 发布时间:2017-05-08
本文导语: zzy@zzy:~/ATOM1/ATOM1/tomo_3.6/build$ cmake .. -- building main -- -- building mrcimg CMake Warning at /home/zzy/opencv-2.4.6.1/cmake/OpenCVConfig.cmake:153 (message): Found OpenCV 2.4.3 Windows Super Pack but it has not binaries compatible with your c...
zzy@zzy:~/ATOM1/ATOM1/tomo_3.6/build$ cmake ..
-- building main
--
-- building mrcimg
CMake Warning at /home/zzy/opencv-2.4.6.1/cmake/OpenCVConfig.cmake:153 (message):
Found OpenCV 2.4.3 Windows Super Pack but it has not binaries compatible
with your configuration.
You should manually point CMake variable OpenCV_DIR to your build of OpenCV library.
Call Stack (most recent call first):
src/mrcimg/CMakeLists.txt:7 (find_package)
CMake Error at src/mrcimg/CMakeLists.txt:7 (find_package):
Found package configuration file:
/home/zzy/opencv-2.4.6.1/cmake/OpenCVConfig.cmake
but it set OpenCV_FOUND to FALSE so package "OpenCV" is considered to be
NOT FOUND.
-- Configuring incomplete, errors occurred!
以上为终端中的报错信息,系统为ubuntu,opencv已安装测试过.
-- building main
--
-- building mrcimg
CMake Warning at /home/zzy/opencv-2.4.6.1/cmake/OpenCVConfig.cmake:153 (message):
Found OpenCV 2.4.3 Windows Super Pack but it has not binaries compatible
with your configuration.
You should manually point CMake variable OpenCV_DIR to your build of OpenCV library.
Call Stack (most recent call first):
src/mrcimg/CMakeLists.txt:7 (find_package)
CMake Error at src/mrcimg/CMakeLists.txt:7 (find_package):
Found package configuration file:
/home/zzy/opencv-2.4.6.1/cmake/OpenCVConfig.cmake
but it set OpenCV_FOUND to FALSE so package "OpenCV" is considered to be
NOT FOUND.
-- Configuring incomplete, errors occurred!
以上为终端中的报错信息,系统为ubuntu,opencv已安装测试过.
|
仔细看了一下发现你的问题和另一个post的问题很象。
在你的opencv安装目录下(/usr/local/opencv-2.4.6/release)查找OpenCVConfig.cmake,然后用文件所在的那个路径
在你的opencv安装目录下(/usr/local/opencv-2.4.6/release)查找OpenCVConfig.cmake,然后用文件所在的那个路径
|
我用cmake-gui..命令,在图形界面里面把OpenCV_DIR指向改成将opencv编译到的那个目录,例如我的是/usr/local/opencv-2.4.6/release,然后generate生成就好了。
|
察看一下cmake的版本,低版本认不出很多新版本中的宏. 可以考虑升级到高版本
|
这个说的对,真正的path在这边。
刚刚做成,希望LZ早日快快解决