[Gdal-dev] gdal > 1.2.4: configure fails on FreeBSD

Benjamin Thelen bt at ccgis.de
Fri Aug 12 05:04:38 EDT 2005


Frank Warmerdam wrote:
> On 8/11/05, Benjamin Thelen <bt at ccgis.de> wrote:
> 
>>the 1.3.0beta configure script runs successfully on FreeBSD 4.11 and
>>5.4, but building fails on both, please see the output below. I don't
>>have geotiff installed, but I have tiff-3.7.3 installed from ports on
>>both boxes. So, I don't understand what it's about this "xtiffio.h:10:
>>tiffio.h: No such file or directory".
> 
> 
> Benjamin, 
> 
> Where is the tiffio.h in your installed tree?  In /usr/include?
> I imagine you can fix this by configuring GDAL with "--with-libtiff=internal"
> but I would like to know why it isn't working properly with the installed
> version. 
> 
> Best regards,


Hello Frank, hello Tom,

I found tiffio.h here:

/usr/local/include/tiffio.h
/usr/local/include/tiffio.hxx



I'd like to quote an e-mail I received off-list from Tom Russo this 
morning. I suppose this would be an explanation.


"I build gdal on freebsd (4.11 and 5.4) all the time.  The important 
thing to remember is that freebsd installs almost every part of the 
ports collection into /usr/local, not /usr.

To configure gdal properly, you need to use --with-local=/usr/local
Doing so will make CFLAGS, CPPFLAGS, LDFLAGS and LIBS right to find all 
your ports-installed headers."





But it doesn't work (at least for me)!  But I also have to say, that I 
never had to supply "--with-local=/usr/local" up to gdal-1.2.6. Has 
something changed, that this is now required?


/bin/sh ../libtool --mode=compile gcc -Wall  -O2 -I/usr/local/include 
-I../por t -I../gcore -I../alg -I../ogr -I../ogr/ogrsf_frmts 
-I/usr/local/include -I../po rt  -c -o gdal_crs.o gdal_crs.c
  gcc -Wall -O2 -I/usr/local/include -I../port -I../gcore -I../alg 
-I../ogr -I../ ogr/ogrsf_frmts -I/usr/local/include -I../port -c 
gdal_crs.c  -fPIC -DPIC -o .li bs/gdal_crs.o
In file included from gdal_crs.c:80:
gdal_alg.h:112: syntax error before `GDALComputeMedianCutPCT'
gdal_alg.h:121: syntax error before `GDALDitherRGB2PCT'
gdal_alg.h:129: syntax error before `GDALChecksumImage'
gdal_alg.h:222: syntax error before `GDALSimpleImageWarp'
gdal_alg.h:232: syntax error before `GDALSuggestedWarpOutput'
gmake[1]: *** [gdal_crs.o] Fehler 1
gmake[1]: Leaving directory `/data/src/gdal-1.3.0b1/alg'
gmake: *** [core-target] Fehler 2




I then tried "--with-libtiff=internal". I think building now fails at 
another point: "jasper/jasper.h: No such file or directory". Please see 
the output below.

I found jasper.h here:
/usr/local/include/jasper/jasper.h


Hope that helps!


Thanks Frank, thanks Tom!
Ben





gmake[2]: Entering directory `/data/src/gdal-1.3.0b1/frmts/rmf'
/bin/sh ../../libtool --mode=compile g++ -Wall  -O2   -I../../port 
-I../../gcore -I../../alg -I../../ogr -I../../ogr/ogrsf_frmts 
-I../../port  -c -o ../o/rmfdataset.o rmfdataset.cpp
  g++ -Wall -O2 -I../../port -I../../gcore -I../../alg -I../../ogr 
-I../../ogr/ogrsf_frmts -I../../port -c rmfdataset.cpp  -fPIC -DPIC -o 
../o/.libs/rmfdataset.o
rmfdataset.cpp: In method `enum CPLErr RMFRasterBand::IWriteBlock(int, 
int, void *)':
rmfdataset.cpp:459: warning: unused variable `GUInt32 i'
rmfdataset.cpp: In function `static class GDALDataset * 
RMFDataset::Open(GDALOpenInfo *)':
rmfdataset.cpp:1029: warning: `enum GDALDataType eType' might be used 
uninitialized in this function
  g++ -Wall -O2 -I../../port -I../../gcore -I../../alg -I../../ogr 
-I../../ogr/ogrsf_frmts -I../../port -c rmfdataset.cpp -o 
../o/rmfdataset.o >/dev/null 2>&1
gmake[2]: Leaving directory `/data/src/gdal-1.3.0b1/frmts/rmf'
gmake -C bsb install-obj
gmake[2]: Entering directory `/data/src/gdal-1.3.0b1/frmts/bsb'
/bin/sh ../../libtool --mode=compile gcc -Wall  -O2   -I../../port 
-I../../gcore -I../../alg -I../../ogr -I../../ogr/ogrsf_frmts 
-I../../port  -c -o ../o/bsb_read.o bsb_read.c
  gcc -Wall -O2 -I../../port -I../../gcore -I../../alg -I../../ogr 
-I../../ogr/ogrsf_frmts -I../../port -c bsb_read.c  -fPIC -DPIC -o 
../o/.libs/bsb_read.o
  gcc -Wall -O2 -I../../port -I../../gcore -I../../alg -I../../ogr 
-I../../ogr/ogrsf_frmts -I../../port -c bsb_read.c -o ../o/bsb_read.o 
 >/dev/null 2>&1
/bin/sh ../../libtool --mode=compile g++ -Wall  -O2   -I../../port 
-I../../gcore -I../../alg -I../../ogr -I../../ogr/ogrsf_frmts 
-I../../port  -c -o ../o/bsbdataset.o bsbdataset.cpp
  g++ -Wall -O2 -I../../port -I../../gcore -I../../alg -I../../ogr 
-I../../ogr/ogrsf_frmts -I../../port -c bsbdataset.cpp  -fPIC -DPIC -o 
../o/.libs/bsbdataset.o
  g++ -Wall -O2 -I../../port -I../../gcore -I../../alg -I../../ogr 
-I../../ogr/ogrsf_frmts -I../../port -c bsbdataset.cpp -o 
../o/bsbdataset.o >/dev/null 2>&1
gmake[2]: Leaving directory `/data/src/gdal-1.3.0b1/frmts/bsb'
gmake -C jpeg2000 install-obj
gmake[2]: Entering directory `/data/src/gdal-1.3.0b1/frmts/jpeg2000'
/bin/sh ../../libtool --mode=compile g++ -Wall  -O2   -g -O2 
-I../../port -I../../gcore -I../../alg -I../../ogr 
-I../../ogr/ogrsf_frmts -I../libjasper/include  -I../../port  -c -o 
../o/jpeg2000dataset.o jpeg2000dataset.cpp
  g++ -Wall -O2 -g -O2 -I../../port -I../../gcore -I../../alg 
-I../../ogr -I../../ogr/ogrsf_frmts -I../libjasper/include -I../../port 
-c jpeg2000dataset.cpp  -fPIC -DPIC -o ../o/.libs/jpeg2000dataset.o
jpeg2000dataset.cpp:96: jasper/jasper.h: No such file or directory
gmake[2]: *** [../o/jpeg2000dataset.o] Fehler 1
gmake[2]: Leaving directory `/data/src/gdal-1.3.0b1/frmts/jpeg2000'
gmake[1]: *** [jpeg2000-install-obj] Fehler 2
gmake[1]: Leaving directory `/data/src/gdal-1.3.0b1/frmts'
gmake: *** [frmts-target] Fehler 2









More information about the Gdal-dev mailing list