Newbie unable to build / install Qt Charts.
-
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 hope I am asking in the right place; this is my first time working with Qt.
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 tried one of the examples and it works.
I then 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". There is no "private" directory.
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/qtchart...ev/Updates.xml - server replied: Not Found".
Any help would be greatly appreciated.
-
"I then added the path to its version of qmake to the front of my path variable" - you should not do that!
Just provide the whole path to qmake when you call it."I did not use the maintenance tool because I had to tell it which repository to use" - why do you have to tell it which repository to use?
-
try this submodule package.
http://download.qt.io/development_releases/qt/5.7/5.7.0-alpha/