How to add a compiled module to qbs

18 Views Asked by At
  1. There is a Linux machine on which cross-compilation for Raspberry Pi is configured.

  2. At some point it was necessary to add the Qt.charts module

  3. The module is compiled and the project using qmake sees it perfectly and everything works as expected.

  4. 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"
  ]
}
1

There are 1 best solutions below

2
Christian Kandeler On

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.