开发者

Get OpenCV2.1 to run in windows using eclipse

开发者 https://www.devze.com 2023-01-14 15:38 出处:网络
I am trying to get OpenCV2.1 to run on my windows machine. Here is what I have done so far: Installed MinGW using MinGW-get-inst

I am trying to get OpenCV2.1 to run on my windows machine. Here is what I have done so far:

  • Installed MinGW using MinGW-get-inst
  • Installed Visual Studio C++ 2008 Express
  • Installed OpenCV-2.1.0-win32-vs2008.exe downloaded from OpenCV's website
  • Installed Eclipse

Then to test everything, I created a new project, and:

  • Configured Eclipse to include "C:\OpenCV2.1\include\opencv"
  • Configured Eclipse to see libraries cv210, highgui210, ml210, cxcore210
  • Configured Eclipse to see library folder "C:\OpenCV2.1\lib"

I then took a test source code from the Samples folder (lkdemo.c), put it in my source folder, and built the source (Project-->Build All).

The build is successful, and I see a Test.exe (called my project Test). However, when I开发者_开发知识库 try to run the exe file, I get the error:

The program can't start because libgcc_s_dw2-1.dll is missing from your computer. Try reinstalling the program to fix this problem.

What did I miss? I may be mistaken, but I thought MinGW was the gcc compiler?

Thanks,


First you probably want to download the opencv2.1 src for eclipse/mingw not the vs-2008 libs.

"libgcc_s_dw2-1.dll" means it can't find that dll at runtime, it needs to be on the path.
I'm guessing from the name that it's part of mingw/gcc install?
Do a search of the C: drive for this file.


Just add the folder which contains dll files to the system path

My computer->Environment variable

restart the computer and then try to re-execute the application.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号