系统:ubuntu 18.04.1 LTS
IDE:Clion
首先下载编译OpenCV,[下载地址],(https://github.com/opencv/opencv/archive/4.0.0-beta.zip)
然后编译参考官方教程
最后clion新建C++项目,配置CMakeList.txt文件,在最后加上下面两句就行了。
find_package(OpenCV REQUIRED)
target_link_libraries(你的项目名字 ${OpenCV_LIBS})
系统:ubuntu 18.04.1 LTS
IDE:Clion
首先下载编译OpenCV,[下载地址],(https://github.com/opencv/opencv/archive/4.0.0-beta.zip)
然后编译参考官方教程
最后clion新建C++项目,配置CMakeList.txt文件,在最后加上下面两句就行了。
find_package(OpenCV REQUIRED)
target_link_libraries(你的项目名字 ${OpenCV_LIBS})