项目错误:QT中的未知模块:图表 [英] Project ERROR: Unknown module(s) in QT: charts

查看:282
本文介绍了项目错误:QT中的未知模块:图表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用QTwidgets构建一个QT应用程序,使其在RaspberyPi3中运行,并且其中的图像由buildroot构建。
我想图表是受支持的,因为它们基于QtWidgets并且受支持。



我的问题是,当我将Charts集成到项目中并运行项目,但是没有问题,但是当我尝试将其部署到Raspberry时,文件和库未包含在内,并且显示错误。



在我的。我拥有的专业文件:
QT + =图表



但这会出现以下错误:


错误:QT中的未知模块:图表


但是,如果我删除此错误,则会出现一些错误会说没有找到这些库:


QtCharts / QChartGlobal:没有这样的文件或目录


谁能帮助我?
如果需要更多信息,请问我将尝试尽快回答。

解决方案

您将需要启用qt5charts软件包,该软件包最近已添加到Buildroot中。它包含在本周早些时候的2018.02-rc1版本候选版本中:



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


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.

解决方案

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

这篇关于项目错误:QT中的未知模块:图表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆