如何使用Qbs与Qt Creator构建Qt应用程序?

时间:2014-09-19 14:43:00

标签: qt qt-creator qbs

我正在尝试使用Qt Creator构建基于qbs的Qt应用程序,我收到以下错误:

 cannot find -lC:/SDKs/Qt/5.3/mingw482_32/lib/Qt5Cored
 cannot find -lC:/SDKs/Qt/5.3/mingw482_32/lib/Qt5Guid
 cannot find -lC:/SDKs/Qt/5.3/mingw482_32/lib/Qt5Widgetsd

这是我的Qbs项目:

import qbs

Product {
    type: "application" // To suppress bundle generation on Mac
    name: "test_ResourceFileManager"

    Depends { name: "cpp" }
    cpp.cppFlags: "-std=c++11"

    Depends {
        name: "Qt";
        submodules: ["core", "gui", "widgets"]
    }

    files: [
        "src/main.cpp",
        "src/forms/mainwindow.h",
        "src/forms/mainwindow.cpp",
        "src/forms/mainwindow.ui"
    ]

    Group {     // Properties for the produced executable
        fileTagsFilter: product.type
        qbs.install: true
    }
}

我无法在任何地方找到如何为Qt应用程序编写正确的Qbs项目的工作示例。

0 个答案:

没有答案