[Gfoss] tentativo di building spatialite in ubuntu 10.10

Ciao lista, in particolare Sandro,
sto provando a compilare spatialite 2.4.0 RC4 in Ubuntu 10.10.
Mi sembra di aver compilato senza problemi libspatialite_amalgamation-2.4.0 e spatialite-tools-2.4.0.
Quando ho provato a lanciare ./configure in /spatialite_gui-1.4.0 ho avuto questo errore

configure: error: 'libgaiagtaphics' is required but it doesn't seems to be installed on this system.

e qui ti segnalo solamente che credo ci sia un refuso nell'errore: "libgaiagtaphics" invece di "libgaiagraphics".
Poco male, ho provato a compilare /libgaiagraphics-0.4, avendo però come risultato:

ale@dobby:~/sources/libgaiagraphics-0.4$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... 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 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 for stdlib.h... (cached) yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for inttypes.h... (cached) yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking jerror.h usability... yes
checking jerror.h presence... yes
checking for jerror.h... yes
checking geotiff.h usability... no
checking geotiff.h presence... no
checking for geotiff.h... no
configure: error: cannot find geotiff.h, bailing out

e qui mi sono bloccato, avendo controllato di avere le varie librerie geotiff possibili installate...
Che si fa?
Sto facendo i passi giusti o ho sbagliato strada?
grazie
Ale

2010/11/30 Alessandro Sarretta <alessandro.sarretta@inwind.it>:

e qui mi sono bloccato, avendo controllato di avere le varie librerie
geotiff possibili installate...
Che si fa?

mi sa che ti manca libgeotiff-dev

grazie
Ale

ciao
Luca

On Tue, 30 Nov 2010 01:57:41 +0100, Alessandro Sarretta wrote

Ciao lista, in particolare Sandro,
sto provando a compilare spatialite 2.4.0 RC4 in Ubuntu 10.10.

Ciao Alessandro,
alle 1:57 di notte la gente normale dorme (oppure fa
sesso): il fatto che invece tu a quell'ora ti metti
a compilare SpatiaLite mi preoccupa non poco :slight_smile:
[anche se devo confessare che a volte capita anche
a me ...]

configure: error: 'libgaiagtaphics' is required but it doesn't seems
to be installed on this system.
e qui ti segnalo solamente che credo ci sia un refuso nell'errore:
"libgaiagtaphics" invece di "libgaiagraphics".

si, hai ragione: c'è un typo grossolano, grazie per
avermelo segnalato.
ma interessa solo il messaggio di errore, quindi è
sostanzialmente innocuo

checking geotiff.h usability... no
checking geotiff.h presence... no
checking for geotiff.h... no
configure: error: cannot find geotiff.h, bailing out

e qui mi sono bloccato, avendo controllato di avere le varie
librerie geotiff possibili installate...

questo è un problema abbastatanza *rognoso*
libgeotiff sembra divertirsi in modo perverso ad
installate gli header files in modo differente su
ciascuno piattaforma:
- su WinOz (ma mi pare anche su CentOs) gli headers
  stanno direttamente dentro a /usr/include
- invece su Debian/Ubuntu li trovi dentro a
  /usr/include/geotiff

a quanto mi risulta libgeotiff non supporta nessun
metodo "elegante" per automatizzare il riconoscimento
della specifica configurazione (tipo pkg-config)

comunque aggirare il problema su Ubuntu/Debian è
molto facile: basta semplicemente che tu definisca
esplicitamente una variabile di ambiente:

export "CFLAGS=-I/usr/include/geotiff"
./configure
make

vedrai che poi funziona tutto (in pratica spieghi
a ./configure che deve andarsi a cercare gli headers
anche dentro a /usr/include/geotiff)

ciao Sandro

Ciao Sandro, i tuoi suggerimenti sono stati risolutivi!
Dopo aver installato un po' di librerie mancanti tipo "libcairo" e varie altre legate a "wx" ora ho la mia spatialite_gui funzionante!
Grazie
Ale

On 30/11/10 09:23, a.furieri@lqt.it wrote:

On Tue, 30 Nov 2010 01:57:41 +0100, Alessandro Sarretta wrote

Ciao lista, in particolare Sandro,
sto provando a compilare spatialite 2.4.0 RC4 in Ubuntu 10.10.

checking geotiff.h usability... no
checking geotiff.h presence... no
checking for geotiff.h... no
configure: error: cannot find geotiff.h, bailing out

e qui mi sono bloccato, avendo controllato di avere le varie
librerie geotiff possibili installate...

questo è un problema abbastatanza *rognoso*
libgeotiff sembra divertirsi in modo perverso ad
installate gli header files in modo differente su
ciascuno piattaforma:
- su WinOz (ma mi pare anche su CentOs) gli headers
   stanno direttamente dentro a /usr/include
- invece su Debian/Ubuntu li trovi dentro a
   /usr/include/geotiff

a quanto mi risulta libgeotiff non supporta nessun
metodo "elegante" per automatizzare il riconoscimento
della specifica configurazione (tipo pkg-config)

comunque aggirare il problema su Ubuntu/Debian è
molto facile: basta semplicemente che tu definisca
esplicitamente una variabile di ambiente:

export "CFLAGS=-I/usr/include/geotiff"
./configure
make

vedrai che poi funziona tutto (in pratica spieghi
a ./configure che deve andarsi a cercare gli headers
anche dentro a /usr/include/geotiff)

ciao Sandro