intel / thermal_daemon

Thermal daemon for IA
GNU General Public License v2.0
539 stars 117 forks source link

2.4.9: tools/thermal_monitor build fails because missimg `qcustomplot.h` #352

Closed kloczek closed 1 month ago

kloczek commented 2 years ago

qmake passes without any issues

+ cd ools/thermal_monitor
+ /usr/bin/qmake -o x86_64-redhat-linux-gnu/ 'QMAKE_AR=/usr/bin/gcc-ar cqs' QMAKE_CC=/usr/bin/gcc 'QMAKE_CFLAGS_DEBUG=-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none' 'QMAKE_CFLAGS_RELEASE=-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none' QMAKE_CXX=/usr/bin/g++ 'QMAKE_CXXFLAGS_DEBUG=-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -fno-rtti' 'QMAKE_CXXFLAGS_RELEASE=-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -fno-rtti' 'QMAKE_LFLAGS_DEBUG=-Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1' 'QMAKE_LFLAGS_RELEASE=-Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1' QMAKE_RANLIB=/usr/bin/gcc-ranlib QMAKE_STRIP=
Info: creating stash file /home/tkloczko/rpmbuild/BUILD/thermal_daemon-2.4.9/tools/thermal_monitor/x86_64-redhat-linux-gnu/.qmake.stash

However build fails

+ /usr/bin/make -O -j1 V=1 VERBOSE=1 -C x86_64-redhat-linux-gnu
make: Entering directory '/home/tkloczko/rpmbuild/BUILD/thermal_daemon-2.4.9/tools/thermal_monitor/x86_64-redhat-linux-gnu'
/usr/bin/uic ../pollingdialog.ui -o ui_pollingdialog.h
/usr/bin/uic ../logdialog.ui -o ui_logdialog.h
/usr/bin/uic ../tripsdialog.ui -o ui_tripsdialog.h
/usr/bin/g++ -c -pipe -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -fno-rtti -Wall -Wextra -D_REENTRANT -fPIC -DQT_NO_DEBUG_OUTPUT -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I../../thermal_monitor -I. -I/usr/include/qt5 -I/usr/include/qt5/QtPrintSupport -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtDBus -I/usr/include/qt5/QtCore -I. -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o main.o ../main.cpp
In file included from ../main.cpp:17:
../mainwindow.h:22:10: fatal error: qcustomplot.h: No such file or directory
   22 | #include <qcustomplot.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:452: main.o] Error 1
make: Leaving directory '/home/tkloczko/rpmbuild/BUILD/thermal_daemon-2.4.9/tools/thermal_monitor/x86_64-redhat-linux-gnu'
kloczek commented 2 years ago

Just in case I'm using qt5-qtbase 1.5.4.

dscottboggs commented 2 years ago

I also encountered this issue.

$ qmake-qt5 --version
QMake version 3.1
Using Qt version 5.15.4 in /usr/lib
$ thermald --version
2.4.9

I realize this may not help you as a redhat system, but installing qcustomplot resolved the issue for me.