[gdal-dev] Building gdal master with proj master
Richard Duivenvoorde
rdmailings at duif.net
Sun Apr 28 23:10:20 PDT 2019
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)
Hope this helps.
Regards,
Richard Duivenvoorde
More information about the gdal-dev
mailing list