Scusate se trasformo il thread in un officina di lavoro, prima di riprovare con Icewm voglio ritentare con JWM.
Al momento i problemi di JWM sono due: 1)non funziona con i login-manager, 2) difficoltà nel configurarne l'aspetto.
Ho deciso di lasciare per ultimo il problema di slim e di passare alla personaliazzione.
JWM è un WM con un pannello con alcuni task gia pronti, mentre gli altri vanno installati da sorgenti. aptitPuppy ne usa alcuni che sono
ASAPM(controllo batteria),
FREEMEMAPPLET(applet per consumo memoria) e [url=http://]
Blinky[/url](applet per la rete)
Al momento per compilare ho installato i seguenti pacchetti:
Codice: Seleziona tutto
build-essential
linux-headers-2.6.28-15
linux-headers-2.6.28-15-generic
linux-image-2.6.28-15-generic
fakeroot
alien
checkinstall
libgtk-dev
libxpm-dev
Ora sto cercando di compilare questi sorgenti ma incappo in errori
ASAPM
Codice: Seleziona tutto
rox@rox:~/asapm-3.1$ ./configure --prefix=/usr
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking for ranlib... (cached) ranlib
checking for rm... (cached) /bin/rm
checking for mv... (cached) /bin/mv
checking for cp... (cached) /bin/cp
checking for mkdir... (cached) /bin/mkdir
checking for strip... (cached) /usr/bin/strip
checking how to run the C preprocessor... (cached) gcc -E
checking for X... (cached) no
checking for sys/wait.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/statvfs.h... (cached) yes
checking for sys/vfs.h... (cached) yes
checking for sys/mount.h... (cached) yes
checking for ustat.h... (cached) yes
checking for machine/soundcard.h... (cached) no
checking for linux/soundcard.h... (cached) yes
checking for linux/radio.h... (cached) no
checking for XOpenDisplay in -lX11... (cached) no
checking for libXpm... (cached) no
checking for XShapeCombineMask in -lXext... (cached) no
checking for jpeg_destroy_compress in -ljpeg... (cached) no
creating ./config.status
creating autoconf/Makefile.defines
creating autoconf/Makefile.common
creating autoconf/Makefile.common.lib
creating Makefile
creating config.h
config.h is unchanged
AfterStep applet asapm-3.1 is now hopefully configured, just run :
make ; make install
rox@rox:~/asapm-3.1$ make
gcc -O2 -c apm_react.c
apm_react.c: In function ‘React’:
apm_react.c:84: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result
apm_react.c:98: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result
gcc -O2 -c apm_rc.c
apm_rc.c: In function ‘ReadFile’:
apm_rc.c:54: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
apm_rc.c:86: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
apm_rc.c:91: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
apm_rc.c:97: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
apm_rc.c:103: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
apm_rc.c:109: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
apm_rc.c:115: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
apm_rc.c:121: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
apm_rc.c:127: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
apm_rc.c:133: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
apm_rc.c:136: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
apm_rc.c:139: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
apm_rc.c:142: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
apm_rc.c:145: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
apm_rc.c:146: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
apm_rc.c:149: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
apm_rc.c:150: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
gcc -O2 -c apm_read.c
apm_read.c: In function ‘ListACPIDevices’:
apm_read.c:363: warning: incompatible implicit declaration of built-in function ‘free’
apm_read.c:365: warning: incompatible implicit declaration of built-in function ‘free’
apm_read.c: In function ‘CheckAPMEvents’:
apm_read.c:685: warning: incompatible implicit declaration of built-in function ‘exit’
gcc -O2 -c apm_x.c
apm_x.c:15:22: error: X11/Xlib.h: Nessun file o directory
apm_x.c:16:21: error: X11/xpm.h: Nessun file o directory
apm_x.c:17:23: error: X11/Xatom.h: Nessun file o directory
apm_x.c:29: error: expected specifier-qualifier-list before ‘Pixmap’
apm_x.c:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘batteryImage’
apm_x.c:65: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘acImage’
apm_x.c:97: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
apm_x.c:98: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Root’
apm_x.c:99: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mainWindow’
apm_x.c:100: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘iconWindow’
apm_x.c:101: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mainGCV’
apm_x.c:102: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mainGC’
apm_x.c:103: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘greenPixel’
apm_x.c:104: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘lightgreenPixel’
apm_x.c:105: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘semilightgreenPixel’
apm_x.c:106: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bitlightgreenPixel’
apm_x.c:107: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘darkgreenPixel’
apm_x.c:108: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘semidarkgreenPixel’
apm_x.c:109: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bitdarkgreenPixel’
apm_x.c:110: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘greenTextPixel’
apm_x.c:111: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘wm_delete_window’
apm_x.c:112: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘wm_protocols’
apm_x.c: In function ‘Cleanup’:
apm_x.c:121: error: ‘mainDisplay’ undeclared (first use in this function)
apm_x.c:121: error: (Each undeclared identifier is reported only once
apm_x.c:121: error: for each function it appears in.)
apm_x.c: At top level:
apm_x.c:133: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GetColor’
apm_x.c:150: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ParseColor’
apm_x.c:167: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘DarkenColor’
apm_x.c:191: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘LightenColor’
apm_x.c: In function ‘initializeWindow’:
apm_x.c:241: error: ‘Status’ undeclared (first use in this function)
apm_x.c:241: error: expected ‘;’ before ‘status’
apm_x.c:242: error: ‘XWindowAttributes’ undeclared (first use in this function)
apm_x.c:242: error: expected ‘;’ before ‘winAttr’
apm_x.c:243: error: ‘Pixel’ undeclared (first use in this function)
apm_x.c:243: error: expected ‘;’ before ‘back_pix’
apm_x.c:244: error: ‘XSizeHints’ undeclared (first use in this function)
apm_x.c:244: error: expected ‘;’ before ‘SizeHints’
apm_x.c:245: error: ‘XTextProperty’ undeclared (first use in this function)
apm_x.c:245: error: expected ‘;’ before ‘title’
apm_x.c:246: error: ‘XClassHint’ undeclared (first use in this function)
apm_x.c:246: error: expected ‘;’ before ‘classHint’
apm_x.c:248: error: ‘XWMHints’ undeclared (first use in this function)
apm_x.c:248: error: expected ‘;’ before ‘WmHints’
apm_x.c:249: error: ‘XEvent’ undeclared (first use in this function)
apm_x.c:249: error: expected ‘;’ before ‘Event’
apm_x.c:250: error: ‘XColor’ undeclared (first use in this function)
apm_x.c:250: error: expected ‘;’ before ‘tmp_color’
apm_x.c:260: error: ‘mainDisplay’ undeclared (first use in this function)
apm_x.c:263: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘int’
apm_x.c:267: error: ‘Root’ undeclared (first use in this function)
apm_x.c:268: error: ‘back_pix’ undeclared (first use in this function)
apm_x.c:269: error: ‘fore_pix’ undeclared (first use in this function)
apm_x.c:278: error: ‘XpmIcon’ has no member named ‘attributes’
apm_x.c:279: error: ‘XpmReturnPixels’ undeclared (first use in this function)
apm_x.c:279: error: ‘XpmReturnExtensions’ undeclared (first use in this function)
apm_x.c:280: error: ‘XpmExactColors’ undeclared (first use in this function)
apm_x.c:280: error: ‘XpmCloseness’ undeclared (first use in this function)
apm_x.c:281: error: ‘XpmIcon’ has no member named ‘attributes’
apm_x.c:281: error: ‘False’ undeclared (first use in this function)
apm_x.c:282: error: ‘XpmIcon’ has no member named ‘attributes’
apm_x.c:300: error: ‘status’ undeclared (first use in this function)
apm_x.c:304: error: ‘XpmIcon’ has no member named ‘pixmap’
apm_x.c:305: error: ‘XpmIcon’ has no member named ‘mask’
apm_x.c:306: error: ‘XpmIcon’ has no member named ‘attributes’
apm_x.c:308: error: ‘XpmSuccess’ undeclared (first use in this function)
apm_x.c:318: error: ‘SizeHints’ undeclared (first use in this function)
apm_x.c:323: error: ‘XNegative’ undeclared (first use in this function)
apm_x.c:325: error: ‘YNegative’ undeclared (first use in this function)
apm_x.c:328: error: ‘USSize’ undeclared (first use in this function)
apm_x.c:328: error: ‘USPosition’ undeclared (first use in this function)
apm_x.c:350: error: ‘XpmIcon’ has no member named ‘attributes’
apm_x.c:353: error: ‘XpmIcon’ has no member named ‘attributes’
apm_x.c:354: error: ‘PMinSize’ undeclared (first use in this function)
apm_x.c:354: error: ‘PMaxSize’ undeclared (first use in this function)
apm_x.c:357: error: ‘NorthWestGravity’ undeclared (first use in this function)
apm_x.c:360: error: ‘NorthEastGravity’ undeclared (first use in this function)
apm_x.c:365: error: ‘SouthEastGravity’ undeclared (first use in this function)
apm_x.c:367: error: ‘SouthWestGravity’ undeclared (first use in this function)
apm_x.c:369: error: ‘PWinGravity’ undeclared (first use in this function)
apm_x.c:371: error: ‘mainWindow’ undeclared (first use in this function)
apm_x.c:383: error: ‘iconWindow’ undeclared (first use in this function)
apm_x.c:416: error: ‘winAttr’ undeclared (first use in this function)
apm_x.c:421: error: ‘XpmIcon’ has no member named ‘pixmap’
apm_x.c:426: error: ‘XpmIcon’ has no member named ‘pixmap’
apm_x.c:429: error: ‘title’ undeclared (first use in this function)
apm_x.c:433: error: ‘classHint’ undeclared (first use in this function)
apm_x.c:442: error: ‘ExposureMask’ undeclared (first use in this function)
apm_x.c:452: error: ‘mainGCV’ undeclared (first use in this function)
apm_x.c:455: error: ‘LineSolid’ undeclared (first use in this function)
apm_x.c:456: error: ‘FillSolid’ undeclared (first use in this function)
apm_x.c:458: error: ‘mainGC’ undeclared (first use in this function)
apm_x.c:461: error: ‘GCForeground’ undeclared (first use in this function)
apm_x.c:461: error: ‘GCBackground’ undeclared (first use in this function)
apm_x.c:461: error: ‘GCLineWidth’ undeclared (first use in this function)
apm_x.c:462: error: ‘GCLineStyle’ undeclared (first use in this function)
apm_x.c:462: error: ‘GCFillStyle’ undeclared (first use in this function)
apm_x.c:469: error: ‘wm_delete_window’ undeclared (first use in this function)
apm_x.c:474: error: ‘wm_protocols’ undeclared (first use in this function)
apm_x.c:492: error: ‘WmHints’ undeclared (first use in this function)
apm_x.c:492: error: ‘StateHint’ undeclared (first use in this function)
apm_x.c:492: error: ‘IconWindowHint’ undeclared (first use in this function)
apm_x.c:494: error: ‘WithdrawnState’ undeclared (first use in this function)
apm_x.c:495: error: ‘IconicState’ undeclared (first use in this function)
apm_x.c:495: error: ‘NormalState’ undeclared (first use in this function)
apm_x.c:499: error: ‘WindowGroupHint’ undeclared (first use in this function)
apm_x.c:504: error: ‘IconPositionHint’ undeclared (first use in this function)
apm_x.c:518: error: ‘greenPixel’ undeclared (first use in this function)
apm_x.c:519: error: ‘redPixel’ undeclared (first use in this function)
apm_x.c:520: error: ‘greenTextPixel’ undeclared (first use in this function)
apm_x.c:521: error: ‘yellowTextPixel’ undeclared (first use in this function)
apm_x.c:522: error: ‘redTextPixel’ undeclared (first use in this function)
apm_x.c:525: error: ‘darkgreenPixel’ undeclared (first use in this function)
apm_x.c:526: error: ‘semidarkgreenPixel’ undeclared (first use in this function)
apm_x.c:527: error: ‘bitdarkgreenPixel’ undeclared (first use in this function)
apm_x.c:528: error: ‘darkredPixel’ undeclared (first use in this function)
apm_x.c:529: error: ‘semidarkredPixel’ undeclared (first use in this function)
apm_x.c:530: error: ‘bitdarkredPixel’ undeclared (first use in this function)
apm_x.c:531: error: ‘lightgreenPixel’ undeclared (first use in this function)
apm_x.c:532: error: ‘semilightgreenPixel’ undeclared (first use in this function)
apm_x.c:533: error: ‘bitlightgreenPixel’ undeclared (first use in this function)
apm_x.c:534: error: ‘lightredPixel’ undeclared (first use in this function)
apm_x.c:535: error: ‘semilightredPixel’ undeclared (first use in this function)
apm_x.c:536: error: ‘bitlightredPixel’ undeclared (first use in this function)
apm_x.c:555: error: ‘tmp_color’ undeclared (first use in this function)
apm_x.c:578: error: ‘XpmIcon’ has no member named ‘attributes’
apm_x.c:581: error: ‘XpmIcon’ has no member named ‘attributes’
apm_x.c:582: error: ‘XpmIcon’ has no member named ‘attributes’
apm_x.c:587: error: ‘XpmIcon’ has no member named ‘pixmap’
apm_x.c:588: error: ‘XpmIcon’ has no member named ‘mask’
apm_x.c:589: error: ‘XpmIcon’ has no member named ‘attributes’
apm_x.c:598: error: ‘Event’ undeclared (first use in this function)
apm_x.c: At top level:
apm_x.c:610: error: expected ‘)’ before ‘win’
apm_x.c:857: error: expected ‘)’ before ‘win’
apm_x.c:933: error: expected ‘)’ before ‘win’
apm_x.c:966: error: expected ‘)’ before ‘win’
apm_x.c: In function ‘Redraw’:
apm_x.c:1014: error: ‘mainWindow’ undeclared (first use in this function)
apm_x.c:1018: error: ‘iconWindow’ undeclared (first use in this function)
apm_x.c: In function ‘CheckX11Events’:
apm_x.c:1031: error: ‘XEvent’ undeclared (first use in this function)
apm_x.c:1031: error: expected ‘;’ before ‘Event’
apm_x.c:1032: error: ‘mainDisplay’ undeclared (first use in this function)
apm_x.c:1033: error: ‘Event’ undeclared (first use in this function)
apm_x.c:1036: error: ‘Expose’ undeclared (first use in this function)
apm_x.c:1040: error: ‘ClientMessage’ undeclared (first use in this function)
apm_x.c:1041: error: ‘wm_protocols’ undeclared (first use in this function)
apm_x.c:1042: error: ‘wm_delete_window’ undeclared (first use in this function)
make: *** [apm_x.o] Errore 1
BLINKY
Non conoscendo bene la sintassi e avendo una finestra ridotta a causa di VBOX non riesco a capire se i comandi del readme vanno dati sequenziati o se sono su di un'unica riga:
Codice: Seleziona tutto
UPDATE:
25 October 2007
Dave Moor has found Blinky compiles with GTK2:
gcc -O2 blinky.c interface.c usage-proc.c util.c -o ../bin/blinky `pkg-config --cflags gtk+-2.0` `pkg-config --libs gtk+-2.0`
--------------------------------------------------------------
--- Compile command used ---
(!) For debbuging:
gcc -g -O2 -Wall -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include \
-I/usr/X11R6/include -L/usr/lib-L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule \
-lglib -ldl -lXi -lXext -lX11 -lm -combine blinky.c interface.c usage-proc.c util.c -o ../bin/blinky
(!) For production:
gcc -O2 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include \
-I/usr/X11R6/include -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule \
-lglib -ldl -lXi -lXext -lX11 -lm -combine blinky.c interface.c usage-proc.c util.c -o ../bin/blinky
Per Blinky ho provato le opzioni production ma ovviamente risultato 0
Codice: Seleziona tutto
rox@rox:~/blinky-0.8-1/src$ gcc -O2 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include \
> -I/usr/X11R6/include -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule \
> -lglib -ldl -lXi -lXext -lX11 -lm -combine blinky.c interface.c usage-proc.c util.c -o ../bin/blinky
usage-proc.c: In function ‘get_usage_all’:
/usr/include/bits/fcntl2.h:43: sorry, unimplemented: inlining failed in call to ‘open’: redefined extern inline functions are not considered for inlining
usage-proc.c:46: sorry, unimplemented: called from here
/usr/include/bits/string3.h:79: sorry, unimplemented: inlining failed in call to ‘memset’: redefined extern inline functions are not considered for inlining
usage-proc.c:51: sorry, unimplemented: called from here
/usr/include/bits/unistd.h:36: sorry, unimplemented: inlining failed in call to ‘read’: redefined extern inline functions are not considered for inlining
usage-proc.c:53: sorry, unimplemented: called from here