[Gdal-dev] Can't compile with jasper inside

Fu Chen fchen at ne.rsgs.ac.cn
Tue Oct 21 22:52:59 EDT 2003


Hi!
I try to use jasper in gdal. I uncommented the nmake.opt and set the right directory.

# Uncomment for JasPer based JPEG2000 support
JASPER_DIR = d:\jasper-1.700.2.uuid
JASPER_INCLUDE = -I$(JASPER_DIR)\src\libjasper\include -DJAS_WIN_MSVC_BUILD
JASPER_LIB = $(JASPER_DIR)\src\msvc\Win32_Release\libjasper.lib

And compile work well, for example

D:\gdalcvs-031015\gdal\frmts>call ..\submake.bat jpeg2000 
 copy *.obj ..\o
jpeg2000dataset.obj

But when i use gdalinfo-formats, there isn't a jpeg2000 inside and when i use it to read a jp2 file, it can't recognize it. 

the formats list is:

D:\gdalcvs-031015\gdal>apps\gdalinfo --formats
Supported Formats:
  VRT: Virtual Raster
  GTiff: GeoTIFF
  NITF: National Imagery Transmission Format
  HFA: Erdas Imagine Images (.img)
  SAR_CEOS: CEOS SAR Image
  CEOS: CEOS Image
  ELAS: ELAS
  AIG: Arc/Info Binary Grid
  AAIGrid: Arc/Info ASCII Grid
  SDTS: SDTS Raster
  DTED: DTED Elevation Raster
  PNG: Portable Network Graphics
  JPEG: JPEG JFIF
  MEM: In Memory Raster
  JDEM: Japanese DEM (.mem)
  GIF: Graphics Interchange Format (.gif)
  ESAT: Envisat Image Format
  BSB: Maptech BSB Nautical Charts
  XPM: X11 PixMap Format
  BMP: MS Windows Device Independent Bitmap
  PCIDSK: PCIDSK Database File
  PNM: Portable Pixmap Format (netpbm)
  DOQ1: USGS DOQ (Old Style)
  DOQ2: USGS DOQ (New Style)
  ENVI: ENVI .hdr Labelled
  EHdr: ESRI .hdr Labelled
  PAux: PCI .aux Labelled
  MFF: Atlantis MFF Raster
  MFF2: Atlantis MFF2 (HKV) Raster
  FujiBAS: Fuji BAS Scanner Image
  GSC: GSC Geogrid
  FAST: EOSAT FAST Format
  L1B: NOAA Polar Orbiter Level 1b Data Set
  FIT: FIT Image
  USGSDEM: USGS Optional ASCII DEM
  GXF: GeoSoft Grid Exchange Format

What's up? Anything I missed?
Thanks!!




More information about the Gdal-dev mailing list