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. how to resolve the error related to qwt/qwt_thermo.h ?

how to resolve the error related to qwt/qwt_thermo.h ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
12 Posts 4 Posters 1.1k 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.
  • Q Offline
    Q Offline
    Qt embedded developer
    wrote on last edited by
    #1

    when i am building the code i am facing the below error on linux.

    /home/a.h:7: error: qwt/qwt_thermo.h: No such file or directory 7 | #include <qwt/qwt_thermo.h> | ^~~~~~~~~~~~~~~~~~

    i want to know solution of it ?

    from where i can find that solution ?

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Qt-embedded-developer said in how to resolve the error related to qwt/qwt_thermo.h ?:

      i want to know solution of it ?

      Add the proper include path - since you did not say what build system you use I can't tell you how. See https://doc.qt.io/qt-5/qmake-variable-reference.html#includepath or https://cmake.org/cmake/help/latest/command/target_include_directories.html

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      Q 1 Reply Last reply
      0
      • Christian EhrlicherC Christian Ehrlicher

        @Qt-embedded-developer said in how to resolve the error related to qwt/qwt_thermo.h ?:

        i want to know solution of it ?

        Add the proper include path - since you did not say what build system you use I can't tell you how. See https://doc.qt.io/qt-5/qmake-variable-reference.html#includepath or https://cmake.org/cmake/help/latest/command/target_include_directories.html

        Q Offline
        Q Offline
        Qt embedded developer
        wrote on last edited by
        #3

        @Christian-Ehrlicher from where i can find the build system ?

        Christian EhrlicherC 1 Reply Last reply
        0
        • Q Qt embedded developer

          @Christian-Ehrlicher from where i can find the build system ?

          Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Qt-embedded-developer said in how to resolve the error related to qwt/qwt_thermo.h ?:

          from where i can find the build system ?

          Sorry - what?

          You are trying to build a program so you should also know which build system you're using.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          Q 2 Replies Last reply
          0
          • Christian EhrlicherC Christian Ehrlicher

            @Qt-embedded-developer said in how to resolve the error related to qwt/qwt_thermo.h ?:

            from where i can find the build system ?

            Sorry - what?

            You are trying to build a program so you should also know which build system you're using.

            Q Offline
            Q Offline
            Qt embedded developer
            wrote on last edited by Qt embedded developer
            #5

            @Christian-Ehrlicher i am using linux os. on that i made qt c++ project.

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

              Hi,

              The question then is: are you using qmake or cmake to manage your project ?

              @Christian-Ehrlicher provided links for each of these build system.

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

              Q 1 Reply Last reply
              0
              • SGaistS SGaist

                Hi,

                The question then is: are you using qmake or cmake to manage your project ?

                @Christian-Ehrlicher provided links for each of these build system.

                Q Offline
                Q Offline
                Qt embedded developer
                wrote on last edited by
                #7

                @SGaist no i am directly build this project from qtcreator.

                i have just copied this project from one pc to another.

                but i don't know why this error come ?

                jsulmJ 1 Reply Last reply
                0
                • Christian EhrlicherC Christian Ehrlicher

                  @Qt-embedded-developer said in how to resolve the error related to qwt/qwt_thermo.h ?:

                  from where i can find the build system ?

                  Sorry - what?

                  You are trying to build a program so you should also know which build system you're using.

                  Q Offline
                  Q Offline
                  Qt embedded developer
                  wrote on last edited by
                  #8

                  @Christian-Ehrlicher i have included needed dependencies in file also like below:

                  in .pro file

                  unix:!macx: LIBS += -L$$PWD/../../../../../../usr/local/qwt-6.2.0/lib/ -lqwt

                  INCLUDEPATH += $$PWD/../../../../../../usr/local/qwt-6.2.0/include
                  DEPENDPATH += $$PWD/../../../../../../usr/local/qwt-6.2.0/include

                  1 Reply Last reply
                  0
                  • Christian EhrlicherC Offline
                    Christian EhrlicherC Offline
                    Christian Ehrlicher
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Don't use relative paths, esp. when the library is installed in the standard locations.

                    Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                    Visit the Qt Academy at https://academy.qt.io/catalog

                    Q 1 Reply Last reply
                    1
                    • Christian EhrlicherC Christian Ehrlicher

                      Don't use relative paths, esp. when the library is installed in the standard locations.

                      Q Offline
                      Q Offline
                      Qt embedded developer
                      wrote on last edited by
                      #10

                      @Christian-Ehrlicher actually what i need to do come out from this problem

                      because i have seen that i have to perform below step after installing it.

                      cd ~/qwt-6.0/designer/plugins/designer

                      (check the contents with ls "the list command")

                      12a
                      Note that so "system object" is the linux equivalent of a dll in a windows OS

                      //====This is the code expressed in the youtube video
                      sudo cp libqwt_designer_plugin.so /opt/qtcreator-2.1.81/bin/designer/

                      //=====My equivalent
                      sudo cp libqwt_designer_plugin.so /usr/local/qwt-6.0.2-svn/plugins/designer

                      but actually i does not have plugin directory

                      mangal@ubuntu:~/Downloads/qwt-6.2.0/designer$ ls
                      designer.pro pixmaps qwt_designer_plugin.qrc
                      Makefile qwt_designer_plugin.cpp

                      Q 1 Reply Last reply
                      0
                      • Q Qt embedded developer

                        @Christian-Ehrlicher actually what i need to do come out from this problem

                        because i have seen that i have to perform below step after installing it.

                        cd ~/qwt-6.0/designer/plugins/designer

                        (check the contents with ls "the list command")

                        12a
                        Note that so "system object" is the linux equivalent of a dll in a windows OS

                        //====This is the code expressed in the youtube video
                        sudo cp libqwt_designer_plugin.so /opt/qtcreator-2.1.81/bin/designer/

                        //=====My equivalent
                        sudo cp libqwt_designer_plugin.so /usr/local/qwt-6.0.2-svn/plugins/designer

                        but actually i does not have plugin directory

                        mangal@ubuntu:~/Downloads/qwt-6.2.0/designer$ ls
                        designer.pro pixmaps qwt_designer_plugin.qrc
                        Makefile qwt_designer_plugin.cpp

                        Q Offline
                        Q Offline
                        Qt embedded developer
                        wrote on last edited by
                        #11

                        @Qt-embedded-developer i have resolved this issue after proper way installing qwt in system. and after adding proper .h file.

                        1 Reply Last reply
                        0
                        • Q Qt embedded developer

                          @SGaist no i am directly build this project from qtcreator.

                          i have just copied this project from one pc to another.

                          but i don't know why this error come ?

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

                          @Qt-embedded-developer said in how to resolve the error related to qwt/qwt_thermo.h ?:

                          no i am directly build this project from qtcreator.

                          QtCreator also uses a build system to build your project. It supports CMake and Qmake.
                          If you have *.pro files then you're using Qmake.

                          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