[gdal-dev] How do I set PROJ_LIB env variable inside my program?

2019-11-01 Thread Igor Belyakov
I have a little code snippet that checks if the PROJ data is accessible to GDAL: OGRSpatialReference r; r.importFromEPSG(4979); char * wkt; r.exportToWkt(&wkt); auto s = qgetenv("PROJ_LIB"); if (wkt[0] == '\0') throw std::runtime_error("PROJ_LIB error

Re: [gdal-dev] Undefined references to proj_* functions while building GDAL

2019-06-13 Thread Igor Belyakov
ibrary/headers.  You should also locate other proj libraries on your system that might be getting found. On Tue, Jun 11, 2019 at 2:27 PM Igor Belyakov <belyako...@spsinf.ru> wrote:$ export LD_LIBRARY_PATH=/usr/local/lib; make- doesn't work either.And /usr/local/lib is already in /

Re: [gdal-dev] Undefined references to proj_* functions while building GDAL

2019-06-11 Thread Igor Belyakov
t" :On mardi 11 juin 2019 20:28:01 CEST Igor Belyakov wrote: I also checked (with readelf) if my libproj files contain those symbols. There are libproj.a, libproj.so, libproj.so.15 and libproj.so.15.1.0 files in usr/local/lib and they all contain symbol `proj_alter_name'. But for some r

Re: [gdal-dev] Undefined references to proj_* functions while building GDAL

2019-06-11 Thread Igor Belyakov
I also checked (with readelf) if my libproj files contain those symbols. There are libproj.a, libproj.so, libproj.so.15 and libproj.so.15.1.0 files in usr/local/lib and they all contain symbol `proj_alter_name'. But for some reason the linker cannot find it.  11.06.2019, 16:15, "Igor Be

[gdal-dev] Undefined references to proj_* functions while building GDAL

2019-06-11 Thread Igor Belyakov
I try to build GDAL on Ubuntu 18.04. The linker reports errors:gdal-3.0.0/.libs/libgdal.so: undefined reference to `proj_alter_name'gdal-3.0.0/.libs/libgdal.so: undefined reference to `proj_create_conversion_eckert_i'and so on. There are many undefined references to functions declared in Proj libra

[gdal-dev] Can't configure GDAL build ("PROJ 6 symbols not found")

2019-06-10 Thread Igor Belyakov
I try to build GDAL on Ubuntu 18.04 using this guide: http://wiki.wildsong.biz/index.php/Building_GDAL_on_Linux:$ ./configure --with-python --with-poppler=yes --with-geos --with-geotiff --with-jpeg --with-png --with-expat --with-libkml --with-openjpeg --with-geos --with-pg --with-curl --with-spatia