Errore compilazione me-tv

Se avete problemi con l'installazione e la configurazione di Slackware postate qui. Non usate questo forum per argomenti generali... per quelli usate Gnu/Linux in genere.

Moderatore: Staff

Regole del forum
1) Citare sempre la versione di Slackware usata, la versione del Kernel e magari anche la versione della libreria coinvolta. Questi dati aiutano le persone che possono rispondere.
2) Per evitare confusione prego inserire in questo forum solo topic che riguardano appunto Slackware, se l'argomento è generale usate il forum Gnu/Linux in genere.
3) Leggere attentamente le risposte ricevute.
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.

La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
Rispondi
Avatar utente
dr_air
Linux 0.x
Linux 0.x
Messaggi: 92
Iscritto il: lun 8 ott 2007, 13:31
Slackware: 13.37
Kernel: 3.2
Desktop: xfce4.6.1
Località: Bracciano

Errore compilazione me-tv

Messaggio da dr_air »

Ciao a tutti,
volevo provare me-tv e, non trovando in giro nè il pacchetto nè lo slackbuild, ho provato a compilarlo da sorgente.
Il 'configure' va a buon fine con il seguente output

Codice: Seleziona tutto

bash-4.1# ./configure
checking for a BSD-compatible install... /bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
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 ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... ranlib
checking what warning flags to pass to the C++ compiler... -Wall -Wno-unused
checking what language compliance flags to pass to the C++ compiler... 
checking what more warning flags to pass to the C compiler... none
checking for X... libraries , headers 
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking for unistd.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for mode_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint8_t... yes
checking whether gcc needs -traditional... no
checking whether time.h and sys/time.h may both be included... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for alarm... yes
checking for working mktime... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking for strftime... yes
checking for localtime_r... yes
checking for mempcpy... yes
checking for memset... yes
checking for mkfifo... yes
checking for select... yes
checking for strerror... yes
checking for tzset... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking whether NLS is requested... yes
checking for intltool >= 0.35.0... 0.40.6 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... (cached) /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.10.1
checking for XML::Parser... ok
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for ME_TV_COMMON... yes
checking for ME_TV_CONSOLE... yes
checking for ME_TV_CLIENT... yes
checking for ME_TV_SERVER... yes
checking for gconftool-2... /usr/bin/gconftool-2
Using config source xml:merged:/etc/gconf/gconf.xml.defaults for schema installa
tion
Using $(sysconfdir)/gconf/schemas as install directory for schema files
configure: creating ./config.status
config.status: creating Makefile
config.status: creating common/Makefile
config.status: creating console/Makefile
config.status: creating client/Makefile
config.status: creating server/Makefile
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: executing po/stamp-it commands


Configure summary:

	Source code location .......: .
	Compiler ...................: gcc
	Compiler flags .............: -g -O2
	Enable compile warnings ....: minimum
	Enable more warnings .......: no
	Extra Compiler Warnings ....: -g -O2 -Wall -Wno-unused 
	Debug support ..............: no
	Installing into prefix .....: /usr/local

Type make to build Me TV 2.0.1

Tuttavia il make mi sputa seguente il errore che non sono riuscito a risolvere:

Codice: Seleziona tutto

bash-4.1# make           
make  all-recursive
make[1]: Entering directory `/root/me-tv-2.0.1'
Making all in common
make[2]: Entering directory `/root/me-tv-2.0.1/common'
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/giomm-2.4 -I/usr/lib/giomm-2.4/include -I/usr/include/libxml++-2.6 -I/usr/lib/libxml++-2.6/include -I/usr/include/libxml2     -g -O2 -MT client.o -MD -MP -MF .deps/client.Tpo -c -o client.o client.cc
In file included from client.cc:21:
../common/client.h:25:32: error: giomm/socketclient.h: No such file or directory
make[2]: *** [client.o] Error 1
make[2]: Leaving directory `/root/me-tv-2.0.1/common'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/me-tv-2.0.1'
make: *** [all] Error 2
Effettivamente nel mio sistema il file socketclient.h non esiste. Ho individuato la directory giomm sia in /lib sia in /usr/local ma all'interno il file in questione non c'è. :?:
Voi cosa ne pensate?
Come sempre, un grazie in anticipo a chiunque voglia aiutarmi ;)
Roberto

Avatar utente
masalapianta
Iper Master
Iper Master
Messaggi: 2775
Iscritto il: lun 25 lug 2005, 0:00
Nome Cognome: famoso porco
Kernel: uname -r
Desktop: awesome
Distribuzione: Debian
Località: Roma
Contatta:

Re: Errore compilazione me-tv

Messaggio da masalapianta »

1) l'header file che cerchi appartiene alla libreria glibmm; installa il pacchetto, relativo a quella libreria, che contiene gli header file
2) il termine corretto è directory, directory (o folder) è concettualmente sbagliato perchè da l'idea di un contenitore (mentre una directory è qualcosa di molto simile ad un indice)

Avatar utente
dr_air
Linux 0.x
Linux 0.x
Messaggi: 92
Iscritto il: lun 8 ott 2007, 13:31
Slackware: 13.37
Kernel: 3.2
Desktop: xfce4.6.1
Località: Bracciano

Re: Errore compilazione me-tv

Messaggio da dr_air »

Grazie,
sia per la soluzione al mio problema sia per il chiarimento concettuale directory/folder/directory ;)

Roberto

Avatar utente
dr_air
Linux 0.x
Linux 0.x
Messaggi: 92
Iscritto il: lun 8 ott 2007, 13:31
Slackware: 13.37
Kernel: 3.2
Desktop: xfce4.6.1
Località: Bracciano

Re: Errore compilazione me-tv

Messaggio da dr_air »

Appena ho avuto modo ho provato ad installare il pacchetto glibmm ma risulta già installato.
Googlando con le idee ora un po' più chiare credo di aver capito che il pacchetto in parola contiene l'heather file richiesto in compilazione solamente nelle versioni successive (quella del mio sistema, peraltro proveniente dal repository di slacky, è la 2.22).
Purtroppo già provando a compilare la versione 2.24 il configure si blocca così:

Codice: Seleziona tutto

checking for GLIBMM... configure: error: Package requirements (sigc++-2.0 >= 2.0 glib-2.0 >= 2.24.0 gobject-2.0 >= 2.24.0 gmodule-2.0 >= 2.24.0) were not met:

Requested 'glib-2.0 >= 2.24.0' but version of GLib is 2.22.5
Requested 'gobject-2.0 >= 2.24.0' but version of GObject is 2.22.5
Requested 'gmodule-2.0 >= 2.24.0' but version of GModule is 2.22.5

Ho idea che dovrò aspettare la prossima release stable di slackware per poter superare il problema. :(
Che ne dite?

Rispondi