Yeah I fixed the copy thing before using it
but I'm stupid enough to forget about changing the names to the new version names..
anyways they're still some problems
first I added these to my pro file:
INCLUDEPATH += C:/opencv249/build/include/
CONFIG( debug, debug|release ) {
#debug libs
LIBS +=-LC:/opencv249/build/x64/vc11/staticlib\
-lopencv_core249d\
-lopencv_highgui249d
}
else {
#release libs
LIBS +=-LC:/opencv249/build/x64/vc11/staticlib\
-lopencv_core249\
-lopencv_highgui249
}
INCLUDEPATH += C:/opencv249/build/include/
CONFIG( debug, debug|release ) {
#debug libs
LIBS +=-LC:/opencv249/build/x64/vc11/staticlib\
-lopencv_core249d\
-lopencv_highgui249d
}
else {
#release libs
LIBS +=-LC:/opencv249/build/x64/vc11/staticlib\
-lopencv_core249\
-lopencv_highgui249
}
To copy to clipboard, switch view to plain text mode
second here is the includes + code
#include<opencv/cv.h>
#include<opencv/highgui.h>
void MainWindow::showimage1(){
IplImage*img=cvLoadImage("C:\\Users\\myuser\\QT\\build-CaptureTools-Unnamed-Debug\\Fri May 2 2014_3039.png");
cvNamedWindow("example",CV_WINDOW_AUTOSIZE);
cvShowImage("example",img);
cvWaitKey(0);
cvReleaseImage(&img);
cvDestroyWindow("example");
}
#include<opencv/cv.h>
#include<opencv/highgui.h>
void MainWindow::showimage1(){
IplImage*img=cvLoadImage("C:\\Users\\myuser\\QT\\build-CaptureTools-Unnamed-Debug\\Fri May 2 2014_3039.png");
cvNamedWindow("example",CV_WINDOW_AUTOSIZE);
cvShowImage("example",img);
cvWaitKey(0);
cvReleaseImage(&img);
cvDestroyWindow("example");
}
To copy to clipboard, switch view to plain text mode
------------------------------------------
first I'll start with the notifications that it shows in the issues section along with the errors:
C:\opencv249\build\include\opencv2\flann\logger.h:66: warning: C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\opencv249\build\include\opencv2\flann\logger.h:66: warning: C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\opencv249\build\include\opencv2\flann\logger.h:66: warning: C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\opencv249\build\include\opencv2\flann\logger.h:66: warning: C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\opencv249\build\include\opencv2\flann\logger.h:66: warning: C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\opencv249\build\include\opencv2\flann\logger.h:66: warning: C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
To copy to clipboard, switch view to plain text mode
-----------------------------------------------------
the errors:
mainwindow.obj:-1: error: LNK2019: unresolved external symbol _cvReleaseImage referenced in function "public: void __thiscall MainWindow::showimage1(void)" (?showimage1@MainWindow@@QAEXXZ)
mainwindow.obj:-1: error: LNK2019: unresolved external symbol _cvNamedWindow referenced in function "public: void __thiscall MainWindow::showimage1(void)" (?showimage1@MainWindow@@QAEXXZ)
mainwindow.obj:-1: error: LNK2019: unresolved external symbol _cvShowImage referenced in function "public: void __thiscall MainWindow::showimage1(void)" (?showimage1@MainWindow@@QAEXXZ)
mainwindow.obj:-1: error: LNK2019: unresolved external symbol _cvDestroyWindow referenced in function "public: void __thiscall MainWindow::showimage1(void)" (?showimage1@MainWindow@@QAEXXZ)
mainwindow.obj:-1: error: LNK2019: unresolved external symbol _cvLoadImage referenced in function "public: void __thiscall MainWindow::showimage1(void)" (?showimage1@MainWindow@@QAEXXZ)
mainwindow.obj:-1: error: LNK2019: unresolved external symbol _cvWaitKey referenced in function "public: void __thiscall MainWindow::showimage1(void)" (?showimage1@MainWindow@@QAEXXZ)
debug\CaptureTools.exe:-1: error: LNK1120: 6 unresolved externals
mainwindow.obj:-1: error: LNK2019: unresolved external symbol _cvReleaseImage referenced in function "public: void __thiscall MainWindow::showimage1(void)" (?showimage1@MainWindow@@QAEXXZ)
mainwindow.obj:-1: error: LNK2019: unresolved external symbol _cvNamedWindow referenced in function "public: void __thiscall MainWindow::showimage1(void)" (?showimage1@MainWindow@@QAEXXZ)
mainwindow.obj:-1: error: LNK2019: unresolved external symbol _cvShowImage referenced in function "public: void __thiscall MainWindow::showimage1(void)" (?showimage1@MainWindow@@QAEXXZ)
mainwindow.obj:-1: error: LNK2019: unresolved external symbol _cvDestroyWindow referenced in function "public: void __thiscall MainWindow::showimage1(void)" (?showimage1@MainWindow@@QAEXXZ)
mainwindow.obj:-1: error: LNK2019: unresolved external symbol _cvLoadImage referenced in function "public: void __thiscall MainWindow::showimage1(void)" (?showimage1@MainWindow@@QAEXXZ)
mainwindow.obj:-1: error: LNK2019: unresolved external symbol _cvWaitKey referenced in function "public: void __thiscall MainWindow::showimage1(void)" (?showimage1@MainWindow@@QAEXXZ)
debug\CaptureTools.exe:-1: error: LNK1120: 6 unresolved externals
To copy to clipboard, switch view to plain text mode
Bookmarks