g15-sysstats – Updated!
Today I updated my G15 Linux applet. But nothing spectacular, only a crash fix and updated docs. For installation instructions, readme etc please refer to the files contained in the archive.
Changes:
- Fixed a crash if no swap is available (floating point exception in drawMemoryUsage())
- Changed the temp labels to „cpu0“ and „cpu1“ (note: if you wanna change them you will need to recompile currently)
Download binaries and sources: g15-sysstats-update1 (1872 Downloads)
Is there a way to run it on 64bit? I get the error message: libg15.so.1: cannot open shared object file: No such file or directory
even though I installed it (the 64bit version though).
In theory you should be able to recompile it. Only problem will be that i’m lazy and didn’t created a makefile since i build from eclipse
I would recompile it for you, but i’ve no 64bit install and i have no clue about cross-compilation. But i will create a makefile on the weekend (busy with work under the week) so you will be able to recompile it for 64bit.
If you could include a makefile, I would be interested in it.
Damn… Stuff like this happen if you don’t read the documentation of tools you use… Lesson learned…
I just googled it, and Eclipse generate a makefile for each target itself. Simply extract the package somewhere, then „cd“ to there in a terminal. Now „cd“ into „/Debug“ or „/Release“ and run „make all“. This will give you a binary that should run on x64.
But maybe you will need to edit some stuff to use the x64 libs? Or install the 32bit versions of the libs? I have never done such „porting“ on Linux, plus i’m not that good in C at all – my home is the PHP world
Hope you manage to get it running. Please keep me updated
No, your C is great, it so clean and portable that I nearly want to hang myself. You rock!
I had to install several dev packages and I had to delete g15-sysstats, otherwise make all would just tell me that there is nothing to do.
I then had to delete g15-sysstats.o, because „/usr/bin/ld: i386 architecture of input file `./g15-sysstats.o‘ is incompatible with i386:x86-64 output“.
I figured it would be redone in the make process.
With the .o deleted, I received this error message (same when I deleted .d as well):
../g15-sysstats.cpp: In function ‘void connectToScreen()’:
../g15-sysstats.cpp:82: error: ‘exit’ was not declared in this scope
../g15-sysstats.cpp:85: error: ‘malloc’ was not declared in this scope
../g15-sysstats.cpp: In function ‘void* DrawClock(void*)’:
../g15-sysstats.cpp:132: error: ‘atoi’ was not declared in this scope
../g15-sysstats.cpp: In function ‘void* DrawTemps(void*)’:
../g15-sysstats.cpp:159: error: ‘atoi’ was not declared in this scope
../g15-sysstats.cpp: In function ‘void* DrawNetworkTraffic(void*)’:
../g15-sysstats.cpp:188: error: ‘atoi’ was not declared in this scope
../g15-sysstats.cpp: In function ‘void* DrawLoadAverage(void*)’:
../g15-sysstats.cpp:375: error: ‘atoi’ was not declared in this scope
../g15-sysstats.cpp: In function ‘void* DrawFreeSpace(void*)’:
../g15-sysstats.cpp:441: error: ‘atof’ was not declared in this scope
../g15-sysstats.cpp:448: error: ‘atoi’ was not declared in this scope
../g15-sysstats.cpp: In function ‘void* keyboard_watch(void*)’:
../g15-sysstats.cpp:467: error: ‘atoi’ was not declared in this scope
../g15-sysstats.cpp:474: error: ‘atoi’ was not declared in this scope
../g15-sysstats.cpp:481: error: ‘atoi’ was not declared in this scope
../g15-sysstats.cpp:488: error: ‘atoi’ was not declared in this scope
../g15-sysstats.cpp: In function ‘int main(int, char**)’:
../g15-sysstats.cpp:522: error: ‘atoi’ was not declared in this scope
make: *** [g15-sysstats.o] Fehler 1
I hope you can find the source of that error. Thanks for your work.
Hm that’s weird. Compiles fines here Oo
/ snip on
mcdope@dope-seiner:~/workspace/g15-sysstats/Debug$ make clean
rm -rf ./g15-sysstats.o ./g15-sysstats.d g15-sysstats
mcdope@dope-seiner:~/workspace/g15-sysstats/Debug$ make all
Building file: ../g15-sysstats.cpp
Invoking: GCC C++ Compiler
g++ -I/usr/include/freetype2 -O3 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF“g15-sysstats.d“ -MT“g15-sysstats.d“ -o“g15-sysstats.o“ „../g15-sysstats.cpp“
Finished building: ../g15-sysstats.cpp
Building target: g15-sysstats
Invoking: GCC C++ Linker
g++ -o“g15-sysstats“ ./g15-sysstats.o -lfreetype -lg15 -lg15daemon_client -lg15render -lstatgrab -lpthread
Finished building target: g15-sysstats
/ snip off
But like said, my C sucks