CpuTemp
System Software
Score 53%
Description:

CpuTemp is a light weight cpu temparature monitor that docks into system tray.

anonymous-hive

11 years ago

I can't get this code to compile for the life of me.

I extract it, and in order for "make distclean" to respond at all I have to run qmake.

Then, i do make distclean, and make

It throws these errors:
( [ -d src ] && cd src ; grep "^qmake_all:" Makefile && make -f Makefile qmake_all; ) || true
( [ -d src ] && cd src ; make -f Makefile distclean; rm -f Makefile; ) || true
make[1]: Entering directory `/home/tim/Desktop/Downloads/cputemp/src'
make[1]: *** No rule to make target `/usr/lib/qt/mkspecs/default/qmake.conf', needed by `Makefile'. Stop.
make[1]: Leaving directory `/home/tim/Desktop/Downloads/cputemp/src'
[tim@harpster cputemp]$ make
cd src && qmake src.pro -o Makefile
cd src && make -f Makefile
make[1]: Entering directory `/home/tim/Desktop/Downloads/cputemp/src'
/usr/lib/qt-3.3/bin/uic about.ui -o about.h
g++ -c -pipe -Wall -W -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt-3.3/mkspecs/default -I. -I/opt/kde/include -I/usr/lib/qt-3.3/include -o cputemp.o cputemp.cpp
In file included from cputemp.cpp:21:
header.h:59:26: error: kapplication.h: No such file or directory
header.h:60:24: error: kaboutdata.h: No such file or directory
header.h:61:26: error: kcmdlineargs.h: No such file or directory
header.h:62:25: error: ksystemtray.h: No such file or directory
header.h:63:24: error: kpopupmenu.h: No such file or directory
header.h:64:25: error: kiconloader.h: No such file or directory
header.h:65:24: error: kicontheme.h: No such file or directory
/usr/lib/qt-3.3/include/qtooltip.h:86: warning: ‘class QToolTip’ has virtual functions but non-virtual destructor
header.h:141: error: expected class-name before ‘{’ token
header.h:160: error: ‘KPopupMenu’ has not been declared
header.h:141: warning: ‘class QCpuTemp’ has virtual functions but non-virtual destructor
cputemp.cpp: In constructor ‘QCpuTemp::QCpuTemp(QWidget*, const char*)’:
cputemp.cpp:24: error: class ‘QCpuTemp’ does not have any field named ‘KSystemTray’
cputemp.cpp:28: error: ‘WDestructiveClose’ was not declared in this scope
cputemp.cpp:28: error: ‘WType_TopLevel’ was not declared in this scope
cputemp.cpp:28: error: ‘WStyle_Customize’ was not declared in this scope
cputemp.cpp:28: error: ‘WStyle_NoBorder’ was not declared in this scope
cputemp.cpp:40: error: ‘startTimer’ was not declared in this scope
cputemp.cpp:42: error: no matching function for call to ‘QTimer::QTimer(QCpuTemp* const)’
/usr/lib/qt-3.3/include/qtimer.h:76: note: candidates are: QTimer::QTimer(const QTimer&)
/usr/lib/qt-3.3/include/qtimer.h:50: note: QTimer::QTimer(QObject*, const char*)
cputemp.cpp:44: error: ‘connect’ was not declared in this scope
cputemp.cpp:46: error: no matching function for call to ‘QToolTip::add(QCpuTemp* const, const char [25])’
/usr/lib/qt-3.3/include/qtooltip.h:91: note: candidates are: static void QToolTip::add(QWidget*, const QString&)
/usr/lib/qt-3.3/include/qtooltip.h:93: note: static void QToolTip::add(QWidget*, const QString&, QToolTipGroup*, const QString&)
/usr/lib/qt-3.3/include/qtooltip.h:96: note: static void QToolTip::add(QWidget*, const QRect&, const QString&)
/usr/lib/qt-3.3/include/qtooltip.h:98: note: static void QToolTip::add(QWidget*, const QRect&, const QString&, QToolTipGroup*, const QString&)
cputemp.cpp: In member function ‘void QCpuTemp::mousePressEvent(QMouseEvent*)’:
cputemp.cpp:78: error: ‘KIconLoader’ was not declared in this scope
cputemp.cpp:78: error: expected `;' before ‘icon’
cputemp.cpp:80: error: ‘KPopupMenu’ was not declared in this scope
cputemp.cpp:80: error: ‘menu’ was not declared in this scope
cputemp.cpp:80: error: expected type-specifier before ‘KPopupMenu’
cputemp.cpp:80: error: expected `;' before ‘KPopupMenu’
cputemp.cpp:83: error: ‘icon’ was not declared in this scope
cputemp.cpp:83: error: ‘KIcon’ has not been declared
cputemp.cpp:83: error: ‘CTRL’ was not declared in this scope
cputemp.cpp:83: error: ‘Key_T’ was not declared in this scope
cputemp.cpp:86: error: ‘KIcon’ has not been declared
cputemp.cpp:88: error: ‘KIcon’ has not been declared
cputemp.cpp:90: error: ‘KIcon’ has not been declared
cputemp.cpp:90: error: ‘Key_A’ was not declared in this scope
cputemp.cpp:92: error: ‘KIcon’ has not been declared
cputemp.cpp:94: error: type ‘’ argument given to ‘delete’, expected pointer
cputemp.cpp: In member function ‘void QCpuTemp::drawIcon()’:
cputemp.cpp:106: error: ‘size’ was not declared in this scope
cputemp.cpp:116: error: ‘width’ was not declared in this scope
cputemp.cpp:116: error: ‘height’ was not declared in this scope
cputemp.cpp:116: error: ‘AlignCenter’ was not declared in this scope
cputemp.cpp:131: error: ‘setPixmap’ was not declared in this scope
cputemp.cpp: At global scope:
cputemp.cpp:180: error: variable or field ‘contextMenuAboutToShow’ declared void
cputemp.cpp:180: error: ‘int QCpuTemp::contextMenuAboutToShow’ is not a static member of ‘class QCpuTemp’
cputemp.cpp:180: error: ‘KPopupMenu’ was not declared in this scope
cputemp.cpp:180: error: ‘menu’ was not declared in this scope
cputemp.cpp:181: error: expected ‘,’ or ‘;’ before ‘{’ token
make[1]: *** [cputemp.o] Error 1
make[1]: Leaving directory `/home/tim/Desktop/Downloads/cputemp/src'
make: *** [sub-src] Error 2

Report

drakia

11 years ago

To solve this, find where "kapplication.h" is located (mine was /usr/include/kde/) and edit the cputemp/src/src.pro file to change the INCPATH to where that file is located.

Report

MamiyaOtaru

12 years ago

What advantages does this app offer over ksensors? Being smaller?

Report

C

pks

12 years ago

If you get any error during make, just do make distclean && make :)

Report

product-maker 15 18

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
0.1
updated Jan 01 2005
added Jan 01 2005
downloads today
0
page views today 1