[Gdal-dev] Linking on Cygwin platform.

Romain Garrigues romain.garrigues at c-s.cnes.fr
Tue Aug 29 12:23:02 EDT 2006


Hello everybody,

I'm trying to use gdal 1.3.2 on cygwin platform and i have some problems at linking step (while trying to use gdal in another project)
Output errors are :

Linking CXX executable ../../bin/AlignementsQB.exe
/usr/local/lib/libgdal.a(jpeg2000dataset.o): In function `_ZN18JPEG2000RasterBandC2EP15JPEG2000Datasetiii':
/cygdrive/d/ORFEO/generation/cygwin/binaries/libs-externes/gdal/gdal-1.3.2/frmts/jpeg2000/jpeg2000dataset.cpp:333: undefined reference to `_jas_matrix_create'
/usr/local/lib/libgdal.a(jpeg2000dataset.o): In function `_ZN18JPEG2000RasterBandC1EP15JPEG2000Datasetiii':
/cygdrive/d/ORFEO/generation/cygwin/binaries/libs-externes/gdal/gdal-1.3.2/frmts/jpeg2000/jpeg2000dataset.cpp:333: undefined reference to `_jas_matrix_create'
/usr/local/lib/libgdal.a(jpeg2000dataset.o): In function `_ZN18JPEG2000RasterBandD2Ev':
/cygdrive/d/ORFEO/generation/cygwin/binaries/libs-externes/gdal/gdal-1.3.2/frmts/jpeg2000/jpeg2000dataset.cpp:343: undefined reference to `_jas_matrix_destroy'
/usr/local/lib/libgdal.a(jpeg2000dataset.o): In function `_ZN18JPEG2000RasterBandD1Ev':
/cygdrive/d/ORFEO/generation/cygwin/binaries/libs-externes/gdal/gdal-1.3.2/frmts/jpeg2000/jpeg2000dataset.cpp:343: undefined reference to `_jas_matrix_destroy'
/usr/local/lib/libgdal.a(jpeg2000dataset.o): In function `_ZN18JPEG2000RasterBandD0Ev':
/cygdrive/d/ORFEO/generation/cygwin/binaries/libs-externes/gdal/gdal-1.3.2/frmts/jpeg2000/jpeg2000dataset.cpp:343: undefined reference to `_jas_matrix_destroy'
/usr/local/lib/libgdal.a(jpeg2000dataset.o): In function `_ZN18JPEG2000RasterBand10IReadBlockEiiPv':
/cygdrive/d/ORFEO/generation/cygwin/binaries/libs-externes/gdal/gdal-1.3.2/frmts/jpeg2000/jpeg2000dataset.cpp:359: undefined reference to `_jas_image_decode'
/cygdrive/d/ORFEO/generation/cygwin/binaries/libs-externes/gdal/gdal-1.3.2/frmts/jpeg2000/jpeg2000dataset.cpp:368: undefined reference to `_jas_image_readcmpt'
/cygdrive/d/ORFEO/generation/cygwin/binaries/libs-externes/gdal/gdal-1.3.2/frmts/jpeg2000/jpeg2000dataset.cpp:362: undefined reference to `_jas_image_fmttostr'
/usr/local/lib/libgdal.a(jpeg2000dataset.o): In function `_ZN18JPEG2000RasterBand22GetColorInterpretationEv':
/cygdrive/d/ORFEO/generation/cygwin/binaries/libs-externes/gdal/gdal-1.3.2/frmts/jpeg2000/jpeg2000dataset.cpp:435: undefined reference to `_jas_image_decode'
/cygdrive/d/ORFEO/generation/cygwin/binaries/libs-externes/gdal/gdal-1.3.2/frmts/jpeg2000/jpeg2000dataset.cpp:438: undefined reference to `_jas_image_fmttostr'
/usr/local/lib/libgdal.a(jpeg2000dataset.o): In function `_ZN15JPEG2000DatasetD2Ev':
/cygdrive/d/ORFEO/generation/cygwin/binaries/libs-externes/gdal/gdal-1.3.2/frmts/jpeg2000/jpeg2000dataset.cpp:509: undefined reference to `_jas_image_destroy'
/cygdrive/d/ORFEO/generation/cygwin/binaries/libs-externes/gdal/gdal-1.3.2/frmts/jpeg2000/jpeg2000dataset.cpp:510: undefined reference to `_jas_image_clearfmts'
/cygdrive/d/ORFEO/generation/cygwin/binaries/libs-externes/gdal/gdal-1.3.2/frmts/jpeg2000/jpeg2000dataset.cpp:507: undefined reference to `_jas_stream_close'
/usr/local/lib/libgdal.a(jpeg2000dataset.o): In function `_ZN15JPEG2000DatasetD1Ev':
/cygdrive/d/ORFEO/generation/cygwin/binaries/libs-externes/gdal/gdal-1.3.2/frmts/jpeg2000/jpeg2000dataset.cpp:509: undefined reference to `_jas_image_destroy'
/cygdrive/d/ORFEO/generation/cygwin/binaries/libs-externes/gdal/gdal-1.3.2/frmts/jpeg2000/jpeg2000dataset.cpp:510: undefined reference to `_jas_image_clearfmts'
/cygdrive/d/ORFEO/generation/cygwin/binaries/libs-externes/gdal/gdal-1.3.2/frmts/jpeg2000/jpeg2000dataset.cpp:507: undefined reference to `_jas_stream_close'
/usr/local/lib/libgdal.a(jpeg2000dataset.o): In function `_ZN15JPEG2000DatasetD0Ev':
/cygdrive/d/ORFEO/generation/cygwin/binaries/libs-externes/gdal/gdal-1.3.2/frmts/jpeg2000/jpeg2000dataset.cpp:509: undefined reference to `_jas_image_destroy'
/cygdrive/d/ORFEO/generation/cygwin/binaries/libs-externes/gdal/gdal-1.3.2/frmts/jpeg2000/jpeg2000dataset.cpp:510: undefined reference to `_jas_image_clearfmts'
/cygdrive/d/ORFEO/generation/cygwin/binaries/libs-externes/gdal/gdal-1.3.2/frmts/jpeg2000/jpeg2000dataset.cpp:507: undefined reference to `_jas_stream_close'


(There are many others, but same type).
I'm posting here to know if somebody has encountered similar problem ?
I have compiled gdal with some options (./configure --without-python --with-libpng=internal --with-libtiff=internal --with-libjpeg=internal).
Jas fonctions are from Jasper library.
Maybe i have forgotten some options in gdal configuration ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20060829/e0292cee/attachment.html


More information about the Gdal-dev mailing list