Windows 7 64bit 용 opencv를 설치하려고했습니다. 내 기본 목표는 C 언어로 opencv를 사용하는 것입니다. 나는 borland와 mingw 컴파일러를 가지고있다. 설명대로 정확하게 Getting started with OpenCV 2.4 and MinGW on Windows 7 가이드를 사용했습니다. 그러나 다음 응답을 계속받습니다.C 용 Opencv 2.4.2 설치
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 버전을 사용했습니다.
누군가 나를 안내 해줄 수 있습니까? 난 그냥 설정에 C.에
감사
'-I' (와'-L') 값에서 큰 따옴표를 제거해보십시오. – hmjd
큰 따옴표는 지정된 경로를 묶는 데 사용됩니다. 어쨌든 나는 제안을 시도했다. did not work –
분명히 highgui.hpp가 없거나 발견되지 않았기 때문에이 문제를 해결하려고합니다. 제대로 포함되어 있는지 확인하십시오. 새로운 사용자 힌트 - 나중에 돌아와서 좋은 대답을 생각하면 대답을 수락했음을 기억하십시오. –