[Gdal-dev] jpeglib.h not found

Frank Warmerdam warmerdam at pobox.com
Tue Apr 29 08:52:19 EDT 2003


Jack Twilley wrote:
> I would like to take advantage of features in GDAL that were
> implemented after 1.1.8 was released so I downloaded a copy of the
> repository and attempted to build it.
> 
> ./configure ran, but there were errors on the build.
> 
> Here is the source file that failed:
> 
> gcc -c -I../../../port -Wall -fPIC -O2    -DZIP_SUPPORT -I../../zlib
> -DJPEG_SUPPORT -I../../jpeg tif_jpeg.c -o tif_jpeg.o
> tif_jpeg.c:67: jpeglib.h: No such file or directory
> tif_jpeg.c:68: jerror.h: No such file or directory
> 
> These two headers are actually in ../../jpeg/libjpeg/, not
> ../../jpeg/, which is why the compiler can't find them.  I'm not sure
> whether it's better to change the #include statement or the include
> path, since this is my first day with the project.

Jack,

I have committed a fix to frmts/gtiff/libtiff/GNUmakefile to look like this:

ifeq ($(JPEG_SETTING),internal)
ALL_C_FLAGS     :=      $(ALL_C_FLAGS) -I../../jpeg/libjpeg
endif

Instead of:

ifeq ($(JPEG_SETTING),internal)
ALL_C_FLAGS     :=      $(ALL_C_FLAGS) -I../../jpeg
endif

I hadn't encountered this problem before because I have jpeg include files
littered through my system.

Best regards,

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





More information about the Gdal-dev mailing list