[gdal-dev] Building gdal master with proj master

Nyall Dawson nyall.dawson at gmail.com
Sun Apr 28 23:47:38 PDT 2019


On Mon, 29 Apr 2019 at 16:10, Richard Duivenvoorde <rdmailings at duif.net> wrote:
>
> On 29/04/2019 03.26, Nyall Dawson wrote:
> > Hi list,
> >
> > Trying to build gdal master using proj master today I'm unable to
> > resolve a bunch of "undefined reference to
> > `proj_create_conversion_oblique_stereographic'" style errors. I think
> > my issues come from trying to keep the custom proj build isolated from
> > my system version, but I'm stumped in how to fix this....
>
> Hi Nyall,
>
> I build both gdal master and proj 6 last week (25th), using instructions
> here:
> https://trac.osgeo.org/gdal/wiki/BuildingOnUnixGDAL25dev
>
> If on a machine having another (distro) proj around you have to go
> through this renaming piece if I'm correct (well, Even told me :-) )
>
> I used:
>
> export LD_LIBRARY_PATH=/home/richard/bin/proj/lib:$LD_LIBRARY_PATH
>
> ./configure --prefix=/home/richard/bin/gdal
> --with-proj=/home/richard/bin/proj --without-libtool --with-python
> --without-ogdi
>
> Be sure (below is Even's text...) to see:
>
> # when configuring gdal
> checking for PROJ >= 6 library... checking for proj_create_from_wkt in
> -lproj... no  <== this is funny, tough, because I have 6.0 ....
> checking for proj_create_from_wkt in -lproj... no
> checking for internal_proj_create_from_wkt in -lproj... no
> checking for internal_proj_create_from_wkt in -lproj... no
> checking for internal_proj_create_from_wkt in -linternalproj... yes  <== !!!
>
> # check if libgdal.so is gelinked is with that libinternalproj:
> cd /home/richard/bin/gdal/lib
> export LD_LIBRARY_PATH=/home/richard/bin/proj/lib:$LD_LIBRARY_PATH
> # make sure there is no /home/richard/bin/proj/lib/libproj.* files .
> Only libinternalproj.so*
> ldd libgdal.so | grep proj
>        libinternalproj.so =>
> /home/richard/bin/proj/lib/libinternalproj.so (0x00007f672346d000)

Thanks, this is very helpful!

I think my issue stems from ONLY having libproj.* in my proj build
folder -- I don't see any libinternalproj objects. I'll try the
instructions from the wiki page and see if rebuilding proj with those
flags helps.

Thank you!
Nyall


More information about the gdal-dev mailing list