cmake安装遇到问题总结

推荐cmake安装文章 点击打开链接 以及opencv例子执行。

qmake

1
2
qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such
file or directory

解决:

1
sudo apt-get install qt-sdk  (470M,so heavy)

but some people use:

1
sudo apt-get install qt4-qmake

don’t konw if is ok.you can try

numpy.distutils

1
ImportError: No module named numpy.distutils

解决:

1
sudo apt-get install python-numpy

没有权限

1
2
3
CMake Error at cmake_install.cmake:36 (FILE):  
file INSTALL cannot set permissions on
"/usr/local/include/opencv2/opencv_modules.hpp"

原因:没有权限
解决:

1
sudo make install

文章作者:Lily

原始链接:/2018/04/08/cmake%E5%AE%89%E8%A3%85%E9%81%87%E5%88%B0%E9%97%AE%E9%A2%98%E6%80%BB%E7%BB%93/

版权说明:转载请保留原文链接及作者。