Ubuntu18.04安装opencv 3.2.0的解决方法
下载opencv.zip
要提前安装依赖项。
先更新一下下载源。用17.04 的源可以解决在18.04中找不到libjasper.dev的问题。
ref https://*.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://*.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的解决方法,希望对大家有所帮助
上一篇: 怎么才能限制SQL Server只能让指定的机器连接
下一篇: 中山适合情侣约会的地方
推荐阅读
-
win8/8.1系统安装.net framework 3.5出现0x800F0906代码错误的解决方法
-
MAC安装魔兽争霸3后自己的电脑无法连入局域网的解决方法
-
ubuntu安装sublime不能输入中文的解决方法
-
安装IIS6.0程序是出现无法复制文件zclientm.exe的解决方法介绍
-
安装MSDE2000提示为了安全起见,要求使用强 SA 密码的解决方法
-
WINDOWS 在安装WINDOWS ME过程中死机的解决方法
-
基于centos7 安装python3.6.4出错的解决方法
-
Ubuntu 17.04系统下源码编译安装opencv的步骤详解
-
Virtualbox无法安装Windows 8.1的解决方法
-
Ubuntu 16.04安装搜狗拼音输入法错误问题的解决方法