There is a Linux machine on which cross-compilation for Raspberry Pi is configured.
At some point it was necessary to add the Qt.charts module
The module is compiled and the project using qmake sees it perfectly and everything works as expected.
However, the qbs project gives an error message
Dependency 'Qt.charts' not found for product 'cu-tempmeasurer'.
How to solve this problem?
Code from qbs file:
Depends {
name: "Qt";
submodules: [
"core",
"gui",
"network",
"serialport",
"widgets",
"printsupport",
"charts"
]
}
The modules are looked up in mkspecs//modules/ under the qt base dir. There should be a qt_lib_charts.pri file there along all the similarly named files for the other modules. If it isn't, then QtCharts is not properly installed. Also make sure that qbs picks up the right Qt installation, in case you have several on your system.