Issue in connecting MSVC 2010 with OpenCV 2.4.8

asked 2014-02-28 09:35:10 -0600

Hi all, I am trying to connect my MSVC 2010 Express Edition to Open CV 2.4.8 and thereby following the href="[http://http://stackoverflow.com/questions/10901905/installing-opencv-2-4-3-in-visual-c-2010-express].I installed all dependencies successfully and removed all Linking errors but now my Simple first program such as:

include <opencv2 highgui="" highgui.hpp="">

include <iostream>

using namespace cv; using namespace std;

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

is disturbing me alot as it builds successfuly with a pop up window saying "The application was unable to start correctly(0X000007b).Click Ok to close the application".Initially i searched for it on the web but didn't get any supportive help. P.S. I am having Win8 64-bit.

edit retag flag offensive close merge delete

Comments

it did not find the opencv dlls at runtime.

append the resp. folder to the PATH

berak gravatar imageberak ( 2014-02-28 09:37:35 -0600 )edit

would you elaborate please?

Crystal heart gravatar imageCrystal heart ( 2014-03-01 01:20:18 -0600 )edit

i need it urgently !!!

Crystal heart gravatar imageCrystal heart ( 2014-03-01 01:21:00 -0600 )edit

also remember that opencv_calib3d243d.lib should change opencv_calib3d248d.lib because your opencv verison is 2.4.8 (d for debug mode)

wuling gravatar imagewuling ( 2014-03-02 10:52:13 -0600 )edit