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. No rule to make target 'QtCharts/QChartView>', needed by 'ui_xxxxxxxx.h'. Stop.

No rule to make target 'QtCharts/QChartView>', needed by 'ui_xxxxxxxx.h'. Stop.

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 527 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.
  • L Offline
    L Offline
    lala74
    wrote on last edited by lala74
    #1

    Hello,

    I'm working with Qt 5.12.5 and add the plugin QtCharts::QChartView in Qt Designer. But when I compile project, the error below appear:

    :-1: error: No rule to make target 'QtCharts/QChartView>', needed by 'ui_display.h'.  Stop.
    

    It seems like qt cannot compile module QtCharts/QChartView. Any suggestion?

    I already

    • installed Qt Charts and Qt Data Visualization by using Qt Maintainer
    • add QT += charts in .pro file
    1 Reply Last reply
    0
    • Jonas KvingeJ Offline
      Jonas KvingeJ Offline
      Jonas Kvinge
      wrote on last edited by
      #2

      Could you share some screenshots of how the plugin is configured in Qt Designer and the properties of the widget in Qt Designer.

      L 1 Reply Last reply
      0
      • A Offline
        A Offline
        Anonymous_Banned275
        wrote on last edited by
        #3

        @lala74 said in No rule to make target 'QtCharts/QChartView>', needed by 'ui_xxxxxxxx.h'. Stop.:

        add QT += charts in .pro file

        Just a guess on my part - missing include header .
        would checking the "include " hierarchy shed some light on the cryptic error ?
        Or is it even possible if the app does not compile in first place ?

        1 Reply Last reply
        0
        • Jonas KvingeJ Jonas Kvinge

          Could you share some screenshots of how the plugin is configured in Qt Designer and the properties of the widget in Qt Designer.

          L Offline
          L Offline
          lala74
          wrote on last edited by
          #4

          @Jonas-Kvinge
          This is the plugin in Qt Designer:
          ef0933de-8d05-47b7-b1bf-dbde8c56dd2b-image.png

          I don't know how to display the configuration of the plugin.

          1 Reply Last reply
          0
          • kkoehneK Offline
            kkoehneK Offline
            kkoehne
            Moderators
            wrote on last edited by
            #5

            @lala74 said in No rule to make target 'QtCharts/QChartView>', needed by 'ui_xxxxxxxx.h'. Stop.:

            :-1: error: No rule to make target 'QtCharts/QChartView>', needed by 'ui_display.h'. Stop.

            If this is really the output (including the >) then this hints towards a bug in either uic or qmake. Please file a bug report at bugreports.qt.io, including preferably the generated Makefile that you can find in the build directory.

            Director R&D, The Qt Company

            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