问题
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.
回答1:
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
回答2:
So, I solved this problem with the answer from Peter Korsgaard. Bassicly I removed my old bluetooth version, installed the new version which supports QtCharts ( https://buildroot.org/downloads/buildroot-2018.02-rc1.tar.gz ), and now my application is running. Problems found: Had the change the content of my cmdline.txt and config.txt because they were making the new version crash in boot and give "Kernel Panic". I just used the default cmdline.txt and config.txt generated by make, and now its running.
来源:https://stackoverflow.com/questions/48710908/project-error-unknown-modules-in-qt-charts