Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Cannot build Qt Charts
Forum Updated to NodeBB v4.3 + New Features

Cannot build Qt Charts

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
13 Posts 3 Posters 6.1k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi and welcome to devnet,

    Where did you get the module from ? What OS are you using ?

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MajidKamali
      wrote on last edited by
      #3

      I encountered this error too
      undefined reference to `qt_version_tag'
      When compiling a project in Qt 5.6.0 . that project also uses OpenCV.
      I use arch linux

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #4

        You should check if OpenCV has been built with Qt for the GUI. In that case you should use the version of Qt.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        M 1 Reply Last reply
        0
        • SGaistS SGaist

          You should check if OpenCV has been built with Qt for the GUI. In that case you should use the version of Qt.

          M Offline
          M Offline
          MajidKamali
          wrote on last edited by
          #5

          @SGaist OpenCV is installed with arch package manager pacman

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #6

            And Qt ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            M 1 Reply Last reply
            0
            • SGaistS SGaist

              And Qt ?

              M Offline
              M Offline
              MajidKamali
              wrote on last edited by MajidKamali
              #7

              @SGaist Qt 5.6.0 for android and linux downloaded from qt.io
              I manually added system Qt 5.5.1 which is installed via pacman into kits and the error is gone
              Maybe it's an issue with Qt 5.6

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by SGaist
                #8

                Well I'd say no it's not.

                You are trying to build an application with Qt 5.6 and link to an OpenCV that itself is linked to a Qt 5.5.1 version.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                M 1 Reply Last reply
                0
                • SGaistS SGaist

                  Well I'd say no it's not.

                  You are trying to build an application with Qt 5.6 and link to an OpenCV that itself is linked to a Qt 5.5.1 version.

                  M Offline
                  M Offline
                  MajidKamali
                  wrote on last edited by
                  #9

                  @SGaist Excuse me, I did not understand what you said :D
                  Do you mean OpenCV needs Qt?

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #10

                    One of the GUI backend of OpenCV is using Qt.

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • modprobeM Offline
                      modprobeM Offline
                      modprobe
                      wrote on last edited by modprobe
                      #11

                      @SGaist I get the same issue regardless of which branch I use from either of these two repositories:

                      • https://github.com/qtproject/qtcharts/
                      • git://code.qt.io/qt/qtcharts.git

                      This is on Arch Linux, which currently packages Qt 5.5.1 (I can build against that just fine), with issues when I build against Qt 5.6 from qt.io. There's no OpenCV in my environment. :)

                      1 Reply Last reply
                      0
                      • modprobeM Offline
                        modprobeM Offline
                        modprobe
                        wrote on last edited by modprobe
                        #12

                        I note that Arch Linux has just updated their packages to Qt 5.6.0, and now I can build Qt Charts against either the system packages or the copy installed with the qt.io installer. This suggests to me that using /path/to/non/system/qmake to configure Qt Charts does not completely ignore the copy of Qt in PATH, but does some things using system Qt and other things using the explicitly selected Qt.

                        My problem is now gone, but for future reference, should I do something else to build a project against a copy of Qt which is not in PATH rather than the one in PATH?

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #13

                          You should only need to call qmake with the full path given.

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                          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