My .pro
file looks like this:
QT += core gui widgets
SOURCES += a.cpp
HEADERS += a.h
FORMS += a.ui
#Locally compiled Qt framework. Qt/out/{QtCore.framework,QtNetwork.framework..}
QMAKE_LFLAGS += -L./Qt/lib/
QMAKE_CXXFLAGS += -F./Qt/lib/
macx {
QMAKE_MAC_SDK = macosx10.9
LIBS += -framework QtCore -framework QtNetwork -framework QtGui -framework QtWidgets
}
I want to use frameworks compiled locally, but QT5.5 automatically includes framework from QT5.5.0 install directory ... I see a.cpp compiling with following include switch:
-I/Users/banana/Qt5.5.0/5.5/clang_64/lib/QtWidgets.framework/Headers
I tried resetting INCLUDEPATH =
in .pro
file in hopes that it resets the default include path and added proper INCLUDEPATH += ./Qt/lib
but it doesn't work.
Using MAC, OS X 10.10.2