Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#485 closed defect (fixed)

GDAL does not install ogdi.dll

Reported by: mloskot Owned by: jef
Priority: major Component: Package
Version: Keywords: gdal ogdi
Cc:

Description

The packages listing https://wiki.osgeo.org/wiki/OSGeo4W_Packages#ogdi on the ogdi says:

Required by GDAL

but installing gdal

osgeo4w-setup-x86.exe -s http://download.osgeo.org/osgeo4w/ -a -q -P gdal

does not deploy the ogdi.dll

c:\OSGeo4W>ls bin
gdal_contour.exe    gdalbuildvrt.exe      gdalplugins        nearblack.exe
gdal_grid.exe       gdaldem.exe           gdalserver.exe     ogr2ogr.exe
gdal_rasterize.exe  gdalenhance.exe       gdalsrsinfo.exe    ogrinfo.exe
gdal_translate.exe  gdalinfo.exe          gdaltindex.exe     ogrlineref.exe
gdal200.dll         gdallocationinfo.exe  gdaltransform.exe  ogrtindex.exe
gdaladdo.exe        gdalmanage.exe        gdalwarp.exe       testepsg.exe

Change History (6)

comment:1 Changed 5 years ago by mloskot

In fact, attempt to run gdalinfo.exe --version fails already due to missing ogdi DLL.

comment:2 Changed 5 years ago by mloskot

I'm probably missing something obvious, but installing via the GUI > Advanced Install > ... > select just gdal turns out to be deploying the whole lot more files than the command line attempt:

C:\OSGeo4W>ls bin
adrg.dll              krb5_32.dll         ppm2tiff.exe
bmp2tiff.exe          libcurl.dll         proj.dll
comerr32.dll          libeay32.dll        proj.exe
cs2cs.exe             libexpat.dll        psql.exe
curl.exe              libgcc_s_dw2-1.dll  ras2tiff.exe
dllupdate.exe         libiconv-2.dll      raw2tiff.exe
dted.dll              libintl-8.dll       remote.dll
fax2ps.exe            libmysql.dll        rgb2ycbcr.exe
fax2tiff.exe          libpng-3.dll        rpcgen.exe
freexl.dll            libpng-config       rpcinfo.exe
gdal_contour.exe      libpng12-0.dll      rpf.dll
gdal_grid.exe         libpng12-config     setup-test.bat
gdal_rasterize.exe    libpq.dll           setup-test.bat.tmpl
gdal_translate.exe    libtiff.dll         setup.bat
gdal110.dll           libxml2.dll         setup.bat.tmpl
gdal111.dll           listgeo.exe         skeleton.dll
gdal15.dll            mfhdf_fw.dll        spatialite.dll
gdal18.dll            msvcp60.dll         spatialite4.dll
gdal19.dll            msvcp70.dll         sqlite3.dll
gdal200.dll           msvcp71.dll         ssleay32.dll
gdaladdo.exe          msvcr71.dll         szip.dll
gdalbuildvrt.exe      msvcrt.dll          szlibdll.dll
gdaldem.exe           nad2bin.exe         testepsg.exe
gdalenhance.exe       nccopy.exe          textreplace.exe
gdalinfo.exe          ncdump.exe          thumbnail.exe
gdallocationinfo.exe  ncgen.exe           tiff2bw.exe
gdalmanage.exe        ncgen3.exe          tiff2pdf.exe
gdalplugins           nearblack.exe       tiff2ps.exe
gdalserver.exe        netcdf.dll          tiff2rgba.exe
gdalsrsinfo.exe       nircmd.exe          tiffcmp.exe
gdaltindex.exe        nircmdc.exe         tiffcp.exe
gdaltransform.exe     o-help.bat          tiffcrop.exe
gdalwarp.exe          o4w_env.bat         tiffdither.exe
geod.exe              ogdi_32b1.dll       tiffdump.exe
geos_c.dll            ogdi_import.exe     tiffinfo.exe
geotifcp.exe          ogdi_info.exe       tiffmedian.exe
geotiff.dll           ogr2ogr.exe         tiffset.exe
gif2tiff.exe          ogrinfo.exe         tiffsplit.exe
gltpd.exe             ogrlineref.exe      vrf.dll
gssapi32.dll          ogrtindex.exe       xerces-c_2_7.dll
hdf_fw.dll            openjp2.dll         xerces-c_3_1.dll
hdf5.dll              opj_compress.exe    xerces-depdom_2_7.dll
hdf5_hl.dll           opj_decompress.exe  xmlcatalog.exe
hdf5dll.dll           opj_dump.exe        xmllint.exe
iconv.dll             osgeo4w-setup.exe   xxmklink.exe
jpeg_osgeo.dll        pal2rgb.exe         zlib_osgeo.dll
jpeg12_osgeo.dll      png_osgeo.dll       zlib1.dll
k5sprt32.dll          portmap.exe

C:\OSGeo4W>

I must be missing something...

comment:3 Changed 5 years ago by mloskot

I guess, this message printed at the end of the installation shows what exactly is being installed for gdal:

Dependency order of packages: gdal networkx pyodbc pyparsing pyspatialite python-rpy python-rpy2 python-simplejson python-xlrd python-xlwt

It looks like not all GDAL dependencies are pulled.

comment:4 Changed 5 years ago by jef

Owner: changed from osgeo4w-dev@… to jef
Status: newassigned

comment:5 Changed 5 years ago by jef

Resolution: fixed
Status: assignedclosed

(In [1294]) * Resolve prerequisited in unattended mode (fixes #485)

  • Add -k/-autoaccept to automatically accept licenses in unattended mode and fix infinite loop in unattended mode (fixes #117, fixes #151, fixes #486)
  • Change short option for advanced mode from from a to A (fixes #351)
  • Change short option for disable-buggy-antivirus from A to b
  • Refactor out express_mode (fixes #262)

comment:6 Changed 5 years ago by mloskot

@jef Awesome, thank you very much!

I confirm this fixes issues with building PDAL on AppVeyor?. So, I've removed the hacks I needed before the fix. https://github.com/PDAL/PDAL/commit/1642ca424bfe839db46aea06879af887d0320a4f

Note: See TracTickets for help on using tickets.