私は自分のWindows764ビット用にopencvをインストールしようとしています。私の基本的な目的は、C言語でopencvを使用することです。私はborlandとmingwの両方のコンパイラを持っています。説明どおりに、Windows7ガイドでOpenCV2.4とMinGWの使用を開始しました。しかし、私は次の応答を受け取り続けます:
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でopencvをコンパイルするためにIDEをセットアップする必要があります。
ありがとう