[gdal-dev] Building GDAL 3.0.0 with Proj 6.0.0

joshl josh at cesium.com
Mon May 20 13:48:11 PDT 2019


Trying to go through the instructions as-is (apt-get install sqlite3 bin and
lib, rename proj's .so libs, run patchelf, etc.) from
https://trac.osgeo.org/gdal/wiki/BuildingOnUnixGDAL25dev

The gdal configure script is still unable to find proj. Looking through the
config.log, I see there are two -lproj flags in some gcc command involved
with test compile with a proj function, wonder if that's causing issues.
Also it thinks it should link statically so I guess it's not detecting the
shared lib from any provided path?

Part of config.log where it starts to do the test compiles:
configure:34790: checking how to link PROJ library
configure:34831: result: link statically.
configure:34954: checking for proj_create in -lproj
configure:34979: gcc -o conftest -DHAVE_AVX_AT_COMPILE_TIME
-DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2 -fPIC  
conftest.c -lproj 
-L/home/loshjawrence/clonesRedo/agi-asset-pipeline/build/ThirdParty/proj.4/lib
-lproj  -lsqlite3 -lexpat -ljpeg -lpng -lz -lpthread -lm -lrt -ldl  -lpcre
>&5
/usr/bin/x86_64-linux-gnu-ld: cannot find -lproj
/usr/bin/x86_64-linux-gnu-ld: cannot find -lproj
collect2: error: ld returned 1 exit status
configure:34979: $? = 1



> ls
> /home/loshjawrence/clonesRedo/agi-asset-pipeline/build/ThirdParty/proj.4/lib
libinternalproj.so  libinternalproj.so.15  libinternalproj.so.15.1.0 
pkgconfig



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html


More information about the gdal-dev mailing list