Qmake: import an OSX framework from ~/Library/Frameworks
I am wondering whether you think this is the simplest way to include
an OSX framework which is deployed in the user folder "~/Library/Frameworks"
TARGET = taucs_demo
TEMPLATE = app
QT -= core gui
CONFIG += console
CONFIG -= app_bundle
QMAKE_CXXFLAGS += -F$$(HOME)/Library/Frameworks
QMAKE_LFLAGS += -F$$(HOME)/Library/Frameworks
LIBS += -framework Taucs
SOURCES += main.cpp
I have also experimented with setting DYLD_FRAMEWORK_PATH
in my "~/.bashrc" or inside the Qt Creator variables without
Don't you think the QMAKE_CXXFLAGS/QMAKE_LFLAGS combo
is particularly ugly? I wish there was something like:
FRAMEWORKPATH += ....
Don't use QMAKE in state of label: [QMAKE]. Yust like this: qmake: Import a framework from ~/Library/Frameworks. Label must be [SOLVED] or [SELF-SOLVED].
In order to include frameworks to your project, you need to add to both, the include path and the library path. I would try this:
INCLUDEPATH += -F$$(HOME)/Library/Frameworks
LIBS += -F$$(HOME)/Library/Frameworks -framework Taucs
I didn't test this, though. I would need to setup a test case with a framework in a non-standard path. Everything in /System is found anyways :-)
Thanks Volker. I still think that is still sort of badly designed...
Let me add something else, I wish Qt created its own "framework" structure, which a qt user could then use to organize his project in a cross platform fashion... Perhaps with the ability to contain compiled binaries for a number of operating systems.
I find it terribly annoying that Qt goes a long way toward cross-platform, yet it stops one step short...