Ask Your Question
0

Missing libopencv_core242.dll when trying to run project

asked 2013-04-25 04:38:46 -0500

NewOpenCVuser gravatar image

updated 2013-04-25 04:43:20 -0500

Hi, I have just started using Opencv recently and I keep on getting an error when trying to run my project.

The program can't start because libopencv_core242.dll is missing from your computer

I'm using OpenCV 2.4.5 with Code::blocks 12.11 on a Windows 7 64bit PC.

I installed OpenCV to the C: drive.

I have added the "C:\opencv\build\x86\mingw\bin" directory to my system path, added the "C:\opencv\build\include" directory to the search directories in the compiler settings and added all the .a libraries in the "C:\opencv\build\x86\mingw\lib" directory to the linker settings in the compiler settings.

I'm using the GNU GCC compiler. I have checked that the libopencv_core242.dll file is in fact in the "C:\opencv\build\x86\mingw\bin" directory. Am I missing something?

Any help would be greatly appreciated.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-04-25 04:44:44 -0500

Just some things I do extra on my Windows system, but could help you. Also add to your include directories:

  • C:\opencv\build\include\opencv\
  • C:\opencv\build\include\opencv2\

Also be sure not to have added the debug dlls instead of the release ones, depending on what you need.

Check if your destination target system is configured correctly: x86 or x64 system.

edit flag offensive delete link more

Comments

I tried everything but I'm still getting the error. If I run the .exe directly it works though.

NewOpenCVuser gravatar imageNewOpenCVuser ( 2013-04-25 05:14:23 -0500 )edit

If it is only generating the error in your debugging environment, there must be something wrong with your codeblocks execution parameters.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-04-25 06:17:26 -0500 )edit

Do you know what the execution parameters should be?

NewOpenCVuser gravatar imageNewOpenCVuser ( 2013-04-25 07:32:28 -0500 )edit

Nope, have no experience with codeblocks whatsoever :)

StevenPuttemans gravatar imageStevenPuttemans ( 2013-04-25 07:53:49 -0500 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2013-04-25 04:38:46 -0500

Seen: 907 times

Last updated: Apr 25 '13