need help debug with no error, but error on release
Hi all, i am need to openCV and i need some guidance.
I am on the path of learning through online youtubing, when i build the file in debugging, there is no error, but when i tried to build it in release, there is error.
The Error:
1>C:\opencv243\include\opencv\cv.h(63): fatal error C1083: Cannot open include file: 'opencv2/core/core_c.h': No such file or directory
1>
1>Build FAILED.
Program:
#include <C:\opencv243\include\opencv\cv.h>
#include <C:\opencv243\include\opencv\highgui.h>
using namespace cv;
int main()
{
//create Matrix to store image
Mat image;
// initialize capture
VideoCapture cap;
cap.open(0);
// create window to show image namedWindow(“window”, CV_WINDOW_AUTOSIZE);
namedWindow("window",1);
while(1)
{
// copy webcam stream to image
cap>>image;
// print image to screen imshow(“window”, image);
imshow("window",image);
// delay 33ms waitKey(33);
waitKey(33);
}
return 0;
}
Thank you very much if you can help me. I need to finish this for my final year project and till this period, i am still in a mist. i have tried Ubuntu but i have no luck in it, so i jump visual studio as i am more familiar in this platform.
I have solve the problem, i have to individual .h and .hpp file to chance the include part for example #include <D:\opencv\include\opencv\highgui.h>
but and again, i got another error :/
1>main.obj : error LNK2001: unresolved external symbol "void __cdecl cv::namedWindow(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int)" (?namedWindow@cv@@YAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z) 1>main.obj : error LNK2001: unresolved external symbol "int __cdecl cv::waitKey(int)" (?waitKey@cv@@YAHH@Z) 1>main.obj : error LNK2001: unresolved external symbol "public: __cdecl cv::_InputArray::_InputArray(class cv::Mat const &)" (??0_InputArray@cv@@QEAA@AEBVMat@1@@Z) 1>main.obj : error LNK2001: unresolved external symbol "
C:\Users\Steven\Documents\Visual Studio 2010\Projects\mynewproject\x64\Release\mynewproject.exe : fatal error LNK1120: 10 unresolved externals