how to resolve the error related to qwt/qwt_thermo.h ?
-
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 ?
-
@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
-
@Christian-Ehrlicher from where i can find the build system ?
-
@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.
-
@Christian-Ehrlicher i am using linux os. on that i made qt c++ project.
-
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.
-
@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 -
Don't use relative paths, esp. when the library is installed in the standard locations.
-
@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/designerbut 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 -
@Qt-embedded-developer i have resolved this issue after proper way installing qwt in system. and after adding proper .h file.
-
@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.