Originariamente inviato da nik600
ciao a tutti

ve può interessarvi ho fatto un'utility in c++/openGL x la visualizzazione delle seguenti informazioni:

- uptime
- stato batteria
- utilizzo ram
- utilizzo varie partizioni

screenshot:



le informazioni disponibili sono molte di più (volendo ci sono anche i mAh della batteria...l'assorbimento...ecc)

cmq questa è la prima release...potete scaricare il codice qui:
http://www.criminalteam.org/utenti/n...nik_system.tar


se volete fare commenti/critiche sono graditi!

una nota:
gli aggiornamenti della finestra (quando la spostate o quando la ridimensionate ) sono un po lenti x' le info si aggiornano ogni secondo poi però va tutto ok...





istruzioni:

scaricate il file nik_system.tar

lo scompattate con

#tar -xvzf nik_system.tar

#cd nik_system

#make

(se non ci sono errori)
#./nik_system


come compilatore utilizzo g++

Buona sera a tutti,
scusate se riprendo questo vecchio post, volevo sapere se qualcuno di voi a provato questa utility.
Io ho provato ad installarla seguendo le istruzioni ma ottengo questo errore:
[root@AcerNB nik_system]# make
g++ -c src/nik_system.cc
In file included from src/nik_system.cc:1:
src/classi.h:1:61: error: GL/glut.h: No such file or directory
src/classi.h:2:59: error: GL/gl.h: No such file or directory
src/classi.h:3:57: error: GL/glu.h: No such file or directory
src/classi.h:4:20: error: GL/glx.h: No such file or directory
src/classi.h:23: error: ISO C++ forbids declaration of 'GLubyte' with no type
src/classi.h:23: error: expected ';' before '*' token
src/classi.h:24: error: 'GLuint' does not name a type
src/classi.h:25: error: 'GLuint' does not name a type
src/classi.h:26: error: 'GLuint' does not name a type
src/classi.h:27: error: 'GLuint' does not name a type
src/classi.h:54: error: 'GLuint' does not name a type
src/classi.h:61: error: 'GLint' has not been declared
src/classi.h:61: error: 'GLint' has not been declared
src/nik_system.cc: In function 'void InitGL(int, int)':
src/nik_system.cc:17: error: 'glClearColor' was not declared in this scope
src/nik_system.cc:18: error: 'glClearDepth' was not declared in this scope
src/nik_system.cc:19: error: 'GL_LESS' was not declared in this scope
src/nik_system.cc:19: error: 'glDepthFunc' was not declared in this scope
src/nik_system.cc:20: error: 'GL_DEPTH_TEST' was not declared in this scope
src/nik_system.cc:20: error: 'glEnable' was not declared in this scope
src/nik_system.cc:21: error: 'GL_SMOOTH' was not declared in this scope
src/nik_system.cc:21: error: 'glShadeModel' was not declared in this scope
src/nik_system.cc:23: error: 'GL_PROJECTION' was not declared in this scope
src/nik_system.cc:23: error: 'glMatrixMode' was not declared in this scope
src/nik_system.cc:24: error: 'glLoadIdentity' was not declared in this scope
src/nik_system.cc:26: error: 'GLfloat' was not declared in this scope
src/nik_system.cc:26: error: 'gluPerspective' was not declared in this scope
src/nik_system.cc:28: error: 'GL_MODELVIEW' was not declared in this scope
src/nik_system.cc: In function 'void ReSizeGLScene(int, int)':
src/nik_system.cc:38: error: 'glViewport' was not declared in this scope
src/nik_system.cc:40: error: 'GL_PROJECTION' was not declared in this scope
src/nik_system.cc:40: error: 'glMatrixMode' was not declared in this scope
src/nik_system.cc:41: error: 'glLoadIdentity' was not declared in this scope
src/nik_system.cc:43: error: 'GLfloat' was not declared in this scope
src/nik_system.cc:43: error: 'gluPerspective' was not declared in this scope
src/nik_system.cc:44: error: 'GL_MODELVIEW' was not declared in this scope
src/nik_system.cc: In function 'void DrawGLScene()':
src/nik_system.cc:50: error: 'GL_COLOR_BUFFER_BIT' was not declared in this scope
src/nik_system.cc:50: error: 'GL_DEPTH_BUFFER_BIT' was not declared in this scope
src/nik_system.cc:50: error: 'glClear' was not declared in this scope
src/nik_system.cc:51: error: 'glLoadIdentity' was not declared in this scope
src/nik_system.cc:52: error: 'glTranslatef' was not declared in this scope
src/nik_system.cc:79: error: 'glutSwapBuffers' was not declared in this scope
src/nik_system.cc: In function 'void keyPressed(unsigned char, int, int)':
src/nik_system.cc:93: error: 'glutDestroyWindow' was not declared in this scope
src/nik_system.cc: In function 'int main(int, char**)':
src/nik_system.cc:106: error: 'glutInit' was not declared in this scope
src/nik_system.cc:113: error: 'GLUT_RGBA' was not declared in this scope
src/nik_system.cc:113: error: 'GLUT_DOUBLE' was not declared in this scope
src/nik_system.cc:113: error: 'GLUT_ALPHA' was not declared in this scope
src/nik_system.cc:113: error: 'GLUT_DEPTH' was not declared in this scope
src/nik_system.cc:113: error: 'glutInitDisplayMode' was not declared in this scope
src/nik_system.cc:116: error: 'glutInitWindowSize' was not declared in this scope
src/nik_system.cc:119: error: 'glutInitWindowPosition' was not declared in this scope
src/nik_system.cc:122: error: 'glutCreateWindow' was not declared in this scope
src/nik_system.cc:125: error: 'glutDisplayFunc' was not declared in this scope
src/nik_system.cc:131: error: 'glutIdleFunc' was not declared in this scope
src/nik_system.cc:134: error: 'glutReshapeFunc' was not declared in this scope
src/nik_system.cc:137: error: 'glutKeyboardFunc' was not declared in this scope
src/nik_system.cc:143: error: 'glutMainLoop' was not declared in this scope
make: *** [nik_system.o] Error 1

potete darmi qualche spiegazione?
Grazie