ubuntu下opencv編譯出錯
發布時間: 2022-12-17 22:12:18
A. 我再ubuntu下安裝OpenCV是編譯的時候沒有提示錯誤,但是在運行程序的時候提示:
簡單的解釋就是你的GTK+2.x要先於OpenCV安裝,所以它給的解決方法是You should remove the current installation of opencv from your system; rebuild your opencv lib after installing gtk dev lib in the correct path; and reinstall the compiled opencv lib.
B. Ubuntu中編譯opencv,make時出錯,提示:opencv/core/core.hpp no such file or directory.源
找不到頭文件的原因 。要麼當前指定的頭文件各個目錄不包含這個頭文件所在的目錄;要麼這個頭文件根本不存在。
解決方法:在工程屬性中「C++目錄」里,把<opencv_path>\build\include或類似的include目錄添加到頭文件目錄
熱點內容