OSGeo / libgeotiff

Official repository of the libgeotiff project
182 stars 70 forks source link

Configure fails because it does not find libz although --with-libz is given. #7

Closed ajolma closed 5 years ago

ajolma commented 5 years ago

When libz is not where it normally would be, configure fails testing libtiff because it does not find libz.so.

Adding LIBS="-L${with_zip}/lib -lz $LIBS" to line 143 in configure.ac fixes the problem.

configure:15019: checking for TIFFOpen in -ltiff
configure:15044: gcc -o conftest -g -O2 -O3 -DNDEBUG   conftest.c -ltiff -lm -L/home/ajolma/iptim/server/parts/tiff/lib -ltiff -lz -lm   >&5
/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status

vs after the fix

configure:15061: checking for TIFFOpen in -ltiff
configure:15086: gcc -o conftest -g -O2 -O3 -DNDEBUG   conftest.c -ltiff -lm -L/home/ajolma/iptim/server/parts/tiff/lib -ltiff -L/home/ajolma/iptim/server/parts/zlib/lib -lz -lz -lm   >&5
configure:15086: $? = 0
configure:15095: result: yes
rouault commented 5 years ago

Can you create a pull request ?

ajolma commented 5 years ago

I guess I could...

ajolma commented 5 years ago

The current master is 1.5 which requires Proj4 version 6, which I can't find. Although it should be released today. :) ok - that's in https://github.com/OSGeo/proj.4

rouault commented 5 years ago

Fixed by https://github.com/OSGeo/libgeotiff/pull/8