Unsolved No rule to make target 'QtCharts/QChartView>', needed by 'ui_xxxxxxxx.h'. Stop.
-
Hello,
I'm working with Qt 5.12.5 and add the plugin QtCharts::QChartView in Qt Designer. But when I compile project, the error below appear:
:-1: error: No rule to make target 'QtCharts/QChartView>', needed by 'ui_display.h'. Stop.
It seems like qt cannot compile module QtCharts/QChartView. Any suggestion?
I already
- installed Qt Charts and Qt Data Visualization by using Qt Maintainer
- add
QT += charts
in .pro file
-
Could you share some screenshots of how the plugin is configured in Qt Designer and the properties of the widget in Qt Designer.
-
@lala74 said in No rule to make target 'QtCharts/QChartView>', needed by 'ui_xxxxxxxx.h'. Stop.:
add QT += charts in .pro file
Just a guess on my part - missing include header .
would checking the "include " hierarchy shed some light on the cryptic error ?
Or is it even possible if the app does not compile in first place ? -
@Jonas-Kvinge
This is the plugin in Qt Designer:
I don't know how to display the configuration of the plugin.
-
@lala74 said in No rule to make target 'QtCharts/QChartView>', needed by 'ui_xxxxxxxx.h'. Stop.:
:-1: error: No rule to make target 'QtCharts/QChartView>', needed by 'ui_display.h'. Stop.
If this is really the output (including the >) then this hints towards a bug in either uic or qmake. Please file a bug report at bugreports.qt.io, including preferably the generated
Makefile
that you can find in the build directory.