0

I installed openCV2.3.1 with VS2010. In VC++ Directories I set Library Directories to C:\opencv\build\x86\vc10\lib. My code has no error but when I try to build it VC++2010 displays this error

This application has failed strat because opencv_core231d.dll was not found. Reinstall the application may fix this problem.

How do I setup openCV2.3.1 with VC++2010 to find the .dll?

dandan78
  • 13,328
  • 13
  • 64
  • 78
user572575
  • 1,009
  • 3
  • 25
  • 45

3 Answers3

2

Have you seen Microsoft Visual Studio tutorial from the latest OpenCV documentation?

Andrey Kamaev
  • 29,582
  • 6
  • 94
  • 88
1

You need to build the openCV2.3.1 yourself. We use cmake build tool in our project. And you should copy the opencv_core231d.dll to your exe directory so that your executable file can find the dll. Here is the Complete Installation guide for OpenCV.

Nickolas
  • 780
  • 8
  • 27
  • 1
    I don't think one MUST build from source. It's ok to go with the pre-built binaries, unless no fine-tuning is required. But the issue, IMO, is that the .dlls of OpenCV are not found. You sure can copy them, but you'll be better off by adding the .dlls directory to the system PATH. See [here](http://opencv.itseez.com/doc/tutorials/introduction/windows_install/windows_install.html#windowssetpathandenviromentvariable) – Alex Kreimer Feb 22 '12 at 15:53
0

Download and install the 2.3.1 superpack for Windows and configure Visual Studio according to this post. Even though the instructions are for the 2.3 version, the procedure remains the same and you just need to take care to use the appropriate paths and file names of v2.3.1 when following the steps.

Alternatively you could try to follow Andrey's recommendation, but I haven't test it yet.

Community
  • 1
  • 1
karlphillip
  • 92,053
  • 36
  • 243
  • 426