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. QT Source code compile Error
Qt 6.11 is out! See what's new in the release blog

QT Source code compile Error

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 3 Posters 2.2k 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.
  • V Offline
    V Offline
    vivekyuvan
    wrote on last edited by vivekyuvan
    #1

    Dear friends

    I am trying to compile my QT4.8.6 Source code in raspberry pi jessie.

    I got an error like this

    mainwindow.cpp:972:25: error: ‘class QwtDial’ has no member named ‘setRange’
         Settings_FOOTPEDAL->setRange(Sett_FP_Xaxis_CALIBER,Sett_FP_Yaxis_CALIBER,1,1);
    

    my source code compiled successfully in wheezy os qt version is same.
    I think the error occurs on qwt lib. I don have an idea how to fix it.

    The error occured after changed my header file

    l

    //#include </usr/include/qwt/qwt_dial.h>
    //#include </usr/include/qwt/qwt_dial_needle.h>
    #include </usr/local/qwt-6.1.0/include/qwt_dial.h>
    #include </usr/local/qwt-6.1.0/include/qwt_dial_needle.h>
    

    Please help me to fix this problem

    Regards

    Vivek R

    jsulmJ JKSHJ 2 Replies Last reply
    0
    • V vivekyuvan

      Dear friends

      I am trying to compile my QT4.8.6 Source code in raspberry pi jessie.

      I got an error like this

      mainwindow.cpp:972:25: error: ‘class QwtDial’ has no member named ‘setRange’
           Settings_FOOTPEDAL->setRange(Sett_FP_Xaxis_CALIBER,Sett_FP_Yaxis_CALIBER,1,1);
      

      my source code compiled successfully in wheezy os qt version is same.
      I think the error occurs on qwt lib. I don have an idea how to fix it.

      The error occured after changed my header file

      l

      //#include </usr/include/qwt/qwt_dial.h>
      //#include </usr/include/qwt/qwt_dial_needle.h>
      #include </usr/local/qwt-6.1.0/include/qwt_dial.h>
      #include </usr/local/qwt-6.1.0/include/qwt_dial_needle.h>
      

      Please help me to fix this problem

      Regards

      Vivek R

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

      @vivekyuvan I guess you used a different Qwt version?
      Can you check what Qwt version you have in wheezy and on RaspberryPi?

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

      1 Reply Last reply
      3
      • V vivekyuvan

        Dear friends

        I am trying to compile my QT4.8.6 Source code in raspberry pi jessie.

        I got an error like this

        mainwindow.cpp:972:25: error: ‘class QwtDial’ has no member named ‘setRange’
             Settings_FOOTPEDAL->setRange(Sett_FP_Xaxis_CALIBER,Sett_FP_Yaxis_CALIBER,1,1);
        

        my source code compiled successfully in wheezy os qt version is same.
        I think the error occurs on qwt lib. I don have an idea how to fix it.

        The error occured after changed my header file

        l

        //#include </usr/include/qwt/qwt_dial.h>
        //#include </usr/include/qwt/qwt_dial_needle.h>
        #include </usr/local/qwt-6.1.0/include/qwt_dial.h>
        #include </usr/local/qwt-6.1.0/include/qwt_dial_needle.h>
        

        Please help me to fix this problem

        Regards

        Vivek R

        JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on last edited by
        #3

        @vivekyuvan said in QT Source code compile Error:

        mainwindow.cpp:972:25: error: ‘class QwtDial’ has no member named ‘setRange’
        

        ...

        #include </usr/local/qwt-6.1.0/include/qwt_dial.h>

        QwtDial::setRange() was removed in Qwt 6.1.

        Your project needs Qwt 6.0. It is not compatible with Qwt 6.1

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply
        3

        • Login

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