2
我想在Windows中使用CMake構建Multitarget-tracker。起初我有下面這樣的警告:CMake錯誤,同時構建MultiTarget-跟蹤器庫
You should manually point CMake variable OpenCV_DIR to your build of OpenCV library.
Call Stack (most recent call first):
CMakeLists.txt:57 (find_package)
我手動指出了OpenCV庫的編譯版本的目錄,並試圖構建。建設時我提到了這個link。現在我得到這樣的警告:
CMake Warning at CMakeLists.txt:23 (FIND_PACKAGE):
Found package configuration file:
C:/OpenCV/opencv/build/x86/vc12/lib/OpenCVConfig.cmake
but it set OpenCV_FOUND to FALSE so package "OpenCV" is considered to be NOT FOUND.
我試圖檢查OpenCV_FOUND
變量,但經過我按「配置」了,它會自動取消選中。
你不應該手動檢查'OpenCV_FOUND':它是一個由'OpenCVConfig.cmake'設置的變量,告訴CMake是否找到OpenCV。如果設置爲「FALSE」,則表示根據軟件包安裝的OpenCV無效。你是如何安裝/編譯OpenCV的? 「OpenCVConfig.cmake」的內容是什麼? – wasthishelpful
是的,我沒有正確安裝OpenCV。感謝您的評論。你會發表這個評論作爲答案,以便我可以接受它嗎? @這個有幫助嗎 –