欢迎光临
我们一直在努力

怎么在Ubuntu18.04中安装opencv 3.2.0

本篇文章给大家分享的是有关怎么在Ubuntu18.04中安装opencv 3.2.0,小编觉得挺实用的,因此分享给大家学习,希望大家阅读完这篇文章后可以有所收获,话不多说,跟着小编一起来看看吧。

先更新一下下载源。用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,小编相信有部分知识点可能是我们日常工作会见到或用到的。希望你能通过这篇文章学到更多知识。更多详情敬请关注云搜网行业资讯频道。

赞(0)
【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。