Ubuntu18.04安装opencv 3.2.0的解决方法
下载opencv.zip
要提前安装依赖项。
先更新一下下载源。用17.04 的源可以解决在18.04中找不到libjasper.dev的问题。
ref https://stackoverflow.com/questions/43484357/opencv-in-ubuntu-17-04 libjasper-dev无法安装 errorE: unable to locate libjasper-dev
解决方法
sudo add-apt-repository “deb http://security.ubuntu.com/ubuntu xenial-security main” sudo apt update sudo apt install libjasper1 libjasper-dev
报错:
-- Checking for module 'gstreamer-base-1.0'
-- No package 'gstreamer-base-1.0' found
-- Checking for module 'gstreamer-video-1.0'
-- No package 'gstreamer-video-1.0' found
-- Checking for module 'gstreamer-app-1.0'
-- No package 'gstreamer-app-1.0' found
-- Checking for module 'gstreamer-riff-1.0'
-- No package 'gstreamer-riff-1.0' found
-- Checking for module 'gstreamer-pbutils-1.0'
-- No package 'gstreamer-pbutils-1.0' found
-- Checking for module 'gstreamer-base-0.10'
-- No package 'gstreamer-base-0.10' found
-- Checking for module 'gstreamer-video-0.10'
-- No package 'gstreamer-video-0.10' found
-- Checking for module 'gstreamer-app-0.10'
-- No package 'gstreamer-app-0.10' found
-- Checking for module 'gstreamer-riff-0.10'
-- No package 'gstreamer-riff-0.10' found
-- Checking for module 'gstreamer-pbutils-0.10'
-- No package 'gstreamer-pbutils-0.10' found
解决方法
ref https://stackoverflow.com/questions/37678324/compiling-opencv-with-gstreamer-cmake-not-finding-gstreamer
安装
sudo apt install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
报错
-- CUDA detected: 9.0
-- CUDA NVCC target flags: -gencode;arch=compute_20,code=sm_20;-gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_52,code=sm_52;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-D_FORCE_INLINES
-- Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
-- Could NOT find Atlas (missing: Atlas_CLAPACK_INCLUDE_DIR Atlas_CBLAS_LIBRARY Atlas_BLAS_LIBRARY Atlas_LAPACK_LIBRARY)
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)
-- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
总结
以上所述是小编给大家介绍的Ubuntu18.04安装opencv 3.2.0的解决方法,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对脚本之家网站的支持!
您可能感兴趣的文章:
- Ubuntu 16.04安装OpenCV 3.1.0,报错:fatal error hdf5.h no such file or directory 解决方法
- Ubuntu 18.04安装sublime text 3 出错解决方法
- Ubuntu下安装opencv3.2.0,解决anaconda下的Python和安装opencv3.2.0冲突的问题
- Ubuntu 16,04 安装opencv3.1编译cmake报错:fatal error hdf5.h no such file or directory 解决方法
- Ubuntu16.04下在Python2.7安装OpenCV3.2.0出现的问题与解决办法
- Ubuntu16.04编译opencv3.2.0的lapack错误解决方法
- Ubuntu15.04中测试安装的opencv2.4.9 时遇到usr/bin/ld: cannot find -lcufft解决方法。
- OpenCV-3编译安装方法及常见错误解决(Ubuntu平台)
- Ubuntu15.04中测试安装的opencv2.4.9 时遇到usr/bin/ld: cannot find -lcufft解决方法。
- Ubuntu 16.04-18.04中安装 WPS Office 2016 for Linux(集合篇含字体解决方法)简单好用
- ubuntu下安装opencv,cmake出错,解决方法
- VMware下Ubuntu安装Vmware Tools后hgfs无法看到共享文件的解决方法
- vmware上安装的ubuntu不能上网的解决方法
- ubuntu 11.10 x64 安装oracle 11gR2时碰到的问题及解决方法
- U盘做ubuntu安装盘之后,识别不到的解决方法
- Ubuntu 8.10安装及初步问题解决方法
- Ubuntu 10.04 安装Nvidia显卡后开机花屏的解决方法
- Ubuntu/Debian没声解决方法 —— 编译安装最新的alsa驱动
- [转]Ubuntu 10.04 安装在 VMware Workstation 7 后,键盘无法输入的问题的解决方法
- Dell R610安装Ubuntu无法启动解决方法