Closed marcus-elia closed 2 years ago
When I ran the configuration script, I did not disable any drivers.
thre must be something particular or wrong in the way you built GDAL. You should provide precise way to reproduce this
I did
wget "http://download.osgeo.org/gdal/3.3.0/gdal-3.3.0.tar.gz
tar -xzf gdal-3.3.0.tar.gz
In order to link with the specific version of Proj that I wanted, I added the lines
-Wl,-rpath,<path to Proj>/lib \
-Wl,--disable-new-dtags \
to line 79 of GNUmakefile
and then ran
./configure --prefix=<install path> --with-proj=<path to Proj> --with-python=<path to python>
make CXXFLAGS="-Og -g" CFLAGS="-Og -g" all -j4
sudo make install
are you sure you didn't made other changes to GDAL source tree ? What is the output of ./configure ? If you did several consecutive builds, make sure to run "make clean" before rebuilding. If that still persists, if you could put together a simple Dockerfile that would reproduce the issue that would be even better
I did run make clean
before building.
Near the end of the output of ./configure is
misc. ogr formats:
arcgen avc cad csv dgn dxf edigeo flatgeobuf geoconcept georss gml gmt gpsbabel gpx gtm
jml mapml mvt ntf openfilegdb pgdump rec s57 selafin shape svg sxf tiger vdv wasp idrisi pds
sdts amigocloud carto cloudant couchdb csw elastic ngw plscenes wfs gpkg vfk osm ods xlsx lvbag
disabled gdal formats:
disabled ogr formats:
I can look into putting together a Dockerfile.
Closing. Too particular use case specific to autoconf builds, that eventually will be discontinued
I have a working solution for my situation, so this is not time-sensitive.
Expected behavior and actual behavior.
In GDAL-3.3.0, I am having this problem. But in GDAL-2.4.3, it works.
I expected that calling
GDALAllRegister();
would register the ESRI Shapefile driver, but it does not. The#ifdef SHAPE_ENABLED
inOGRRegisterAllInternal()
is evaluating to false, and so it is not callingRegisterOGRShape();
. In fact, it seems that nothing is being registered inside ofOGRRegisterAllInternal()
. (I am manually callingRegisterOGRShape()
in my own application, so I don't need help).When I ran the configuration script, I did not disable any drivers.
Steps to reproduce the problem.
Zipped_shx_file.zip As an example, running
ogrinfo
on the attached .shx file yieldswhereas on GDAL-2.4.3 I get
Operating system
Ubuntu 18.04.2 LTS
GDAL version and provenance
GDAL-3.3.0 is not working, GDAL-2.4.3 is working.