[gdal-dev] #include tiffio.h in gtiff/libgeotiff/

Ari Jolma ari.jolma at gmail.com
Thu Apr 12 03:10:01 PDT 2018


It seems to me that frmts/gtiff/libgeotiff/GNUmakefile should also 
override the default rule for %.$(OBJ_EXT) in GDALmake.opt

%.$(OBJ_EXT):    %.c
     $(CC) $(GDAL_INCLUDE) $(ALL_C_FLAGS) -c -o $@ $<

in addition to the rule for ../../o/%.$(OBJ_EXT)

BTW, could somebody explain why the two sets of .lo and .o: one in 
current directory and one in ../../frmts/o?

Ari

On 12.04.2018 09:56, Ari Jolma wrote:
> The file frmts/gtiff/libgeotiff/xtiffio.h #include's "tiffio.h", which 
> is in frmts/gtiff/libtiff. However, when compiling in this directory 
> frmts/gtiff/libtiff is not included.
>
> In my Linux Mint the compiler picks up tiffio.h from 
> /usr/include/x86_64-linux-gnu/ but when I compile in freebsd I get 
> ./xtiffio.h:10:10: fatal error: 'tiffio.h' file not found
>
> This was caught by a CPAN tester testing Alien::gdal (a Perl package 
> which downloads and compiles GDAL): 
> http://www.cpantesters.org/cpan/report/0903f568-3e0e-11e8-a1cf-bb670eaac09d
>
> Am I missing something or is this a bug / configuration error?
>
> Ari
>
>



More information about the gdal-dev mailing list