QCustomPlot Discussion and Comments

core.h: no such file or directoryReturn to overview

Hello! I wanted to try out your graph solution and tried to import it into a fresh solution (Qt Creator 4.14.2, Qt 5.15.2) and it shows the following error:

D:\QT projects\Labs\TestQCustomPlot\build-untitled-Desktop_Qt_6_0_1_MinGW_64_bit-Debug\debug\moc_qcustomplot.cpp:13: error: core.h: No such file or directory
debug\moc_qcustomplot.cpp:13:10: fatal error: core.h: No such file or directory
#include "core.h"
^~~~~~~~

Could you please advice anything?

The same question...

Hi,

you say you use Qt5.15, but your shadow build directory sounds more like Qt6.0.1?
are you using the qcustomplot.cpp/.h from release 2.1.0?

In your qcustomplot.h, does it fix the problem if you remove the lines 647-649 containing

#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
  Q_MOC_INCLUDE("core.h") // ...
#endif
 

//EDIT: I believe there was a small problem with the packaging script, and it didn't clear out those lines above from the final amalgamated sources as it should have. This is now fixed and the working packages are updated in the download section (https://www.qcustomplot.com/release/2.1.0fixed/QCustomPlot-source.tar.gz). There was no patch version change since the code base didn't change, it was just a broken packaging script. Sorry for the inconvenience and thanks for bringing it up!