[gdal-dev] Building GDAL 3.0.0 with Proj 6.0.0

joshl josh at cesium.com
Tue May 21 08:35:20 PDT 2019


I tried copying the body the test program that the configure script uses to
see if the specified proj is usable. Running the gcc command manually:
gcc testprogram.c -o testprogram -L$projInstallDir/lib
-Wl,-rpath,$projInstallDir/lib -I$projDir/include -I$projDir/src

Using -L -Wl -rpath to specify the proj library got passed the "cannot find
-lproj error" but now it can't find the reference for proj_create function
(which is in $projDir/src/proj.h):

/tmp/cc4Ky0RR.o: In function `main':
testprogram.c:(.text+0xa): undefined reference to `proj_create'
collect2: error: ld returned 1 exit status



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


More information about the gdal-dev mailing list