I want to compile easy programm in qt creator, but I have problems with opencv. Os- ubuntu 16.04 .pro file qt
LIBS += -lopencv_core -lopencv_imgproc -lopencv_highgui
Main program
#include <opencv/cv.h>
#include <opencv/highgui.h>
#include <stdlib.h>
#include <stdio.h>
IplImage* image = 0;
IplImage* src = 0;
int main()
{
char* filename = "Image0.jpg";
image = cvLoadImage(filename,1);
src = cvCloneImage(image);
return 0;
}
Compilation error main.cpp:-1: error: undefined reference to `cvLoadImage'. What I am doing wrong?
LIBS += ...withPKGCONFIG += opencv?QtCreatorissue and has nothing at all to do with theQtframework (not sureQtis even used), I changed the tags.char* filename = "Image0.jpg"; src = cvCloneImage(image)