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)文章
Ubuntu E: 無法獲得鎖 /var/lib/dpkg/lock-frontend - open (11: 資源暫時(shí)
這篇文章主要介紹了Ubuntu E: 無法獲得鎖 /var/lib/dpkg/lock-frontend - open (11: 資源暫時(shí)不可用),本文通過兩種方案給大家分析問題所在原因,需要的朋友可以參考下2019-10-10
Ubuntu 16.04源碼編譯安裝Apache 2.4.25教程
這篇文章主要為大家詳細(xì)介紹了Ubuntu 16.04源碼編譯安裝Apache 2.4.25,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下2017-01-01
Linux 全能系統(tǒng)監(jiān)控工具dstat的實(shí)例詳解
這篇文章主要介紹了Linux 全能系統(tǒng)監(jiān)控工具dstat的實(shí)例詳解,本文給大家介紹的非常詳細(xì),具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2019-09-09
Ubuntu下安裝rsh實(shí)現(xiàn)無密碼訪問詳解
這篇文章主要為大家詳細(xì)介紹了Ubuntu下安裝rsh實(shí)現(xiàn)無密碼訪問的相關(guān)資料,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下2017-03-03
對(duì)send(),recv()函數(shù)的全面理解
下面小編就為大家?guī)硪黄獙?duì)send(),recv()函數(shù)的全面理解。小編覺得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過來看看吧2017-01-01
linux No space left on device由索引節(jié)點(diǎn)(inode)爆滿引發(fā)500問題
這篇文章主要介紹了linux No space left on device由索引節(jié)點(diǎn)(inode)爆滿引發(fā)500問題,文中通過示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧2019-11-11

