libgphoto2 sulla current

Postate qui se avete consigli per migliorare i pacchetti disponibili in questo sito o se avete problemi con installazione, funzionamento o altro.

Moderatore: Staff

Regole del forum
1) Citare in modo preciso il nome del pacchetto.
2) Specificare se discussione/suggerimento o richiesta d'aiuto.
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.
samiel
Staff
Staff
Messaggi: 5511
Iscritto il: ven 16 gen 2004, 0:00
Nome Cognome: Mauro Sacchetto
Slackware: 13.0
Kernel: 2.26
Desktop: KDE
Distribuzione: anche Debian
Località: Venezia

libgphoto2 sulla current

Messaggio da samiel »

La current mi dà più di qualche problema di compilazione...
Alla fine del make delle libgphoto2 2.2.1
mi salta fuori sta sfiza di errori:

Codice: Seleziona tutto

print-camera-list.c:51:36: gphoto2/gphoto2-camera.h: No such file or directory
print-camera-list.c:52:38: gphoto2/gphoto2-port-log.h: No such file or directory
print-camera-list.c:73: warning: type defaults to `int' in declaration of `CameraAbilities'
print-camera-list.c:73: error: syntax error before '*' token
print-camera-list.c:121: warning: type defaults to `int' in declaration of `CameraAbilities'
print-camera-list.c:121: error: syntax error before '*' token
print-camera-list.c: In function `hotplug_camera_func':
print-camera-list.c:127: error: `params' undeclared (first use in this function)
print-camera-list.c:127: error: (Each undeclared identifier is reported only once
print-camera-list.c:127: error: for each function it appears in.)
print-camera-list.c:131: error: `a' undeclared (first use in this function)
print-camera-list.c: In function `basename':
print-camera-list.c:224: error: `gp_system_dir_delim' undeclared (first use in this function)
print-camera-list.c: At top level:
print-camera-list.c:236: warning: type defaults to `int' in declaration of `CameraAbilities'
print-camera-list.c:236: error: syntax error before '*' token
print-camera-list.c: In function `human_camera_func':
print-camera-list.c:239: error: `a' undeclared (first use in this function)
print-camera-list.c:241: error: `i' undeclared (first use in this function)
print-camera-list.c: At top level:
print-camera-list.c:252: warning: type defaults to `int' in declaration of `CameraAbilities'
print-camera-list.c:252: error: syntax error before '*' token
print-camera-list.c: In function `idlist_camera_func':
print-camera-list.c:254: error: `a' undeclared (first use in this function)
print-camera-list.c: At top level:
print-camera-list.c:285: warning: type defaults to `int' in declaration of `CameraAbilities'
print-camera-list.c:285: error: syntax error before '*' token
print-camera-list.c: In function `udev_camera_func':
print-camera-list.c:291: error: `params' undeclared (first use in this function)
print-camera-list.c:295: error: `a' undeclared (first use in this function)
print-camera-list.c: At top level:
print-camera-list.c:381: warning: type defaults to `int' in declaration of `CameraAbilities'
print-camera-list.c:381: error: syntax error before '*' token
print-camera-list.c: In function `fdi_camera_func':
print-camera-list.c:385: error: `a' undeclared (first use in this function)
print-camera-list.c:385: error: `GP_PORT_USB' undeclared (first use in this function)
print-camera-list.c: At top level:
print-camera-list.c:484: warning: type defaults to `int' in declaration of `CameraAbilities'
print-camera-list.c:484: error: syntax error before '*' token
print-camera-list.c: In function `fdi_device_camera_func':
print-camera-list.c:488: error: `a' undeclared (first use in this function)
print-camera-list.c:488: error: `GP_PORT_USB' undeclared (first use in this function)
print-camera-list.c: At top level:
print-camera-list.c:550: error: syntax error before "level"
print-camera-list.c: In function `debug_func':
print-camera-list.c:558: error: `domain' undeclared (first use in this function)
print-camera-list.c:558: error: `level' undeclared (first use in this function)
print-camera-list.c:559: error: `format' undeclared (first use in this function)
print-camera-list.c:559: error: `args' undeclared (first use in this function)
print-camera-list.c: In function `iterate_camera_list':
print-camera-list.c:581: error: `CameraAbilitiesList' undeclared (first use in this function)
print-camera-list.c:581: error: `al' undeclared (first use in this function)
print-camera-list.c:582: error: `CameraAbilities' undeclared (first use in this function)
print-camera-list.c:582: error: syntax error before "a"
print-camera-list.c:585: warning: implicit declaration of function `gp_abilities_list_new'
print-camera-list.c:586: warning: implicit declaration of function `gp_abilities_list_load'
print-camera-list.c:587: warning: implicit declaration of function `gp_abilities_list_count'
print-camera-list.c:600: warning: implicit declaration of function `gp_abilities_list_get_abilities'
print-camera-list.c:600: error: `a' undeclared (first use in this function)
print-camera-list.c:608: warning: implicit declaration of function `gp_abilities_list_free'
print-camera-list.c: In function `main':
print-camera-list.c:741: warning: implicit declaration of function `gp_log_add_func'
print-camera-list.c:741: error: `GP_LOG_ALL' undeclared (first use in this function)
make[2]: *** [print-camera-list.o] Error 1 /code]
Qualcuno ci ha provato con miglior fortuna?

Grazie
M.

Avatar utente
phobos3576
Staff
Staff
Messaggi: 2980
Iscritto il: dom 17 apr 2005, 0:00
Slackware: 13.1
Kernel: 2.6.37-smp
Desktop: KDE 4.5.3

Messaggio da phobos3576 »

Dunque, durante la compilazione, libgphoto2-2.2.1 va a cercare degli headers che si trovano nella directory gphoto2; se questa directory non è presente, viene fatta una ulteriore ricerca in /usr/include/gphoto2 e /usr/local/include/gphoto2.
Se nemmeno queste directory esistono, si ottengono gli errori da te indicati.

E' del tutto ovvio che questa directory non esista visto che il compito di crearla ricade proprio su libgphoto2!!!

Il problema è stato segnalato agli sviluppatori di libgphoto2, i quali hanno risposto di procedere in questo modo:

./configure --prefix=/usr
make all-local
make
make install

Il comando make all-local provvede appunto a creare la directory gphoto2 contenente tutti gli headers necessari per la compilazione.

samiel
Staff
Staff
Messaggi: 5511
Iscritto il: ven 16 gen 2004, 0:00
Nome Cognome: Mauro Sacchetto
Slackware: 13.0
Kernel: 2.26
Desktop: KDE
Distribuzione: anche Debian
Località: Venezia

Messaggio da samiel »

Perfetto, grazie!
Nel frattempo avevo pure scritto
alla mailing list di gphoto.
Uno sviluppatore mi ha risposto:
This will be fixed in later versions.
Adesso sembra compilare, ma ricevo sempre
altri messaggio del tipo:

Codice: Seleziona tutto

Generating docs for file libgphoto2/gphoto2-camera.h...
Error: Layout was not done.  Missing layout plugins?
Error: Layout was not done.  Missing layout plugins?
Error: Layout was not done.  Missing layout plugins?
Error: Layout was not done.  Missing layout plugins?
Error: Could not open image `gphoto2-camera_8h__incl.png' generated by dot!
Error opening map file gphoto2-camera_8h__incl.map for inclusion in the docs!
Error: Layout was not done.  Missing layout plugins?
Error: Layout was not done.  Missing layout plugins?
Error: Layout was not done.  Missing layout plugins?
Error: Layout was not done.  Missing layout plugins?
Error: Could not open image `gphoto2-camera_8h__dep__incl.png' generated by dot!
Error opening map file gphoto2-camera_8h__dep__incl.map for inclusion in the docs!
Ne sai qualcosa?

Thanx
M.

Avatar utente
Loris
Admin
Admin
Messaggi: 7731
Iscritto il: lun 31 mar 2003, 0:00
Nome Cognome: Loris Vincenzi
Località: Gradisca D'Isonzo
Contatta:

Messaggio da Loris »

Mauro... io ho fatto un lavoro "sporco" ho creato il pacchetto con l'errore, l'ho installato e poi ho ricreato il pacchetto...
"Ho una testa piuttosto balzana e comunque non sono quello che credete" - Roger Keith Barrett

samiel
Staff
Staff
Messaggi: 5511
Iscritto il: ven 16 gen 2004, 0:00
Nome Cognome: Mauro Sacchetto
Slackware: 13.0
Kernel: 2.26
Desktop: KDE
Distribuzione: anche Debian
Località: Venezia

Messaggio da samiel »

Grazie, provo anch'io a fare così.
comunque ho comunicato il problema
nella mailing list di libgphoto.
Mi pare che abbia diversi bug,
sta libreria...

M.

Avatar utente
phobos3576
Staff
Staff
Messaggi: 2980
Iscritto il: dom 17 apr 2005, 0:00
Slackware: 13.1
Kernel: 2.6.37-smp
Desktop: KDE 4.5.3

Messaggio da phobos3576 »

Nel mio caso, con il metodo che ho descritto prima, la compilazione va a buon fine senza nessun problema.

Un altro metodo potrebbe essere il seguente:

1) installare il package di Loris con installpkg
2) ricompilare il codice sorgente con

./configure --prefix=/usr
make

3) disinstallare il package di Loris con removepkg
4) installare il sorgente ricompilato con make install

samiel
Staff
Staff
Messaggi: 5511
Iscritto il: ven 16 gen 2004, 0:00
Nome Cognome: Mauro Sacchetto
Slackware: 13.0
Kernel: 2.26
Desktop: KDE
Distribuzione: anche Debian
Località: Venezia

Messaggio da samiel »

Ho provato quel metodo, e come scrvevo in un post precedente
alla fine compila, ma quegli errori rimangono...

M.

Avatar utente
gohanz
Staff
Staff
Messaggi: 5832
Iscritto il: mar 30 nov 2004, 0:00

Messaggio da gohanz »

samiel ha scritto:Perfetto, grazie!
Nel frattempo avevo pure scritto
alla mailing list di gphoto.
Uno sviluppatore mi ha risposto:
This will be fixed in later versions.
Adesso sembra compilare, ma ricevo sempre
altri messaggio del tipo:

Codice: Seleziona tutto

Generating docs for file libgphoto2/gphoto2-camera.h...
Error: Layout was not done.  Missing layout plugins?
Error: Layout was not done.  Missing layout plugins?
Error: Layout was not done.  Missing layout plugins?
Error: Layout was not done.  Missing layout plugins?
Error: Could not open image `gphoto2-camera_8h__incl.png' generated by dot!
Error opening map file gphoto2-camera_8h__incl.map for inclusion in the docs!
Error: Layout was not done.  Missing layout plugins?
Error: Layout was not done.  Missing layout plugins?
Error: Layout was not done.  Missing layout plugins?
Error: Layout was not done.  Missing layout plugins?
Error: Could not open image `gphoto2-camera_8h__dep__incl.png' generated by dot!
Error opening map file gphoto2-camera_8h__dep__incl.map for inclusion in the docs!
Ne sai qualcosa?

Thanx
M.
L'errore si ripresenta anche compilando altri programmi, che usano Graphviz per generare la documentazione! Quindi il problema sta in GraphViz , cui mancano questi Layout Plugins? :roll:

samiel
Staff
Staff
Messaggi: 5511
Iscritto il: ven 16 gen 2004, 0:00
Nome Cognome: Mauro Sacchetto
Slackware: 13.0
Kernel: 2.26
Desktop: KDE
Distribuzione: anche Debian
Località: Venezia

Messaggio da samiel »

Vedo che la tua segnalazione termina con una domanda.
Che facciamo, segnaliamo la cosa agli sviluppatori?

M.

Avatar utente
gohanz
Staff
Staff
Messaggi: 5832
Iscritto il: mar 30 nov 2004, 0:00

Messaggio da gohanz »

Credo di aver risolto. Prova a dare

> dot -c

Questo comando crea un file config in /usr/lib/graphviz, in cui vengono scritte le configurazioni del plugin.

Forse sarebbe bene ad inserie il comando nel doinst.sh dello SlackBuild di GraphViz.

samiel
Staff
Staff
Messaggi: 5511
Iscritto il: ven 16 gen 2004, 0:00
Nome Cognome: Mauro Sacchetto
Slackware: 13.0
Kernel: 2.26
Desktop: KDE
Distribuzione: anche Debian
Località: Venezia

Messaggio da samiel »

Hai ragione, funge!
Proponiamo a Loris
di seguire la tua indicazione...

M.

Avatar utente
gohanz
Staff
Staff
Messaggi: 5832
Iscritto il: mar 30 nov 2004, 0:00

Messaggio da gohanz »

Si ho scritto a Loris per modificare il pacchetto di Graphviz! :D

samiel
Staff
Staff
Messaggi: 5511
Iscritto il: ven 16 gen 2004, 0:00
Nome Cognome: Mauro Sacchetto
Slackware: 13.0
Kernel: 2.26
Desktop: KDE
Distribuzione: anche Debian
Località: Venezia

Messaggio da samiel »

Cosa che non so fare: il comando da inserire
nel doinst.sh dovrebbe operare DOPO che sono stati
ricreati i link simbolici. Me se uso il solito metodo,
cioè zcat ... doinst.sh.gz, il comando viene
effettuato prima della ricostruzione dei link.
Cto delat?

Grazie
M.

Avatar utente
gohanz
Staff
Staff
Messaggi: 5832
Iscritto il: mar 30 nov 2004, 0:00

Messaggio da gohanz »

Samiel io faccio così!
requiredbuilder -v -y -s $CWD $PKG
makepkg -l y -c n $CWD/$NAME-$VERSION-$ARCH-$BUILD.tgz
echo "dot -c" >> $PKG/install/doinst.sh
makepkg -l n -c n $CWD/$NAME-$VERSION-$ARCH-$BUILD.tgz

In pratica faccio due passaggi di makepkg, con il primo scrivo i link simbolici.
Poi copio alla fine dot -c, infine ricostruisco il pacchetto senza ricreare i link simobolici

samiel
Staff
Staff
Messaggi: 5511
Iscritto il: ven 16 gen 2004, 0:00
Nome Cognome: Mauro Sacchetto
Slackware: 13.0
Kernel: 2.26
Desktop: KDE
Distribuzione: anche Debian
Località: Venezia

Messaggio da samiel »

Funziona anche se non è pulitissima come cosa.
Bisognerebbe capire se si può gestire diversamente
il doinst.sh...

Grazie
M.

Rispondi