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

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

问题描述

我正在使用 QTwidgets 构建一个 QT 应用程序,以在 RaspberyPi3 中运行,并在使用 buildroot 构建的 SD 卡中包含一个图像.我认为图表是受支持的,因为它们基于 QtWidgets 并且支持小部件.

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.

我的问题是,当我将 Charts 集成到我的项目中并在计算机中运行项目时,没有问题,但是当我尝试将其部署到 Raspberry 时,文件和库不包括在内并且出现错误.

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.

在我的 .pro 文件中,我有:QT += 图表

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

但这会产生以下错误:

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

error: Unknown module(s) in QT: charts

但是,如果我删除它,就会出现一些错误,提示找不到库:

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

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

QtCharts/QChartGlobal: No such file or directory

我认为我的问题只是没有为项目提供树莓 sd 卡中的库或插件的目录.谁能帮我?如果需要更多信息,请询问,我会尽快回复.

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.

推荐答案

您需要启用最近添加到 Buildroot 中的 qt5charts 包.它包含在本周早些时候的 2018.02-rc1 候选版本中:

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天全站免登陆