Ask Your Question

Cannot start program because opencv_core248d.dll is missing

asked 2014-02-27 10:49:21 -0500

BananaCode gravatar image

updated 2014-02-27 10:59:18 -0500


I'm trying to install OpenCV. Turns out this is far more complicated as expected. The tutorials are all outdated. Here is my current problem:

I'm running on a 64 bit machine, and am trying just a simple sample code:

#include <opencv\cv.h>
#include <opencv\highgui.h>

using namespace cv;

int main() {
    Mat image;

    VideoCapture cap;;


    while(true) {

        cap >> image;

        imshow("window", image);


    return 0;

When I run this, I get an error stating that opencv_core248d.dll is missing. Checking the bin directory, it is there. How do I fix this?


edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-03-05 07:57:42 -0500

wuling gravatar image

well, the oher case is your exe file must put in the opencv dll file.

edit flag offensive delete link more


This works. But is there no way to link the libraries?

BananaCode gravatar imageBananaCode ( 2014-03-05 10:10:07 -0500 )edit

well,I think you should to read VC or MFC book. you can setup youe exe file path. or you can comple to static exe file

wuling gravatar imagewuling ( 2014-03-05 10:38:12 -0500 )edit

answered 2014-02-27 11:28:28 -0500

Guyygarty gravatar image


I also installed OpenCV recently, without (many) problems

Did you update the system path to include the %OPENCV_DIR%\bin directory? see:


edit flag offensive delete link more


Yes, I have done that. Same error.

BananaCode gravatar imageBananaCode ( 2014-02-27 11:52:13 -0500 )edit

Question Tools


Asked: 2014-02-27 10:49:21 -0500

Seen: 2,677 times

Last updated: Mar 05 '14