[Gdal-dev] Compiling errors under GDAL in cvs
Robert Osfield
robert at openscenegraph.com
Mon Jun 16 16:40:12 EDT 2003
Hi All,
I'm currently working up to building Ben Discoe's VTP suite, and as part of
this am trying to get GDAL compiled up. I've already successfully compiled
and installed gdal-1.1.8, but alas the latest release of VTP requires GDAL's
cvs version. So I'm now working on getting GDAL in CVS compiled and
installed. I'm working under Suse8.2 with g++ 3.3.
I've ran .configure, did make, after a reasonable amount of successful
compiling I came across the following compile error:
make[2]: Entering directory `/home/robert/VTP/gdal/frmts/jpeg2000'
c++ -c -I../.. -I../../port -I../../core -I../../ogr -Wall -fPIC -O2
jpeg2000dataset.cpp -o jpeg2000dataset.o -I. -I. -I../libjasper/include
-g -O2
jpeg2000dataset.cpp: In member function `virtual GDALColorInterp
JPEG2000RasterBand::GetColorInterpretation()':
jpeg2000dataset.cpp:437: error: `jas_image_clrspc' undeclared (first use this
function)
jpeg2000dataset.cpp:437: error: (Each undeclared identifier is reported only
once for each function it appears in.)
jpeg2000dataset.cpp:437: error: `jas_clrspc_fam' undeclared (first use this
function)
jpeg2000dataset.cpp:438: error: `JAS_CLRSPC_FAM_GRAY' undeclared (first use
this function)
jpeg2000dataset.cpp:441: error: `JAS_CLRSPC_FAM_RGB' undeclared (first use
this
function)
jpeg2000dataset.cpp: In function `GDALDataset* JPEG2000CreateCopy(const char*,
GDALDataset*, int, char**, int (*)(double, const char*, void*), void*)':
jpeg2000dataset.cpp:991: error: `JAS_CLRSPC_SGRAY' undeclared (first use this
function)
jpeg2000dataset.cpp:991: error: `jas_image_setclrspc' undeclared (first use
this function)
jpeg2000dataset.cpp:996: error: `JAS_CLRSPC_SRGB' undeclared (first use this
function)
jpeg2000dataset.cpp:1022: error: `JAS_CLRSPC_UNKNOWN' undeclared (first use
this function)
make[2]: *** [jpeg2000dataset.o] Error 1
make[2]: Leaving directory `/home/robert/VTP/gdal/frmts/jpeg2000'
Looking at the docs in the frmts/jpeg2000 directory led me to download the
patched version of jasper. I then ran ./configure and make on it, but came
across the error :
make[2]: Entering directory `/home/robert/VTP/jasper-1.700.2.uuid/src/appl'
Makefile:360: warning: overriding commands for target `jiv'
Makefile:348: warning: ignoring old commands for target `jiv'
/bin/sh ../../libtool --mode=link gcc -g -O2 -W -Wall -Wno-long-long -Wformat
-Wmissing-prototypes -Wstrict-prototypes -pedantic -o jiv jiv.o
../libjasper/libjasper.la -lglut -lGL -lGLU -lSM -lICE -lX11 -lXmu -lXi
-lXext -lXt -L/usr/X11R6/lib -lm -ljpeg
libtool: link: cannot find the library `/usr/lib/libGLU.la'
Now I have libGLU :
ls /usr/lib/libGLU*
/usr/lib/libGLU.so /usr/lib/libGLU.so.1 /usr/lib/libGLU.so.1.3
But alas no libGLU.la :-|
Suggestions? Would it be easist to mod jasper? Disable the compile of
jpeg2000? If so what option should I use with configure in GDAL?
Thanks for any help you can provide,
Robert.
More information about the Gdal-dev
mailing list