Closed afernandezody closed 3 years ago
Static linking makes life more difficult usually. You may want to add the --with-proj-extra-lib-for-test=-ltiff
switch to GDAL configure
Agreed. That's why I asked the NCL Team earlier this morning if it was mandatory to build the PROJ library as static.
Hi @rouault, I didn't hear back from the NCL Team so I had to sort this out on my own and hope that NCL will accept the configuration. At the end, I ended up recompiling PROJ without any constrain so it built both static and shared libraries (when I tried only shared, it was still producing the error, not sure why). Then, building gdal completed smoothly. Thank you for the help.
Hello, The configuration of GDAL v3.2.1 is returning the error: PROJ 6 symbols not found (not the first thread discussing this error). The system is running on CentOS8 and the PROJ version is 7.2.1 with the library built as a static one. The configuration command reads:
./configure --with-static-proj4=/usr/local --prefix=/usr/local --without-pam --with-png=/usr/local --with-gif=internal --with-libtiff=internal --with-geotiff=internal --with-jpeg=/usr/local --with-libz=/usr/local --with-sqlite3=no --with-expat=no --with-curl=no --without-ld-shared --with-hdf4=no --with-hdf5=no --with-pg=no --without-grib --disable-shared --with-freexl=no --with-geos=no --with-openjpeg=no --with-mysql=no --with-ecw=no --with-fgdb=no --with-odbc=no --with-xml2=no --with-ogdi=no --with-pcraster=no --with-xerces=no
Here, the flags just follow the recommendations on how to build NCL but I also tried./configure --with-proj=/usr/local
with the same results. The config file shows many 'undefined reference' errorswith another 400 lines of undefined references. Thanks.