I am trying to build a qbs-based Qt application with Qt Creator and I get the following errors:
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
This is my Qbs project:
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
}
}
I cannot find anywhere a working example of how to write a proper Qbs project for a Qt application.