3

我正在尝试使用 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 项目的工作示例。

4

0 回答 0