[Qt-interest] How do I use frameworks with qmake on the Mac?
Nikos Chantziaras
realnc at arcor.de
Thu Jan 13 20:59:07 CET 2011
On 01/13/2011 08:59 PM, Oliver.Knoll at comit.ch wrote:
> 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
I copy&pasted wrongly. The "macx" section in my *.pro file uses
-framework in LIBS.
> CONFIG += link_pkgconfig
> PKGCONFIG += sdl
>
> (maybe sdl also provides package config files?)
Nope, not the frameworks since Mac OS X does not have pkg-config installed.
> will do everything needed (include paths, library paths). Works like a charm on Mac as well ;)
Not with frameworks. I use PKGCONFIG on Linux though.
More information about the Qt-interest-old
mailing list