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.
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.
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.
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!
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?
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?
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