OPENCV Linux安装

默认带图形化界面

sudo apt install gcc g++ build-essential cmake libgtk2.0-dev pkg-config ffmpeg libavcodec-dev libavformat-dev libswscale-dev gedit

把opencv解压到桌面

进入opencv文件夹

新建文件夹 build

进入build 右键在终端打开

cmake ..

make -j100

sudo make install

sudo gedit /etc/ld.so.conf.d/opencv.conf

添加/usr/local/lib

sudo gedit /etc/bash.bashrc

在尾行输入:PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig export PKG_CONFIG_PATH

你可能感兴趣的:(linux,opencv)