Unknown module in QT: Charts
-
Good day All,
I am a beginner programmer, especially in QT, and I was following some tutorials online for making charts.
I have downloaded an SDK which contains a certain QT version and have been playing around with it. Ultimately, I wanted to create a line graph where I would be able to place markers/nodes and read the data in that coordinate.
In order to use QLineSeries, QChart and QChartView I had to add QT += charts in the .pro file. However after running qmake, I get the following error:
Project ERROR: Unknown module(s) in QT: charts
make: *** [Makefile] Error 3The Qt version is : version 5.6.1 on an Linux Ubuntu 14.04 Operating System.
I am assuming that the "charts" aren't installed. I used bitbake on Yocto to install the tools for the current AM437x Board I am using.
Is there a way to remedy this? or should I just draw the graph using QPainter and other tools?
Thank you.
Kind regards,
Shoaib -
@Shoaib-Muhammad Looks like you did not install Qt charts. If you're using Qt provided by Ubuntu then install libqt5charts5 package. If you're using Qt online installer then run it again and select "Qt Charts" for the Qt version you installed.
Just realised "I used bitbake on Yocto to install the tools for the current AM437x Board I am using" - then you need to check what you need to install using Yocto to get Qt Charts.
-
@Shoaib-Muhammad said in Unknown module in QT: Charts:
The Qt version is : version 5.6.1
QtCharts was only available in Qt Commercial packages in that version. First open source release was with Qt 5.7.
Keep in mind that QtCharts license is GPLv3 so you will have to make your whole application available under GPLv3 as well (or get the commercial license).
-
Hi,
Thank you both for the reply.@jsulm said in Unknown module in QT: Charts:
@Shoaib-Muhammad Looks like you did not install Qt charts. If you're using Qt provided by Ubuntu then install libqt5charts5 package. If you're using Qt online installer then run it again and select "Qt Charts" for the Qt version you installed.
Just realised "I used bitbake on Yocto to install the tools for the current AM437x Board I am using" - then you need to check what you need to install using Yocto to get Qt Charts.
I'll see what I can do with the installation. I have read a few forum posts about it and it seems I need to edit the bitbake recipe to include QT Charts. If anyone knows the exact steps please do reply. It gets confusing to take different answers from different places and do trial and error on which one works (as I have spent a month to just make QT compile on this jurassic board).
If I go with this approach, I have to install the QTCharts on the target as well, which I have no idea how to do.@sierdzio said in Unknown module in QT: Charts:
@Shoaib-Muhammad said in Unknown module in QT: Charts:
The Qt version is : version 5.6.1
QtCharts was only available in Qt Commercial packages in that version. First open source release was with Qt 5.7.
Keep in mind that QtCharts license is GPLv3 so you will have to make your whole application available under GPLv3 as well (or get the commercial license).
I'll keep that in mind, thank you.
I will reply to this thread once I find a solution.
Kind regards,
Shoaib