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的解决方法,希望对大家有所帮助
推荐阅读
-
安装Cacti过程中的异常及解决方法
-
Oracle Enterprise Linux 5安装Oracle 10g碰到的若干问题及解决方法
-
Python中cx_Oracle模块安装遇到的问题与解决方法
-
运行opencv保存视频时出现错误的解决方法
-
Ubuntu 18.04最小安装OpenCV3.4.8的方法
-
解决的错误-20200306-安装darknet时,opencv 出现路径问题
-
eclipse安装TestNG后无法使用TestNG的解决方法 博客分类: 技术总结单元测试 eclipseTestNG无法使用解决方法
-
ubuntu14.04安装Scrapy和redis时遇到的问题,及解决方法
-
只能通过chrome网上应用商店安装该程序”的解决方法 博客分类: vb2005xu开发文章转摘vb2005xu自己动手系列
-
MAC下 QT5.11.0+opencv的安装与配置