Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Newbie unable to build / install Qt Charts.
Qt 6.11 is out! See what's new in the release blog

Newbie unable to build / install Qt Charts.

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 4.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • csp256C Offline
    csp256C Offline
    csp256
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      "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?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • csp256C Offline
        csp256C Offline
        csp256
        wrote on last edited by
        #3

        Same result when I specify the entire path to Qt5.6's qmake.

        Selecting either "add or remove components" or "update components" from the MaintenanceTool says "At least one valid and enabled repository is required for this action to proceed."

        1 Reply Last reply
        0
        • yusaY Offline
          yusaY Offline
          yusa
          wrote on last edited by
          #4

          try this submodule package.
          http://download.qt.io/development_releases/qt/5.7/5.7.0-alpha/

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved