How to connect IP camera to QT ?
-
@Vijaykarthikeyan
Why are you continuing the same discussion about your linking in thread https://forum.qt.io/topic/145898/opencv-ip-camera-connection ? This is precisely why it's not helpful to be maintaining separate threads about essentially the same question, that wastes people's time answering in two places.I posted a question to you there.
-
@Vijaykarthikeyan
I think these two questions are the same? You need to sort out the linking in both cases before proceeding. -
@Vijaykarthikeyan Verify that everything is using the same architecture and that you are also linking to all the required libraries.
-
@SGaist My compiler is MING 8.1.0 64 bit compiler..
Upon reading, I found that OpenCV 4.X versions are compatible with Qt 5 and 6
I've downloaded OpenCV 4.7 version..There is only one library called open_cvworld470
Upon searching,I came to know that the error undefined error results from Linking error..But,Ive followed the correct way to link theat library in .pro file.
-
@Vijaykarthikeyan
What actual library file do you have:opencv_world470.lib
orlibopencv_world.a
? If it is the former then it looks to me like your OpenCV is compiled with MCVC (and the path includingvc16
seems to confirm that). You cannot then compile your own or Qt code with MinGW and link against a library compiled with MSVC. Everything must be either MSVC or MInGW, not a mixture. Sounds like your issue? -
@Vijaykarthikeyan
Yes..lib
is MSVC. If you want to link against that you need to compile with a (compatible version of) MSVC. If you want to stick with MinGW you will need to either obtain or compile for yourself a MinGW version of OpenCV. Qt works with either compiler (so long as you have right libraries for chosen one).