ubuntu上配置Qt和Opencv3

2021-08-04 08:50:10 字數 1039 閱讀 5994

最近需要用qt寫乙個介面,然後就需要配置qt和opencv。我的電腦現狀是之前有安裝過opencv,所以只需要安裝qt和配置opencv環境;linux系統,ubuntu 4.4.0-21,37 x86-64.

2.新建乙個工程,在「.pro」檔案中配置opencv的庫檔案,配置清單如下:

includepath += /usr/local/include\

/usr/local/include/opencv\

/usr/local/include/opencv2

libs += /usr/local/lib/libopencv_calib3d.so\

/usr/local/lib/libopencv_core.so\

/usr/local/lib/libopencv_features2d.so\

/usr/local/lib/libopencv_flann.so\

/usr/local/lib/libopencv_highgui.so\

/usr/local/lib/libopencv_imgcodecs.so\

/usr/local/lib/libopencv_imgproc.so\

/usr/local/lib/libopencv_ml.so\

/usr/local/lib/libopencv_objdetect.so\

/usr/local/lib/libopencv_photo.so\

/usr/local/lib/libopencv_shape.so\

/usr/local/lib/libopencv_stitching.so\

/usr/local/lib/libopencv_superres.so\

/usr/local/lib/libopencv_videoio.so\

/usr/local/lib/libopencv_video.so\

/usr/local/lib/libopencv_videostab.so

3.通過簡單的讀取和顯示可以對配置的環境進行檢測;

ubuntu 安裝和配置 QT

install qt 5 on ubuntu qt wiki sudo gedit usr lib x86 64 linux gnu qtchooser default.conf sudo gedit usr lib x86 64 linux gnu qt default qtchooser def...

RedHat上Qt環境安裝和配置

環境 redhat6.3 原始碼 飛凌提供的 qt everywhere opensource src 4.7.1.tar.gz 將qt everywhere opensource src 4.7.1.tar.gz放到某個目錄下 然後解壓 tar xvzf qt everywhere opensou...

Ubuntu上qt環境的構建

寫在前面.這個教程好像比較早一點了,現在介紹乙個新的思路 整體參見如下步驟 for zedboard 檔案,然後跟在windows下安裝程式一樣,雙擊即可出現影象安裝介面。而且,裡面會附帶qtcreater,不用另行安裝。這個時候桌面版qt已經構建好了!2.如果需要編譯出arm平台下執行的qt程式,...