Bonjour à tous,
Depuis quelques jours j’essaye de m’en sortir à utiliser Window Maker 0.92.0 ! (pas simple venant de KDE…)
J’ai notamment voulu installer la petite appli "wmsensormon"
J’ai donc téléchargé les sources, les ai décompressés, lu les README et INSTALL, et donc installé ce qu’il fallait… (enfin, je pense)
Sauf que, quand au début j’ai fais un make voici ce que j’ai obtenu :
# make
gcc -Wall -O3 -c -o wmsensormon.o wmsensormon.c
wmsensormon.c:17:23: error: X11/Xlib.h: Aucun fichier ou dossier de ce type
wmsensormon.c:18:22: error: X11/xpm.h: Aucun fichier ou dossier de ce type
wmsensormon.c:19:35: error: X11/extensions/shape.h: Aucun fichier ou dossier de ce type
wmsensormon.c:20:30: error: sensors/sensors.h: Aucun fichier ou dossier de ce type
wmsensormon.c:21:28: error: sensors/chips.h: Aucun fichier ou dossier de ce type
wmsensormon.c:22:28: error: sensors/error.h: Aucun fichier ou dossier de ce type
In file included from wmsensormon.c:24:
../wmgeneral/wmgeneral.h:30: error: expected specifier-qualifier-list before ‘Pixmap’
../wmgeneral/wmgeneral.h:39: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
wmsensormon.c: In function ‘main’:
wmsensormon.c:79: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
wmsensormon.c:79: error: ‘chipset’ undeclared (first use in this function)
wmsensormon.c:79: error: (Each undeclared identifier is reported only once
wmsensormon.c:79: error: for each function it appears in.)
wmsensormon.c:80: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
wmsensormon.c:80: error: ‘feature’ undeclared (first use in this function)
wmsensormon.c:84: error: ‘XEvent’ undeclared (first use in this function)
wmsensormon.c:84: error: expected ‘;’ before ‘Event’
wmsensormon.c:96: warning: implicit declaration of function ‘sensors_init’
wmsensormon.c:313: warning: implicit declaration of function ‘sensors_get_detected_chips’
wmsensormon.c:325: warning: implicit declaration of function ‘sensors_get_all_features’
wmsensormon.c:384: warning: implicit declaration of function ‘sensors_get_feature’
wmsensormon.c:787: warning: implicit declaration of function ‘XCheckMaskEvent’
wmsensormon.c:787: error: ‘display’ undeclared (first use in this function)
wmsensormon.c:787: error: ‘ButtonPressMask’ undeclared (first use in this function)
wmsensormon.c:787: error: ‘Event’ undeclared (first use in this function)
wmsensormon.c:789: error: ‘ButtonPress’ undeclared (first use in this function)
make: *** [wmsensormon.o] Erreur 1
J’ai compris que finalement il me manquait plein de choses…
J’ai donc installé les paquets libx11-dev, libxpm-dev, x11proto-xext-dev et libsensors-dev pour palier à cela.
Mais maintenant, quand je fais un make j’obtiens :
# make
gcc -Wall -O3 -c -o wmsensormon.o wmsensormon.c
gcc -Wall -O3 -c -o ../wmgeneral/wmgeneral.o ../wmgeneral/wmgeneral.c
gcc -Wall -O3 -c -o ../wmgeneral/misc.o ../wmgeneral/misc.c
gcc -Wall -O3 -c -o ../wmgeneral/list.o ../wmgeneral/list.c
gcc -o wmsensormon wmsensormon.o ../wmgeneral/wmgeneral.o ../wmgeneral/misc.o ../wmgeneral/list.o -L/usr/X11R6/lib -lXpm -lXext -lX11 -lsensors
/usr/bin/ld: cannot find -lXext
collect2: ld returned 1 exit status
make: *** [all] Erreur 1
Et là pour moi : c’est du chinois !!!
Enfin, j’ai quand même compris qu’il lui manquait encore un “-lXext” mais je ne sais pas où le trouver…
Quelqu’un pourrait-il m’aider svp ?
Merci d’avance !
Eric