Hi, Thanks for your reply. Here is the output of configure: --------------
user@machine:~/dev/gdal-3.0.2$ ./configure --with-python=python3
--with-proj=/usr/local --with-pg=yes --with-spatialite=yes | grep proj /bin/bash: ./config.rpath: No such file or directory checking for PROJ >= 6 library... checking for proj_create_from_wkt in -lproj... yes configure: proj.h found config.status: WARNING: 'GDALmake.opt.in' seems to ignore the
--datarootdir setting

---------- And here the output of ldd: ---------- user@machine:~/dev/gdal-3.0.2$ ldd .libs/libgdal.so | grep proj libproj.so.12 => /usr/lib/x86_64-linux-gnu/libproj.so.12
(0x00007f72525a5000)

-------------
So this seems like it links to the old version of proj. Why is using
this one if I specified "--with-proj=/usr/local" ? The env var LD_LIBRARY_PATH is not set on my machine.
Maybe setting one and set /usr/local as the preferred path would solve
my problem. I'll try ... Thanks, Andreas
On 2019-11-19 14:01, Mateusz Loskot wrote:

On Tue, 19 Nov 2019 at 13:41, Andreas Neumann <a.neum...@carto.net> wrote:
I am trying to compile gdal3.0.2 against proj6 - but have problems.

Proj6 compile worked fine and I installed in /usr/local

The configure command for gdal is:

./configure --with-python=python3 --with-proj=/usr/local --with-pg=yes 
--with-spatialite=yes
[...]
/bin/bash /home/bjsvwneu/dev/gdal-3.0.2/libtool --mode=link --silent g++  
gdalinfo_bin.lo  /home/bjsvwneu/dev/gdal-3.0.2/libgdal.la  -o gdalinfo
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to 
`proj_alter_name'

Try

https://lists.osgeo.org/pipermail/gdal-dev/2019-May/050184.html
https://lists.osgeo.org/pipermail/gdal-dev/2019-May/050189.html

Best regards,
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to