我一直在試圖安裝opencv爲我的Windows 7 64位。 我的基本目標是在C語言中使用opencv。我有borland和mingw編譯器。 我用Getting started with OpenCV 2.4 and MinGW on Windows 7指導完全按照描述。但我不斷收到以下回應:Opencv 2.4.2安裝爲C
C:\Users\Rachit Dell\Pictures>g++ -I"C:\opencv\build\include" -L"C:\opencv\build
\x86\mingw\lib" loadimg.cpp -lopencv_core240 -lopencv_highgui240 -o loadimg
loadimg.cpp:1:39: error: opencv2/highgui/highgui.hpp: No such file or directory
loadimg.cpp:4: error: 'cv' is not a namespace-name
loadimg.cpp:4: error: expected namespace-name before ';' token
loadimg.cpp: In function 'int main(int, char**)':
loadimg.cpp:9: error: 'Mat' was not declared in this scope
loadimg.cpp:9: error: expected ';' before 'im'
loadimg.cpp:10: error: 'im' was not declared in this scope
loadimg.cpp:16: error: 'im' was not declared in this scope
loadimg.cpp:16: error: 'imshow' was not declared in this scope
loadimg.cpp:17: error: 'waitKey' was not declared in this scope
我已經使用了版本2.4.2。
有人請指導我。我只需要安裝一個IDE編譯OpenCV的在C.
感謝
嘗試從'-I'(和'-L')值中刪除雙引號。 – hmjd
這些雙引號用於包含給定的路徑。無論如何,我沒有嘗試你的建議。沒有工作 –
明顯highgui.hpp缺少或未檢測到,因爲它預計會,我會盡力解決這個問題。檢查它是否包含正確。新的用戶提示 - 記住稍後返回並標記回答,如果您認爲一個很好的答案。 –