Ubuntu18.04安裝opencv 3.2.0的解決方法
下載opencv.zip
要提前安裝依賴項(xiàng)。
先更新一下下載源。用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
報(bào)錯(cuò):
-- 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
報(bào)錯(cuò)
-- 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
總結(jié)
以上所述是小編給大家介紹的Ubuntu18.04安裝opencv 3.2.0的解決方法,希望對(duì)大家有所幫助,如果大家有任何疑問請(qǐng)給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)腳本之家網(wǎng)站的支持!
相關(guān)文章
centos8使用Apache httpd2.4.37安裝web服務(wù)器的步驟詳解
這篇文章主要介紹了centos8使用Apache httpd2.4.37安裝web服務(wù)器的步驟詳解,本文分步驟給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2020-08-08Ubuntu下查看ssh服務(wù)是否安裝或啟動(dòng)的方法
這篇文章主要介紹了Ubuntu下查看ssh服務(wù)是否安裝或啟動(dòng)的方法,文中給出了詳細(xì)的方法示例,對(duì)大家具有一定的參考借鑒價(jià)值,有需要的朋友們下面來一起看看吧。2017-01-01linux創(chuàng)建線程之pthread_create的具體使用
這篇文章主要介紹了linux創(chuàng)建線程之pthread_create的具體使用,文中通過示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧2020-05-05使用vs2019進(jìn)行Linux遠(yuǎn)程開發(fā)的方法步驟
這篇文章主要介紹了使用vs2019進(jìn)行Linux遠(yuǎn)程開發(fā)的方法步驟,文中通過示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧2020-01-01嵌入式Linux重啟QT應(yīng)用程序的簡單辦法(基于QT4.8 qws)
今天小編就為大家分享一篇關(guān)于嵌入式Linux重啟QT應(yīng)用程序的簡單辦法(基于QT4.8 qws),小編覺得內(nèi)容挺不錯(cuò)的,現(xiàn)在分享給大家,具有很好的參考價(jià)值,需要的朋友一起跟隨小編來看看吧2018-12-12