Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Project ERROR: Unknown module(s) in QT: charts

I am building a QT app using QTwidgets to run in a RaspberyPi3 with an image inside the SDcard built with buildroot. I suppose that charts are supported since they are based in QtWidgets and widgets are supported.

My problem is, when i integrate Charts in my project and run the project in the computer, there is no problem, however when I try to deploy this to the Raspberry the files and libraries are not included and errors show up.

In my .pro file I have: QT += charts

But this gives the following error:

error: Unknown module(s) in QT: charts

However, if I remove this, some errors come saying that the libraries are not found:

QtCharts/QChartGlobal: No such file or directory

I think that my problem is just not giving to the project the directories of the libraries or plugins in the raspberry sd card. Can anyone help me? If more information is needed just ask I will try to answer as fast as possible.

like image 308
André Alves Avatar asked Feb 09 '18 17:02

André Alves


2 Answers

On Ubuntu 18.04, installing libqt5charts5-dev (as suggested by eyllanesc) using Synaptic Package Manager solved my issue. Version: Qt Creator 4.5.2 based on Qt 5.9.5.

like image 167
nae9on Avatar answered Oct 19 '22 03:10

nae9on


You will need to enable the qt5charts package, which has recently been added to Buildroot. It is included in our 2018.02-rc1 release candidate from earlier this week:

http://git.buildroot.net/buildroot/tree/package/qt5/qt5charts

like image 6
Peter Korsgaard Avatar answered Oct 19 '22 04:10

Peter Korsgaard