I recently had to deal with linking and runtime loading libraries on Mac OS, which I found to work quite a bit differently than windows and linux systems, so I thought I would share my notes on the matter.
I recently had to deal with linking and runtime loading libraries on Mac OS, which I found to work quite a bit differently than windows and linux systems, so I thought I would share my notes on the matter.
So, I'm going to talk about a few additions to linking OpenCV with qmake. The basic part involves setting up the include path, and then adding the needed libraries:
INCLUDEPATH += path/to/opencv/include
LIBS += -Lpath/to/opencv/lib -lopencv_core2410 -lopencv_highgui2410
On linux we can use pkg-config:
CONFIG += link_pkgconfig
PKGCONFIG += opencv
Although this simplicity, there's 2 things I don't like for the windows part of this configuration:
To resolve these, I'll look into adding this functionality within an includable qmake project file.