Ask Your Question
0

Cannot start program because opencv_core248d.dll is missing

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

BananaCode gravatar image

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

Hello,

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;
    cap.open(0);

    namedWindow("window",1);

    while(true) {

        cap >> image;

        imshow("window", image);

        waitKey(33);
    }


    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?

Regards

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

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

wuling gravatar image

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

edit flag offensive delete link more

Comments

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

BananaCode gravatar imageBananaCode ( 2014-03-05 10:10:07 -0600 )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 -0600 )edit
0

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

Guyygarty gravatar image

Hi,

I also installed OpenCV recently, without (many) problems

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

http://docs.opencv.org/doc/tutorials/introduction/windows_install/windows_install.html#windowssetpathandenviromentvariable

guy

edit flag offensive delete link more

Comments

Yes, I have done that. Same error.

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

Question Tools

Stats

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

Seen: 2,845 times

Last updated: Mar 05 '14