Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Unknown module in QT: Charts
Forum Updated to NodeBB v4.3 + New Features

Unknown module in QT: Charts

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 3 Posters 2.9k Views 2 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.
  • S Offline
    S Offline
    Shoaib Muhammad
    wrote on last edited by
    #1

    Good day All,

    I am a beginner programmer, especially in QT, and I was following some tutorials online for making charts.

    I have downloaded an SDK which contains a certain QT version and have been playing around with it. Ultimately, I wanted to create a line graph where I would be able to place markers/nodes and read the data in that coordinate.

    In order to use QLineSeries, QChart and QChartView I had to add QT += charts in the .pro file. However after running qmake, I get the following error:

    Project ERROR: Unknown module(s) in QT: charts
    make: *** [Makefile] Error 3

    The Qt version is : version 5.6.1 on an Linux Ubuntu 14.04 Operating System.

    I am assuming that the "charts" aren't installed. I used bitbake on Yocto to install the tools for the current AM437x Board I am using.

    Is there a way to remedy this? or should I just draw the graph using QPainter and other tools?

    Thank you.

    Kind regards,
    Shoaib

    jsulmJ sierdzioS 2 Replies Last reply
    0
    • S Shoaib Muhammad

      Good day All,

      I am a beginner programmer, especially in QT, and I was following some tutorials online for making charts.

      I have downloaded an SDK which contains a certain QT version and have been playing around with it. Ultimately, I wanted to create a line graph where I would be able to place markers/nodes and read the data in that coordinate.

      In order to use QLineSeries, QChart and QChartView I had to add QT += charts in the .pro file. However after running qmake, I get the following error:

      Project ERROR: Unknown module(s) in QT: charts
      make: *** [Makefile] Error 3

      The Qt version is : version 5.6.1 on an Linux Ubuntu 14.04 Operating System.

      I am assuming that the "charts" aren't installed. I used bitbake on Yocto to install the tools for the current AM437x Board I am using.

      Is there a way to remedy this? or should I just draw the graph using QPainter and other tools?

      Thank you.

      Kind regards,
      Shoaib

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by jsulm
      #2

      @Shoaib-Muhammad Looks like you did not install Qt charts. If you're using Qt provided by Ubuntu then install libqt5charts5 package. If you're using Qt online installer then run it again and select "Qt Charts" for the Qt version you installed.

      Just realised "I used bitbake on Yocto to install the tools for the current AM437x Board I am using" - then you need to check what you need to install using Yocto to get Qt Charts.

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

      S 1 Reply Last reply
      5
      • S Shoaib Muhammad

        Good day All,

        I am a beginner programmer, especially in QT, and I was following some tutorials online for making charts.

        I have downloaded an SDK which contains a certain QT version and have been playing around with it. Ultimately, I wanted to create a line graph where I would be able to place markers/nodes and read the data in that coordinate.

        In order to use QLineSeries, QChart and QChartView I had to add QT += charts in the .pro file. However after running qmake, I get the following error:

        Project ERROR: Unknown module(s) in QT: charts
        make: *** [Makefile] Error 3

        The Qt version is : version 5.6.1 on an Linux Ubuntu 14.04 Operating System.

        I am assuming that the "charts" aren't installed. I used bitbake on Yocto to install the tools for the current AM437x Board I am using.

        Is there a way to remedy this? or should I just draw the graph using QPainter and other tools?

        Thank you.

        Kind regards,
        Shoaib

        sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #3

        @Shoaib-Muhammad said in Unknown module in QT: Charts:

        The Qt version is : version 5.6.1

        QtCharts was only available in Qt Commercial packages in that version. First open source release was with Qt 5.7.

        Keep in mind that QtCharts license is GPLv3 so you will have to make your whole application available under GPLv3 as well (or get the commercial license).

        (Z(:^

        1 Reply Last reply
        5
        • jsulmJ jsulm

          @Shoaib-Muhammad Looks like you did not install Qt charts. If you're using Qt provided by Ubuntu then install libqt5charts5 package. If you're using Qt online installer then run it again and select "Qt Charts" for the Qt version you installed.

          Just realised "I used bitbake on Yocto to install the tools for the current AM437x Board I am using" - then you need to check what you need to install using Yocto to get Qt Charts.

          S Offline
          S Offline
          Shoaib Muhammad
          wrote on last edited by
          #4

          Hi,
          Thank you both for the reply.

          @jsulm said in Unknown module in QT: Charts:

          @Shoaib-Muhammad Looks like you did not install Qt charts. If you're using Qt provided by Ubuntu then install libqt5charts5 package. If you're using Qt online installer then run it again and select "Qt Charts" for the Qt version you installed.

          Just realised "I used bitbake on Yocto to install the tools for the current AM437x Board I am using" - then you need to check what you need to install using Yocto to get Qt Charts.

          I'll see what I can do with the installation. I have read a few forum posts about it and it seems I need to edit the bitbake recipe to include QT Charts. If anyone knows the exact steps please do reply. It gets confusing to take different answers from different places and do trial and error on which one works (as I have spent a month to just make QT compile on this jurassic board).
          If I go with this approach, I have to install the QTCharts on the target as well, which I have no idea how to do.

          @sierdzio said in Unknown module in QT: Charts:

          @Shoaib-Muhammad said in Unknown module in QT: Charts:

          The Qt version is : version 5.6.1

          QtCharts was only available in Qt Commercial packages in that version. First open source release was with Qt 5.7.

          Keep in mind that QtCharts license is GPLv3 so you will have to make your whole application available under GPLv3 as well (or get the commercial license).

          I'll keep that in mind, thank you.

          I will reply to this thread once I find a solution.

          Kind regards,
          Shoaib

          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