opencv编译步骤
作者:
菜菜子MJ | 来源:发表于
2020-05-18 01:35 被阅读0次mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE:BOOL=RELEASE -D ENABLE_CXX11:BOOL=ON -D BUILD_JASPER:BOOL=ON -D BUILD_JPEG:BOOL=ON -D BUILD_OPENEXR:BOOL=OFF -D BUILD_PNG:BOOL=ON -D BUILD_TIFF:BOOL=ON -D BUILD_SHARED_LIBS:BOOL=OFF -D BUILD_ZLIB:BOOL=ON -D BUILD_opencv_python:BOOL=OFF -D WITH_1395:BOOL=OFF -D WITH_FFMPEG:BOOL=ON -D WITH_EIGEN:BOOL=ON -D WITH_GSTREAMER:BOOL=OFF -D WITH_GTK:BOOL=OFF -D WITH_UNICAP:BOOL=OFF -D WITH_V4L:BOOL=OFF -D WITH_XIMEA:BOOL=OFF -D WITH_XINE:BOOL=OFF -D BUILD_TBB:BOOL=OFF -DWITH_PVAPI=OFF -D WITH_CUDA:BOOL=OFF -D WITH_PROTOBUF:BOOL=OFF -DBUILD_opencv_world:BOOL=ON ../
make -j8
mkdir ../output
#make install prefix=../output
#release lib
cp -r lib ../output/
cp ./3rdparty/lib/* ../output/lib/
#release include
cp -r ../include ../output/
cp -r ./opencv2/* ../output/include/opencv2/
cp -r ../modules/*/include/* ../output/include/
#release bin
cp -r bin ..
本文标题:opencv编译步骤
本文链接:https://www.haomeiwen.com/subject/kmlyohtx.html
网友评论