I have tried to install openCV to my computer. I have followed Installing OpenCV 2.4.3 in Visual C++ 2010 Express tutorial , http://www.worldofmcu.com/2013/06/installing-opencv-in-windows-7-visual.html tutorial and even a couple of youtube videos. However, I cant seem to work it. From the first, I got an error fatal error LNK1104: cannot open file 'opencv_haartraining_engined.lib' I have removed that error by removing it from Additional Dependencies.
Now, I got an error called The program '[6104] cvtest.exe: Native' has exited with code -1073741701 (0xc000007b). I have tried many of the methods suggested here step by step but I simply couldn't solve the problem. I have also tried it with different programs and the both errors are the same. This is the program that I use Installing OpenCV 2.4.3 in Visual C++ 2010 Express
#include <opencv2/highgui/highgui.hpp>
#include <iostream>
using namespace cv;
using namespace std;
int main()
{
Mat im = imread("C:\Users\İhsan\Downloads\lena.jpg");
if (im.empty())
{
cout << "Cannot load image!" << endl;
return -1;
}
imshow("Image", im);
waitKey(0);
}
it gives me a (0xc000007b) error that I have mentioned.(After I fixed the library error) It also gives me exactly the same problems when I try this code http://www.youtube.com/watch?v=cgo0UitHfp8&list=LLD0fqFAKW_kKwEEdQY5IVQg&index=1 In addition, for some reason Visual does not understand Users in my code and says incorrectly formed universal character name even though that is the correct path.
My openCV is at D folder and from the system properties, I made a variable value of D:\opencv\build and system variable path of %OPENCV_BUILD%\x64\vc10\bin; I don't think thats the issue but is there a problem with openCV that I have to copy files to C not D?
I am really really disappointed and tired with these problems and I hope that you guys can help me fix them.