Package Details: gdal-hdf4 3.8.4-1

Git Clone URL: https://aur.archlinux.org/gdal-hdf4.git (read-only, click to copy)
Package Base: gdal-hdf4
Description: Translator library for raster and vector geospatial data formats
Upstream URL: https://gdal.org/
Licenses: custom
Conflicts: gdal
Provides: gdal, gdal-hdf4
Submitter: ggranga
Maintainer: gds506
Last Packager: gds506
Votes: 4
Popularity: 0.000001
First Submitted: 2016-04-26 14:23 (UTC)
Last Updated: 2024-02-19 18:53 (UTC)

Dependencies (94)

Required by (85)

Sources (1)

Latest Comments

1 2 3 4 Next › Last »

MarsSeed commented on 2023-10-11 18:39 (UTC) (edited on 2023-10-11 18:39 (UTC) by MarsSeed)

At the next pkgver update, please kindly reset the pkgrel to 1.

gds506 commented on 2023-10-10 16:00 (UTC)

Hi all, As I already went through updating the PKGBUILD to GDAL 3.7.2 I'm going to adopt the package, but I agree with @MarsSeed to have a new package with a more explicit name.

mmdoublem commented on 2023-10-08 09:30 (UTC)

Hi All, Sorry for dropping the ball on this but given I no longer use the package I will be dropping this. Best of luck to whomever takes it over.

MarsSeed commented on 2023-10-05 07:07 (UTC)

I have an idea.

As this package gets built with both hdf4 and hdf5, but then it makes hdf5 optional, it is a bit confusing, because one would think that this cannot be used with HDF5.

Also, it is not a fully proper drop-in replacement for repo's gdal, which requires hdf5. Most of gdal's downstream dependents expect hdf5 to be there.

(And Arch's earlier, now discouraged, but still persisting packaging convention was that all direct dependencies are not necessarily declared if a direct dependency is also a transitive one.)

As hdf5 is staple now, I think a new package could be created, maybe named gdal-hdf4-hdf5, which mandatorily depends on both hdf4 and hdf5.

Build time would be exactly the same, and hdf5 is quite a small package (~3.5 MiB compressed). So having to install it should really not be an issue nowadays, even for small-footprint virtual containers.

gds506 commented on 2023-10-05 01:05 (UTC) (edited on 2023-10-05 01:08 (UTC) by gds506)

Changed java from 21 to 8 and compiled successfully

gds506 commented on 2023-10-05 00:45 (UTC)

Thanks @MarsSeed... It worked well until I reached 94% and got into the Java section:

[ 94%] Generating gdal.jar, build/maven/gdal-3.7.2.jar, build/maven/gdal-3.7.2-sources.jar, build/maven/gdal-3.7.2.pom, build/maven/gdal-3.7.2-javadoc.jar
Buildfile: /home/gds506/temp/gdal-hdf4/src/gdal-3.7.2/swig/java/build.xml

init:
    [echo] version = 3.7.2

compile:
    [mkdir] Created dir: /home/gds506/temp/gdal-hdf4/src/build/swig/java/build/classes
    [javac] Compiling 82 source files to /home/gds506/temp/gdal-hdf4/src/build/swig/java/build/classes
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 7
    [javac] error: Source option 7 is no longer supported. Use 8 or later.
    [javac] error: Target option 7 is no longer supported. Use 8 or later.

BUILD FAILED
/home/gds506/temp/gdal-hdf4/src/gdal-3.7.2/swig/java/build.xml:25: Compile failed; see the compiler error output for details.

Total time: 0 seconds
make[2]: *** [swig/java/CMakeFiles/java_binding.dir/build.make:105: swig/java/gdal.jar] Error 1
make[1]: *** [CMakeFiles/Makefile2:10006: swig/java/CMakeFiles/java_binding.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
make: Leaving directory '/home/gds506/temp/gdal-hdf4/src/build'
==> ERROR: A failure occurred in build().
    Aborting...

I'm currently on the java-21-openjdk (latest I guess) so I don't know if it is related to the Java version I have. Here my archlinux-java status:

[gds506@linuxbox ~]$ archlinux-java status
Available Java environments:
  java-21-openjdk (default)
  java-8-openjdk

MarsSeed commented on 2023-10-04 23:19 (UTC)

It seems that if PoDoFo support is required, then GDAL <= 3.7.2 needs podofo-0.9, not podofo 0.10+.

Also see this change in repo's gdal PKGBUILD for an idea on how to configure podofo-0.9 to be used during build.

gds506 commented on 2023-10-04 22:10 (UTC)

I updated the PKGBUILD for GDAL 3.7.2 but got error during makepkg at 74%:

[ 74%] Building CXX object frmts/pdf/CMakeFiles/gdal_PDF.dir/ogrpdflayer.cpp.o
In file included from /home/gds506/temp/gdal-hdf4/src/gdal-3.7.2/frmts/pdf/gdal_pdf.h:60,
                from /home/gds506/temp/gdal-hdf4/src/gdal-3.7.2/frmts/pdf/ogrpdflayer.cpp:29:
/home/gds506/temp/gdal-hdf4/src/gdal-3.7.2/frmts/pdf/pdfobject.h:395:13: error: ‘PdfVecObjects’ in namespace ‘PoDoFo’ does not name a type; did you mean ‘PdfXObject’?
  395 |     PoDoFo::PdfVecObjects &m_poObjects;
      |             ^~~~~~~~~~~~~
      |             PdfXObject
/home/gds506/temp/gdal-hdf4/src/gdal-3.7.2/frmts/pdf/pdfobject.h:406:25: error: ‘PoDoFo::PdfVecObjects’ has not been declared
  406 |                         PoDoFo::PdfVecObjects &poObjects);
      |                         ^~~~~~
make[2]: *** [frmts/pdf/CMakeFiles/gdal_PDF.dir/build.make:76: frmts/pdf/CMakeFiles/gdal_PDF.dir/ogrpdflayer.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:7217: frmts/pdf/CMakeFiles/gdal_PDF.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
make: Leaving directory '/home/gds506/temp/gdal-hdf4/src/build'
==> ERROR: A failure occurred in build().
    Aborting...

Any idea of how to fix it?

stratosgear commented on 2023-03-24 14:03 (UTC) (edited on 2023-03-24 14:39 (UTC) by stratosgear)

This fails to build on my system:

...
...
[ 67%] Built target ogr_MapML
[ 67%] Built target ogr_GPX
[ 67%] Built target ogr_DXF
[ 67%] Built target ogr_OpenFileGDB
make: *** [Makefile:146: all] Error 2
make: Leaving directory '/home/stratos/.cache/paru/clone/gdal-hdf4/src/build'
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'gdal-hdf4-3.6.0-4':
error: packages failed to build: gdal-hdf4-3.6.0-4

Earlier on on the build log, the only candidates for the failure that I see are:

[ 64%] Built target ogr_Selafin
[ 64%] Building CXX object ogr/ogrsf_frmts/sxf/CMakeFiles/ogr_SXF.dir/ogrsxfdriver.cpp.o
[ 65%] Building CXX object ogr/ogrsf_frmts/dxf/CMakeFiles/ogr_DXF.dir/ogrdxfreader.cpp.o
[ 65%] Building CXX object ogr/ogrsf_frmts/vdv/CMakeFiles/ogr_VDV.dir/ogrvdvdatasource.cpp.o
[ 65%] Building CXX object ogr/ogrsf_frmts/tiger/CMakeFiles/ogr_Tiger.dir/tigerfilebase.cpp.o
[ 65%] Building CXX object ogr/ogrsf_frmts/dxf/CMakeFiles/ogr_DXF.dir/ogrdxf_blockmap.cpp.o
[ 65%] Building CXX object ogr/ogrsf_frmts/openfilegdb/CMakeFiles/ogr_OpenFileGDB.dir/filegdbtable_write_fields.cpp.o
[ 65%] Building CXX object ogr/ogrsf_frmts/tiger/CMakeFiles/ogr_Tiger.dir/tigerpip.cpp.o
[ 65%] Building CXX object ogr/ogrsf_frmts/tiger/CMakeFiles/ogr_Tiger.dir/tigerpolygoneconomic.cpp.o
[ 65%] Building CXX object ogr/ogrsf_frmts/openfilegdb/CMakeFiles/ogr_OpenFileGDB.dir/filegdbtable_freelist.cpp.o
[ 65%] Built target ogr_PGDump
[ 65%] Building CXX object ogr/ogrsf_frmts/dxf/CMakeFiles/ogr_DXF.dir/ogrdxf_dimension.cpp.o
[ 65%] Built target ogr_SXF
[ 65%] Built target ogr_JML
[ 65%] Building CXX object ogr/ogrsf_frmts/flatgeobuf/CMakeFiles/ogr_FlatGeobuf.dir/ogrflatgeobufdataset.cpp.o
[ 65%] Building CXX object ogr/ogrsf_frmts/flatgeobuf/CMakeFiles/ogr_FlatGeobuf.dir/ogrflatgeobuflayer.cpp.o
[ 65%] Building CXX object ogr/ogrsf_frmts/flatgeobuf/CMakeFiles/ogr_FlatGeobuf.dir/packedrtree.cpp.o
[ 65%] Built target ogr_WAsP
[ 65%] Building CXX object ogr/ogrsf_frmts/flatgeobuf/CMakeFiles/ogr_FlatGeobuf.dir/geometryreader.cpp.o
In file included from /usr/include/absl/base/config.h:86,
                 from /usr/include/absl/base/attributes.h:37,
                 from /usr/include/absl/strings/string_view.h:39,
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/flatbuffers/
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/flatbuffers/
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/flatbuffers/
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/header_gener
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/ogr_flatgeob
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/ogrflatgeobu
/usr/include/absl/base/policy_checks.h:79:2: error: #error "C++ versions less than C++14 are not supported."
   79 | #error "C++ versions less than C++14 are not supported."
      |  ^~~~~
In file included from /usr/include/absl/base/config.h:86,
                 from /usr/include/absl/base/attributes.h:37,
                 from /usr/include/absl/strings/string_view.h:39,
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/flatbuffers/
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/flatbuffers/
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/flatbuffers/
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/header_gener
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/ogr_flatgeob
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/ogrflatgeobu
/usr/include/absl/base/policy_checks.h:79:2: error: #error "C++ versions less than C++14 are not supported."
   79 | #error "C++ versions less than C++14 are not supported."
      |  ^~~~~
In file included from /usr/include/absl/base/config.h:86,
                 from /usr/include/absl/base/attributes.h:37,
                 from /usr/include/absl/strings/string_view.h:39,
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/flatbuffers/
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/flatbuffers/
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/flatbuffers/
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/packedrtree.
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/packedrtree.
/usr/include/absl/base/policy_checks.h:79:2: error: #error "C++ versions less than C++14 are not supported."
   79 | #error "C++ versions less than C++14 are not supported."
      |  ^~~~~
[ 65%] Building CXX object ogr/ogrsf_frmts/flatgeobuf/CMakeFiles/ogr_FlatGeobuf.dir/geometrywriter.cpp.o
In file included from /usr/include/absl/base/config.h:86,
                 from /usr/include/absl/base/attributes.h:37,
                 from /usr/include/absl/strings/string_view.h:39,
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/flatbuffers/base.h:237,
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/flatbuffers/array.h:20,
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/flatbuffers/flatbuffers.h:22,
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/feature_generated.h:7,
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/geometryreader.h:32,
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/geometryreader.cpp:32:
/usr/include/absl/base/policy_checks.h:79:2: error: #error "C++ versions less than C++14 are not supported."

And a lot more of the same: error: #error "C++ versions less than C++14 are not supported.

Running on the latest update arch release:

❯ uname -a
Linux iocaine 6.2.7-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 18 Mar 2023 01:06:36 +0000 x86_64 GNU/Linux

What other debug info can I provide to help resolve this...?

NOTE: The normal gdal package installs correctly, but lacks the ability to read HDF4 files so it cannot be used with MODIS images!

mmdoublem commented on 2022-09-05 07:19 (UTC)

Ok will take it over then. Thanks so much for your hard work on this. Much appreciated.