且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用qmake在Ubuntu中一起编译QT和OpenCV

更新时间:2023-10-18 14:48:16

I found out that all I had to do was include the libraries that i needed into \"LIBS\" in the Makefile. So this is the solution,at the end of LIBS in the Makefile or at the bottom add the line

I found out that all I had to do was include the libraries that i needed into "LIBS" in the Makefile. So this is the solution,at the end of LIBS in the Makefile or at the bottom add the line

`LIBS += pkg-config --libs opencv`

this line can actually be added anywhere in the \"Compiler, tools and options\" section of the Makefile(refer to the Makefile code posted in the original question).

this line can actually be added anywhere in the "Compiler, tools and options" section of the Makefile(refer to the Makefile code posted in the original question).

Additionally, my lack of \"namespace\" was also an issue!

Additionally, my lack of "namespace" was also an issue!