[gdal-dev] Building gdal master with proj master

Nyall Dawson nyall.dawson at gmail.com
Sun Apr 28 18:26:06 PDT 2019


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....

My build process is:

Proj:

./configure --prefix=/home/nyall/dev/build-proj
make
make install

GDAL:

./configure --prefix=/home/nyall/dev/build-gdal/
--with-proj=/home/nyall/dev/build-proj
make

Results in:

/bin/sh /home/nyall/dev/gdal/gdal/libtool --mode=compile --silent
--tag=CXX g++ -I/home/nyall/dev/gdal/gdal/port
-I/home/nyall/dev/gdal/gdal/gcore -I/home/nyall/dev/gdal/gdal/alg
-I/home/nyall/dev/gdal/gdal/ogr
-I/home/nyall/dev/gdal/gdal/ogr/ogrsf_frmts
-I/home/nyall/dev/gdal/gdal/gnm -I/home/nyall/dev/gdal/gdal/apps
-DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME
-DHAVE_SSE_AT_COMPILE_TIME -g -O2  -Wall -Wextra -Winit-self
-Wunused-parameter -Wformat -Werror=format-security
-Wno-format-nonliteral -Wlogical-op -Wshadow -Werror=vla -Wdate-time
-Wnull-dereference -Wduplicated-cond -Wextra-semi -Wfloat-conversion
-Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual
-fno-operator-names -Wzero-as-null-pointer-constant -Wsuggest-override
-Wimplicit-fallthrough  -I/home/nyall/dev/gdal/gdal/frmts/vrt
-DGNM_ENABLED -I/home/nyall/dev/gdal/gdal/port
-I/usr/include/openjpeg-2.3   -DGDAL_COMPILATION
-I/home/nyall/dev/gdal/gdal/ogr/ogrsf_frmts/geojson/libjson
-I/home/nyall/dev/gdal/gdal/ogr/ogrsf_frmts/geojson
-I/home/nyall/dev/gdal/gdal/ogr/ogrsf_frmts/generic
-I/home/nyall/dev/gdal/gdal/gnm -DHAVE_GEOS=1 -I/usr/include -c -o
gdaladdo.lo gdaladdo.cpp
/usr/bin/ld: /home/nyall/dev/gdal/gdal/.libs/libgdal.so: undefined
reference to `proj_create_conversion_oblique_stereographic'
...
collect2: error: ld returned 1 exit status
make[1]: *** [GNUmakefile:82: gdalinfo] Error 1

Any clues what I'm missing here?

Thanks,
Nyall


More information about the gdal-dev mailing list