i made a project using visual studio and opencv ,it worked fine.
however later i thought of adding GUI.
i googled and found abput QT.some how i managed to include libraries and build paths,when i use C fucntions of opencv the program works fine but when i use c++ features of opencv i get following error:-
#include "widget.h"
#include "ui_widget.h"
#include "opencv2/highgui/highgui.hpp"
#include "opencv/cv.h"
#include "opencv/cvaux.h"
Widget::Widget(QWidget *parent) :
QWidget(parent),
ui(new Ui::Widget)
{
ui->setupUi(this);
IplImage *in;
QImage imp;
in=cvLoadImage("F:/test.jpg");
cv::VideoCapture cap;
}
ERROR:-
widget.obj:-1: error: LNK2019: unresolved external symbol "public: __cdecl cv::VideoCapture::VideoCapture(void)" (??0VideoCapture@cv@@QEAA@XZ) referenced in function "public: __cdecl Widget::Widget(class QWidget *)" (??0Widget@@QEAA@PEAVQWidget@@@Z)