安装/卸载 OpenCV

编译ffmpeg


 。/configure  --prefix=/opt/ffmpeg --disable-yasm --enable-shared --enable-pic --enable-vaapi --enable-gpl --enable-libx264 --extra-cflags=-I/opt/x264/include --extra-ldflags=-L/opt/x264/lib

make

make install

安装OpenCV

cmake -D CMAKE_BUILD_TYPE=release -D CMAKE_INSTALL_PREFIX=/home/ppt/opencv/opencv-3.4.1 -D WITH_CUDA=ON -D WITH_NVCUVID=ON ..


卸载OpenCV:

进入安装目录下

make uninstall

cd ..sudo rm -r build 

sudo rm -r /usr/local/include/opencv2 /usr/local/include/opencv /usr/include/opencv /usr/include/opencv2 /usr/local/share/opencv /usr/local/share/OpenCV /usr/share/opencv /usr/share/OpenCV /usr/local/bin/opencv* /usr/local/lib/libopencv*

你可能感兴趣的:(安装/卸载 OpenCV)