我需要安装自动工具。当我在 Internet 上搜索时,有多种方法可以使用诸如 之类的命令./configure。
请指导我如何安装autoconf,autotools和我的系统上相关的包。分步指南将非常有帮助。
我在本网站上按照https://help.ubuntu.com/community/OpenCV 的规定制作了 ~/.compile_opencv.sh ,然后我制作opencvtest.cpp了包含以下内容的文件。图像路径是有效路径。
#include <opencv2/highgui/highgui.hpp>
using namespace cv;
int main() {
Mat img = imread("/home/AbKDs/Desktop/friends.jpg",CV_LOAD_IMAGE_COLOR);
imshow("opencvtest",img);
waitKey(0);
return 0;
}
Run Code Online (Sandbox Code Playgroud)
我创建了别名 opencv="~/.compile_opencv.sh"。但是当我运行它时显示以下错误。
bash: /home/AbKDs/.compile_opencv.sh: Permission denied
Run Code Online (Sandbox Code Playgroud)
相反,我尝试了整个命令,但即便如此,它仍然显示了致命错误。
opencvtest.cpp:1:39: fatal error: opencv2/highgui/highgui.hpp: No such file or directory
#include <opencv2/highgui/highgui.hpp>
^
compilation terminated.
Run Code Online (Sandbox Code Playgroud)
请帮忙 。提前致谢