qmake .pro file could not be parsed

蹲街弑〆低调 提交于 2019-12-10 14:49:00

问题


I'm running OS X Mavericks and trying to convert a Qt4 application to Qt5. I've also never compiled the application on this machine before. I have Qt 5.1.* installed on this machine, which parses the file just fine. As soon as I switch over to my Qt 5.2.0 kit and look at the run settings, underneath my "Run configuration" there's a warning: "The .pro file '.pro' could not be parsed.".

I've looked at other solutions on SO and the qt-project website -- none of which have helped. My Qt 5.2.0 kit is a manually-added kit since I installed it using Homebrew.

Here is a screenshot of my settings:

Note that if I run qmake (/usr/local/opt/qt5/bin/qmake) in the project directory, no errors are output.

Here is my .pro file:

QT       += core widgets concurrent

TARGET = Up
TEMPLATE = app
CONFIG += c++11

SOURCES += main.cpp\
        MainForm.cpp \
    AboutForm.cpp \
    progressdialog.cpp

HEADERS  += MainForm.h \
    AboutForm.h \
    progressdialog.h

FORMS    += MainForm.ui \
    AboutForm.ui \
    progressdialog.ui

INCLUDEPATH += $$PWD/../FATX/FATX

RESOURCES += \
    MainForm.qrc

CONFIG(debug, debug|release) {
    macx: LIBS += -L$$PWD/../FATX-BUILD-OSX/debug/ -lFATX

    INCLUDEPATH += $$PWD/../FATX-BUILD-OSX/debug
    DEPENDPATH += $$PWD/../FATX-BUILD-OSX/debug

    macx: PRE_TARGETDEPS += $$PWD/../FATX-BUILD-OSX/debug/libFATX.a
} else {
    macx: LIBS += -L$$PWD/../FATX-OSX/release/ -lFATX

    INCLUDEPATH += $$PWD/../FATX-BUILD-OSX/release
    DEPENDPATH += $$PWD/../FATX-BUILD-OSX/release

    macx: PRE_TARGETDEPS += $$PWD/../FATX-OSX/release/libFATX.a
}

cache()

回答1:


The solution was to update Qt Creator to Qt 3.0.0.



来源:https://stackoverflow.com/questions/21209676/qmake-pro-file-could-not-be-parsed

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!