[Qt-interest] How do I use frameworks with qmake on the Mac?
Oliver.Knoll at comit.ch
Oliver.Knoll at comit.ch
Thu Jan 13 19:59:32 CET 2011
On 2011-01-13 Nikos Nikos Chantziaras wrote:
> ...
> And then link with:
>
> LIBS += -lSDL_mixer -lSDL_sound #etc, etc.
Hmmm, the docs actually state that "The framework itself is linked in by appending the -framework options and the name of the framework to the LIBS variable":
LIBS += -framework TheFramework
So I am a bit surprised that it finds the libraries with just -lSLD_mixer etc.
Anyway, I have never linked against 3rd party Frameworks (except Qt off course), but against 3rd party libraries such as ImageMagick++ which I installed via "MacPorts". In these cases a simple:
CONFIG += link_pkgconfig
PKGCONFIG += sdl
(maybe sdl also provides package config files?)
will do everything needed (include paths, library paths). Works like a charm on Mac as well ;)
Cheers, Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22
More information about the Qt-interest-old
mailing list