Re: [gdal-dev] Build gdal 1.5.2 on FreeBSD

2008-10-15 Thread Ben Madin

G'day Markus,

I didn't realise I needed to do both - so that got me over that hump,  
but now it is hung up on jpeg 2000 (which I don't seem to be able to  
turn off using --with-jasper=NO)


So I'm getting this...

gmake -C jpeg2000 install-obj
gmake[2]: Entering directory `/usr/home/ben/gdal-1.5.2/frmts/jpeg2000'
/bin/sh /usr/home/ben/gdal-1.5.2/libtool --mode=compile --tag=CXX g++ - 
g -O2  -Wall  -I/usr/home/ben/gdal-1.5.2/port -I/usr/home/ben/ 
gdal-1.5.2/gcore -I/usr/home/ben/gdal-1.5.2/alg -I/usr/home/ben/ 
gdal-1.5.2/ogr -I/usr/home/ben/gdal-1.5.2/ogr/ogrsf_frmts  - 
DOGR_ENABLED -I/usr/home/ben/gdal-1.5.2/port  -c -o ../o/ 
jpeg2000dataset.o jpeg2000dataset.cpp
libtool: compile:  g++ -g -O2 -Wall -I/usr/home/ben/gdal-1.5.2/port -I/ 
usr/home/ben/gdal-1.5.2/gcore -I/usr/home/ben/gdal-1.5.2/alg -I/usr/ 
home/ben/gdal-1.5.2/ogr -I/usr/home/ben/gdal-1.5.2/ogr/ogrsf_frmts - 
DOGR_ENABLED -I/usr/home/ben/gdal-1.5.2/port -c jpeg2000dataset.cpp  - 
fPIC -DPIC -o ../o/.libs/jpeg2000dataset.o
jpeg2000dataset.cpp:34:27: error: jasper/jasper.h: No such file or  
directory

jpeg2000dataset.cpp:147: error: 'jas_stream_t' has not been declared
jpeg2000dataset.cpp:148: error: 'jas_stream_t' has not been declared
jpeg2000dataset.cpp:154: warning: 'jp2_box_get' initialized and  
declared 'extern'


etc...

I've tried with --with-jpeg=internal and without in the ./configure.

I have a libjasper in /usr/local/lib, and a libjpeg - no mention of  
jpeg 2000 though.


cheers

Ben





On 15/10/2008, at 2:49 PM, Markus Neteler wrote:

On Wed, Oct 15, 2008 at 5:23 AM, Ben Madin [EMAIL PROTECTED] 
 wrote:

G'day all,

after failing to build 1.5.0 with the ports collection on FreeBSD I  
have

downloaded sources and tried from scratch using the default configure

...

NetCDF support:no
LIBPNG support:internal
LIBTIFF support:   external (BigTIFF=no)
LIBGEOTIFF support:external


Since you requested the external LIBTIFF, you will have to install it.
Or:
run configure with additionally
  --with-geotiff=internal --with-libtiff=internal

to use the built-in LIBTIFF.

Markus


--

Ben Madin
REMOTE INFORMATION

t : +61 8 9192 5455
f : +61 8 9192 5535
m : 0448 887 220
Broome   WA   6725

[EMAIL PROTECTED]



Out here, it pays to 
know...


___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


Re: [gdal-dev] Build gdal 1.5.2 on FreeBSD

2008-10-15 Thread Frank Warmerdam

Ben Madin wrote:

G'day Markus,

I didn't realise I needed to do both - so that got me over that hump, 
but now it is hung up on jpeg 2000 (which I don't seem to be able to 
turn off using --with-jasper=NO)


Ben,

Try instead --with-jasper=no or --without-jasper.  The configure logic
is case sensitive and does not treat NO the same as no.

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, [EMAIL PROTECTED]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


[gdal-dev] Build gdal 1.5.2 on FreeBSD

2008-10-14 Thread Ben Madin

G'day all,

after failing to build 1.5.0 with the ports collection on FreeBSD I  
have downloaded sources and tried from scratch using the default  
configure (actually, I want php but for mapscript, so I don't know if  
I need to specify it here as swig was giving me enormous problems in  
the port build)


I'm really not a sources person, so apologies in advance if I have  
something really basic wrong - it took me ages to work out using gmake  
instead of make..!


so configure gave me this :

GDAL is now configured for i386-unknown-freebsd7.0

  Installation directory:/usr/local
  C compiler:gcc -g -O2
  C++ compiler:  g++ -g -O2

  LIBTOOL support:   yes

  LIBZ support:  external
  GRASS support: no
  CFITSIO support:   no
  PCRaster support:  internal
  NetCDF support:no
  LIBPNG support:internal
  LIBTIFF support:   external (BigTIFF=no)
  LIBGEOTIFF support:external
  LIBJPEG support:   internal
  LIBGIF support:internal
  OGDI support:  no
  HDF4 support:  no
  HDF5 support:  no
  Kakadu support:no
  JasPer support:yes (GeoJP2=no)
  ECW support:   no
  MrSID support: no
  GRIB support:  no
  cURL support (wms/wcs/...):yes
  PostgreSQL support:yes
  MySQL support: no
  Xerces-C support:no
  Expat support: yes
  ODBC support:  no
  PGeo support:  no
  OCI support:   no
  SDE support:   no
  DODS support:  no
  SQLite support:no
  DWGdirect support  no
  PANORAMA GIS support:  no
  INFORMIX DataBlade support:no
  GEOS support:  yes


  Old-gen python  no
  SWIG Bindings:  no

  Statically link PROJ.4:no
  enable OGR building:   yes
  enable pthread support:no
  hide internal symbols: no

But when I gmake, I get some OK, then :

gmake[2]: Entering directory `/usr/home/ben/gdal-1.5.2/frmts/gtiff'
/bin/sh /usr/home/ben/gdal-1.5.2/libtool --mode=compile --tag=CXX g++ - 
g -O2  -Wall  -I/usr/home/ben/gdal-1.5.2/port -I/usr/home/ben/ 
gdal-1.5.2/gcore -I/usr/home/ben/gdal-1.5.2/alg -I/usr/home/ben/ 
gdal-1.5.2/ogr -I/usr/home/ben/gdal-1.5.2/ogr/ogrsf_frmts  - 
DOGR_ENABLED -I/usr/home/ben/gdal-1.5.2/port  -c -o ../o/geotiff.o  
geotiff.cpp
libtool: compile:  g++ -g -O2 -Wall -I/usr/home/ben/gdal-1.5.2/port -I/ 
usr/home/ben/gdal-1.5.2/gcore -I/usr/home/ben/gdal-1.5.2/alg -I/usr/ 
home/ben/gdal-1.5.2/ogr -I/usr/home/ben/gdal-1.5.2/ogr/ogrsf_frmts - 
DOGR_ENABLED -I/usr/home/ben/gdal-1.5.2/port -c geotiff.cpp  -fPIC - 
DPIC -o ../o/.libs/geotiff.o

geotiff.cpp:33:20: error: tiffio.h: No such file or directory
geotiff.cpp:34:21: error: xtiffio.h: No such file or directory
geotiff.cpp:35:21: error: geotiff.h: No such file or directory
geotiff.cpp:36:27: error: geo_normalize.h: No such file or directory
geotiff.cpp:37:23: error: geovalues.h: No such file or directory
In file included from geotiff.cpp:38:
tif_ovrcache.h:46: error: 'uint32' does not name a type
tif_ovrcache.h:47: error: 'uint32' does not name a type
tif_ovrcache.h:49: error: 'uint32' does not name a type
tif_ovrcache.h:50: error: 'uint32' does not name a type
tif_ovrcache.h:51: error: 'uint16' does not name a type
tif_ovrcache.h:52: error: 'uint16' does not name a type
tif_ovrcache.h:62: error: 'toff_t' does not name a type
tif_ovrcache.h:63: error: ISO C++ forbids declaration of 'TIFF' with  
no type

tif_ovrcache.h:63: error: expected ';' before '*' token
tif_ovrcache.h:68: error: 'TIFF' was not declared in this scope
tif_ovrcache.h:68: error: 'hTIFF' was not declared in this scope
tif_ovrcache.h:68: error: expected primary-expression before 'int'
tif_ovrcache.h:68: error: initializer expression list treated as  
compound expression
tif_ovrcache.h:72: error: variable or field 'TIFFBuildOverviews'  
declared void

tif_ovrcache.h:72: error: 'TIFF' was not declared in this scope
tif_ovrcache.h:72: error: expected primary-expression before ',' token
tif_ovrcache.h:72: error: expected primary-expression before 'int'
tif_ovrcache.h:72: error: expected primary-expression before 'int'
tif_ovrcache.h:72: error: expected primary-expression before 'int'
tif_ovrcache.h:72: error: expected primary-expression before 'const'
tif_ovrcache.h:73: error: expected primary-expression before 'int'
tif_ovrcache.h:73: error: expected primary-expression before 'void'
tif_ovrcache.h:75: error: variable or field 'TIFF_ProcessFullResBlock'  
declared void

tif_ovrcache.h:75: error: 'TIFF' was not declared in this scope
tif_ovrcache.h:75: error: 'hTIFF' was not declared in this scope
tif_ovrcache.h:75: error: expected primary-expression before 'int'
tif_ovrcache.h:76: error: expected primary-expression before 'int'
tif_ovrcache.h:76: error: expected primary-expression