Fixed compile bug on MAC

This commit is contained in:
Matthias Jung
2017-02-25 13:01:12 +01:00
parent 4244fb8c60
commit 3e7be862f2

View File

@@ -40,18 +40,6 @@ unix:!macx {
macx: {
message(Building on a MAC)
# Python library and header files
python_home = $$(PYTHON_HOME)
isEmpty(python_home) {
python_home = /usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/
}
message(Python home is $${python_home})
python_headers = $$(PYTHON_HEADERS)
isEmpty(python_headers) {
python_headers = /usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/Headers/
}
message(Getting python headers from $${python_headers})
CONFIG += c++11
QMAKE_CXXFLAGS += -std=c++0x -stdlib=libc++
@@ -61,12 +49,8 @@ macx: {
INCLUDEPATH += $$(LIBQWT_HEADERS)
DEPENDPATH += $$replace(LIBQWT_HOME, lib, )
#DEPENDPATH += $$(python_headers)
INCLUDEPATH += $$(python_headers)
LIBS += -L$$(python_home) -lpython3.6
#INCLUDEPATH += /usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/Headers/
#LIBS += -L/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/ -lpython3.6
INCLUDEPATH += /usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/Headers/
LIBS += -L/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/ -lpython3.6
CONFIG-=app_bundle
}