Qt qmake and OpenCV Load Issue
-
wrote on 6 Dec 2023, 03:32 last edited by
Hello,
I am having issues with loading opencv to Qt creator with qmake as build project. The error: Cannot find -lopencv_world480d.Qt creator 11.0.2
Opencv 4.8.0
Operating systems - windows 11I have the includes in the .pro file correctly and the opencv is running on visual studio with the same path but in Qt it does not run and gives me errors. Based on my research it could be with the qmake.
I tried switching to Cmake as the build project but somehow CMake is not working either. It is weird once I close the project then I can’t run it or make changes to it. CMake has always been the same for all qt projects which is why I always used qmake. However, now qmake seems to not be working with opencv.
I would appreciate the help if there is any way to run this project on qmake and get it to work with opencv. -
Hi and welcome to devnet,
From experience you are missing one
-L
parameter with the path to where the OpenCV libraries can be found in yourLIBS
variable.If that's not that, then please share your
.pro
file.
2/2