Ask Your Question
0

New install opencv 2.43 + Microsoft VS express 2012

asked 2013-01-30 15:33:28 -0600

I'm really exciting about trying some structure from motion application of opencv, however it seems that I'm too new into programming to even make works the simpliest programm. I followed the installation instruction there.

#include "stdafx.h"
#include <opencv2/highgui/highgui.hpp>
#include <iostream>

using namespace cv;
using namespace std;

int main()
{
    Mat im = imread("c:/tracks.jpg");
    if (im.empty()) 
    {
        cout << "Cannot load image!" << endl;
        return -1;
    }
    imshow("Image", im);
    waitKey(0);
}

While running this program I get several errors as :

'First.exe' (Win32): Loaded 'C:\opencv\build\x64\vc10\bin\opencv_core243d.dll'. Cannot find or open the PDB file.

Or the program can't start because MSVCP100D.dll is missing from your computer.

I went to check and opencv_core243d.dll is at the right place, I followed carefully all the instruction relative to the 64bits systems but no it doesn't work. I checked several forum online but no one give me an appropriate answer, do you have any idea what is wrong?

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
1

answered 2013-02-01 04:55:28 -0600

Hongbo Miao gravatar image

updated 2013-02-01 05:05:33 -0600

Hi, it used me a lot of time to make OpenCV 2.43 and VS2012 work well. And so many people have same problem. So I wrote a tutorial about how to use OpenCV 2.43 in Visual Studio 2012 to try to make things simple. Good luck to you. If you still have questions, I'm happy to answer them.

http://answers.opencv.org/question/6495/visual-studio-2012-and-rtlfreeheap-error/#6603

edit flag offensive delete link more
0

answered 2013-01-31 04:07:19 -0600

Daniil Osokin gravatar image

Hi! You use dlls, that built for VS 2010. That is the problem. You can build OpenCV from sources in VS 2012, followed by Windows Installation tutorial.

edit flag offensive delete link more
0

answered 2013-01-31 07:27:27 -0600

ubehagelig gravatar image

Or simply download and install VS2010 instead. I think that would make everything a whole lot easier for you :)

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-01-30 15:33:28 -0600

Seen: 1,072 times

Last updated: Feb 01 '13