Undefined reference to `cv::imread' with Qt and MinGW

Hi,

I am quite new to QT and OpenCV. I am using QT version 6.8 and OpenCV 4.10. I have found a channel in youtube from Qt With Ketan. I follow the steps of the first video:

https://www.youtube.com/watch?v=yVeXXuGnnxs&list=PLh0cogPqXcJNEhszlaONshdubdDOF8GRh&index=1

and I works well, but when I follow the steps of the second video:

https://www.youtube.com/watch?v=SjpAb9eqkb8&list=PLh0cogPqXcJNEhszlaONshdubdDOF8GRh&index=2

It crushes. I get the following errors:

Does somebody know where I can be doing an error or what should I do?

Thanks

Best regards,
Dani

I end up following the steps that are described here: How to setup Qt and openCV on Windows with MSVC2017 - Qt Wiki

And it seems to work more or less. In case somebody gets a similar problem in the future.

Thanks

1 Like