Pagina 1 di 1

Compilazione hotkeys-0.5.7

Inviato: sab 19 apr 2008, 21:14
da zion
Dopo tante soddisfazioni sotto slack 12, voglio riuscire ad usare il potenziometro della mia tastiera per il regolamento del volume (ho una btc 9000). Guardando un po in giro ho scoperto che posso risolvere questo problema con hotkeys (di cui ho scaricato la versione 0.5.7) che offre il supporto proprio x la mia tastiera. Una volta scaricato e decompresso, lancio il ./configure e purtroppo mi blocco al seguente messaggio:

Codice: Seleziona tutto

root@zion:~/hotkeys-0.5.7# ./configure 
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... missing
checking for working autoconf... found
checking for working automake-1.4... missing
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for xml2-config... /usr/bin/xml2-config
checking for xmlParseFile in -lxml2... yes
checking for xmlChildrenNode in parser.h... no
*** This version of libxml has not defined xmlChildrenNode.
*** Please upgrade it. Version 2.2.8 and above are known to
*** to be good. If you've installed it in an unusual location,
*** please use --with-xml-prefix to specify it.
root@zion:~/hotkeys-0.5.7# cd src/
root@zion:~/hotkeys-0.5.7/src# vi kbddef.c
root@zion:~/hotkeys-0.5.7/src# cd ..
root@zion:~/hotkeys-0.5.7# ./configure 
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... missing
checking for working autoconf... found
checking for working automake-1.4... missing
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for xml2-config... /usr/bin/xml2-config
checking for xmlParseFile in -lxml2... yes
checking for xmlChildrenNode in parser.h... no
*** This version of libxml has not defined xmlChildrenNode.
*** Please upgrade it. Version 2.2.8 and above are known to
*** to be good. If you've installed it in an unusual location,
*** please use --with-xml-prefix to specify it.
A quanto pare c'è un problema di libxml obsolete. Ho scaricato le ultime da http://xmlsoft.org/sources/libxml2-2.6.32.tar.gz, compilato ed installato correttamente ma non ho risolto un granchè. Ho visto che altri utenti suse hanno trattato questo problema (http://www.suseitalia.org/modules/newbb ... 1170584459), ma la soluzione da loro proposta non mi è stata utile. Qualcuno può darmi una mano?

Re: Compilazione hotkeys-0.5.7

Inviato: sab 19 apr 2008, 23:53
da teme
È probabile che quando hai compilato libxml2-2.6.32.tar.gz, lui li abbia messi in un PATH diverso da quello che viene passato nel link di suse mediante il comando

Codice: Seleziona tutto

./configure --with-xml-prefix=/usr/include/libxml2/libxml
Fai una ricerca e vedi se in /usr/include/libxml2/* hai proprio libxml, altrimenti fai un find per vedere dove hai libxml

Re: Compilazione hotkeys-0.5.7

Inviato: dom 20 apr 2008, 0:09
da zion
ho già provato con quest'opzione, ma non cambia nulla. non credo che sia un problema di individuazione delle libxml2, altrimenti come si spiegherebbe la penultima riga del configure??

checking for xml2-config... /usr/bin/xml2-config
checking for xmlParseFile in -lxml2... yes <------ Qua dice di aver trovato il parse file!
checking for xmlChildrenNode in parser.h... no
*** This version of libxml has not defined xmlChildrenNode.
*** Please upgrade it. Version 2.2.8 and above are known to
*** to be good. If you've installed it in an unusual location,
*** please use --with-xml-prefix to specify it.

Re: Compilazione hotkeys-0.5.7

Inviato: dom 20 apr 2008, 0:17
da targzeta
zion ha scritto:ho già provato con quest'opzione, ma non cambia nulla. non credo che sia un problema di individuazione delle libxml2, altrimenti come si spiegherebbe la penultima riga del configure??

checking for xml2-config... /usr/bin/xml2-config
checking for xmlParseFile in -lxml2... yes <------ Qua dice di aver trovato il parse file!
checking for xmlChildrenNode in parser.h... no
*** This version of libxml has not defined xmlChildrenNode.
*** Please upgrade it. Version 2.2.8 and above are known to
*** to be good. If you've installed it in an unusual location,
*** please use --with-xml-prefix to specify it.
Questa è una cosa diversa, la riga che sottolinei ti dice che ha trovato la libreria condivisa, mentre l'opzione suggerita da teme serve per indicare l'ubicazione dei file .h.

Spina

Re: Compilazione hotkeys-0.5.7

Inviato: dom 20 apr 2008, 1:11
da zion
va bene, purtroppo anche con quest'opzione da lo stesso errore :(

Re: Compilazione hotkeys-0.5.7

Inviato: dom 20 apr 2008, 8:40
da 414N
L'hai rimossa la vecchia libxml prima di installare la nuova dai sorgenti?
Dove l'hai installata la nuova lib?
L'opzione --with-xml-prefix non credo serva per specificare la posizione degli header (infatti sarebbe stata --with-xml-include o simile), ma piuttosto il prefisso di installazione (presumo /usr/local o /usr). Controlla (sempre che tu non l'abbia specificato esplicitamente) dove va a piazzare il tutto il configure di libxml : lancia

Codice: Seleziona tutto

./configure --help | grep PREFIX
per vedere il prefix di default.

Re: Compilazione hotkeys-0.5.7 quasi risolto

Inviato: sab 26 apr 2008, 0:22
da zion
si, avevo rimosso la vecchia versione e come opzioni ho passato

Codice: Seleziona tutto

configure --with-xml-prefix=/usr
dove in effetti stanno.
Per curiosità ho provato a scaricarmi la vers 0.5.7.1 e qua non si presenta nessun errore in fasi "configure"! Da piuttosto un errore in fase di compilazione. Ho risolto questo problema modificando le linee 40 e 41 del file src/kbddef.c
da

Codice: Seleziona tutto

#include <xmlmemory.h>
#include <parser.h>
in

Codice: Seleziona tutto

#include <libxml/xmlmemory.h>
#include <libxml/parser.h>
In questo modo configura, compila ed installa in modo corretto!
Purtroppo il mio problema permane, la mia tastiera (una btc9000) non riconosce i comandi che corrispondono al volume :( Qualche suggerimento?

Re: Compilazione hotkeys-0.5.7

Inviato: sab 26 apr 2008, 13:10
da dapuzz
se lanci xev e poi premi il tasto esce un keycode senza symbol o prporio non esce niente?

Re: Compilazione hotkeys-0.5.7

Inviato: sab 26 apr 2008, 16:38
da zion
il vuoto cosmico! il nulla assoluto :( è proprio questo il problema, uscisse qualcosa sarebbe un giochetto fare i binding, ma qua proprio è lo zero!

Re: Compilazione hotkeys-0.5.7

Inviato: sab 26 apr 2008, 17:12
da dapuzz
Ma invece la versione 0.5.7.1 ?

Update: per entrambe le versioni bisogna hackerare un po'. Bisogna aggiungere a mano nelle cflags -I/usr/include/libxml2/libxml e poi bisogna aggiungere #include <limits.h> nel src/hotkeys.c Non il massimo, però compila :)

Problemi tastiera btc 9000

Inviato: sab 26 apr 2008, 17:59
da zion
Ora sto usando la versione 0.5.7.1, e sono riuscito a compilarla usando gli accorgimenti che ho descritto qualche post fa. In effetti dovrei cambiare titolo nel thread! comunque, nessuna risposta ne per la manopola del volume, ne per il tasto "muto"!

Re: Compilazione hotkeys-0.5.7

Inviato: sab 26 apr 2008, 18:12
da dapuzz
Ah, ah! Non avevo letto che già avevi provato con l'altra versione :D vabè, in ogni caso non ha funzionato comunque :badgrin: