PDA

View Full Version : Difficulties installing Qt Charts on Linux



csp256
20th March 2016, 22:57
I am using Ubuntu 15.10. I wanted to make live plots of some data my C++ program is outputting, and was recommended to use Qt Charts. It has not been cooperative thus far.

I had Qt 5.4 installed from an unknown source (I recently reformatted, so I have no clue where it was from). Before I realized this I experienced several problems. I then uninstalled it, then installed Qt 5.6 from offline binary installer. I added the path to its version of qmake to the front of my path variable.

I downloaded the dev branch of Qt Charts from its github page and put it in an arbitrary directory.

https://github.com/qtproject/qtcharts/tree/dev

I run qmake in that directory, and then make. It fails with "chartdataset.cpp:30:36: fatal error: private/chartdataset_p.h: No such file or directory".

The only copy of "chartdataset_p.h" anywhere on my system is "/qtcharts-dev/src/charts/chartdataset_p.h".

These are the exact commands suggested by the QtCharts getting started guide: http://doc.qt.io/QtCharts/qtcharts-getting-started.html

The only difference is that I pulled from github instead of installing directly from the Maintenance Tool. I did not use the maintenance tool because I had to tell it which repository to use, and when I did so and tested it, I got "Error downloading https://github.com/qtproject/qtcharts/tree/dev/Updates.xml - server replied: Not Found".

Any help would be greatly appreciated.

ChrisW67
23rd March 2016, 20:47
It is possible that the dev branch of Qt Charts is currently broken, or just broken with Qt 5.6. Have you tried using the 5.6 branch?

k2ksk2k
12th June 2016, 04:23
Try to use "git clone https://github.com/qtproject/qtcharts.git" instead of downloading the zip file.