我一直在试图安装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缺少或未检测到,因为它预计会,我会尽力解决这个问题。检查它是否包含正确。新的用户提示 - 记住稍后返回并标记回答,如果您认为一个很好的答案。 –