Package Details: gdal-hdf4 3.4.0-2.0

Git Clone URL: https://aur.archlinux.org/gdal-hdf4.git (read-only, click to copy)
Package Base: gdal-hdf4
Description: A translator library for raster geospatial data formats, with support to HDF4 format (required to use MODIStsp tool). Based on gdal ArchLinux package version.
Upstream URL: https://gdal.org/
Licenses: custom
Conflicts: gdal
Provides: gdal
Submitter: ggranga
Maintainer: ggranga
Last Packager: ggranga
Votes: 4
Popularity: 0.59
First Submitted: 2016-04-26 14:23 (UTC)
Last Updated: 2022-01-10 16:39 (UTC)

Required by (90)

Sources (2)

Latest Comments

Brimstorm commented on 2022-05-24 16:42 (UTC) (edited on 2022-05-24 16:43 (UTC) by Brimstorm)

Can't seem to build. Gives the following message at the end:

==> ERROR: A failure occurred in build().
    Aborting...
removing untracked AUR files from cache...
:: Cleaning (1/1): /home/bmarcos/.cache/yay/gdal-hdf4
Removing gdal-3.4.0.tar.xz
Removing gdal-perl-vendor.patch
 -> error making: gdal-hdf4 (gdal-hdf4 python-gdal-hdf4)

The only error message I could find appears way back:

pdfdataset.cpp: In static member function ‘static PDFDataset* PDFDataset::Open(GDALOpenInfo*)’:
pdfdataset.cpp:4325:63: error: no matching function for call to ‘PDFDoc::PDFDoc(VSIPDFFileStream*&, std::nullptr_t, GooString*&)’
 4325 |         poDocPoppler = new PDFDoc(poStream, nullptr, poUserPwd);
      |                                                               ^

Do you know of any potential solution?

ggranga commented on 2021-11-23 14:56 (UTC)

Thanks @FabioLolix, I updated the PKGBUILD with your suggestion. @mhaffner gdal as installing correctly because it is in community, so you do not need to compile it. Now I am able to compile correctly.

mhaffner commented on 2021-11-22 21:22 (UTC)

@ggranga @FabioLoix I copy/pasted the gdal-perl-vendor.patch contents in your link into a local file and updated the PKGBUILD appropriately. The sha256sum of the gdal-perl-vendor.patch file is correct, so I didn't need to update it. Upon running makepkg in that directory I get an error that I'm guessing is related to gdal?

make[2]: Entering directory '/home/matt/gdal-hdf4/src/gdal-3.3.1/frmts/pdf'
/bin/sh /home/matt/gdal-hdf4/src/gdal-3.3.1/libtool --mode=compile --silent --tag=CXX g++ -I/home/matt/gdal-hdf4/src/gdal-3.3.1/port -I/home/matt/gdal-hdf4/src/gdal-3.3.1/gcore -I/home/matt/gdal-hdf4/src/gdal-3.3.1/alg -I/home/matt/gdal-hdf4/src/gdal-3.3.1/ogr -I/home/matt/gdal-hdf4/src/gdal-3.3.1/ogr/ogrsf_frmts -I/home/matt/gdal-hdf4/src/gdal-3.3.1/gnm -I/home/matt/gdal-hdf4/src/gdal-3.3.1/apps -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS  -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wlogical-op -Wshadow -Wmissing-include-dirs -Werror=vla -Wdate-time -Wnull-dereference -Wduplicated-cond -Wextra-semi -Wfloat-conversion -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wzero-as-null-pointer-constant -Wsuggest-override -Wimplicit-fallthrough  -I../vrt -I../mem -I../../ogr/ogrsf_frmts/mem -DGNM_ENABLED -I/home/matt/gdal-hdf4/src/gdal-3.3.1/port -I/usr/include/openjpeg-2.4  -I/usr/include  -DGDAL_COMPILATION -DHAVE_XERCES -I/usr/include -I/usr/include/xercesc -I/home/matt/gdal-hdf4/src/gdal-3.3.1/port -I/usr/include/openjpeg-2.4  -I/usr/include  -DGDAL_COMPILATION -DHAVE_POPPLER -DPOPPLER_MAJOR_VERSION=21 -DPOPPLER_MINOR_VERSION=11 -I/usr/include -I/usr/include/poppler   -DDO_NOT_USE_DEBUG_BOOL -c -o ../o/pdfdataset.lo pdfdataset.cpp
pdfdataset.cpp: In static member function ‘static PDFDataset* PDFDataset::Open(GDALOpenInfo*)’:
pdfdataset.cpp:4966:59: error: cannot convert ‘std::unique_ptr<GooString>’ to ‘GooString*’ in initialization
 4966 |     GooString* poMetadata = poCatalogPoppler->readMetadata();
      |                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
      |                                                           |
      |                                                           std::unique_ptr<GooString>
make[2]: *** [../../GDALmake.opt:648: ../o/pdfdataset.lo] Error 1
make[2]: Leaving directory '/home/matt/gdal-hdf4/src/gdal-3.3.1/frmts/pdf'
make[1]: *** [GNUmakefile:15: pdf-install-obj] Error 2
make[1]: Leaving directory '/home/matt/gdal-hdf4/src/gdal-3.3.1/frmts'
make: *** [GNUmakefile:114: frmts-target] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

FabioLolix commented on 2021-11-22 19:52 (UTC)

Use this link for the perl vendor patch https://raw.githubusercontent.com/archlinux/svntogit-community/packages/gdal/trunk/gdal-perl-vendor.patch

mhaffner commented on 2021-11-22 19:48 (UTC)

@ggranga Thanks for clarifying - I see that now when I attempt to install gdal-hdf4. After a few weeks, it seems as though gdals' PKGBUILD is still not fixed. How should the maintainer be notified in order to fix it? That git repo does not have an "issues" section. Also, while I don't doubt that you are correct about this issue, why does gdal install correctly but gdal-hdf4 not, if they are based on the same PKGBUILD?

ggranga commented on 2021-11-02 16:50 (UTC)

It is an error related to gdal-perl-vendor.patch, which is not accessible at the URL set in the PKGBUILD. It is an issue inherited from gdal's PKGBUILD (https://github.com/archlinux/svntogit-community/blob/packages/gdal/trunk/PKGBUILD), so I will not change this one until new gdal rPKGBUILD will be released. In the meanwhile I uploaded the code of file gdal-perl-vendor.patch here: https://pastebin.com/raw/bgP79VkS ; you can manually download it, edit the PKGBUILD to update the sha256sum and compile.

mhaffner commented on 2021-10-29 16:10 (UTC)

Are the checksums out of date?

==> ERROR: One or more files did not pass the validity check!
error downloading sources: gdal-hdf4

caciolucas commented on 2021-07-02 13:28 (UTC) (edited on 2021-07-02 13:28 (UTC) by caciolucas)

Not able to install

Receiving curl: (6) Could not resolve host: git.archlinux.org when trying to retrieve source gdal-perl-vendor.patch

olivervbk commented on 2020-10-08 20:01 (UTC)

I fixed the jpeg2000dataset.cpp issue here: https://aur.archlinux.org/cgit/aur.git/tree/jpeg2000-issue-vendor.patch?h=gdal-ecw

based on https://github.com/OSGeo/gdal/issues/2844

tested on: https://aur.archlinux.org/packages/gdal-ecw

marcocurreli commented on 2020-09-16 22:54 (UTC)

I have this error: jpeg2000dataset.cpp:611:46: error: invalid conversion from ‘const char’ to ‘char’ [-fpermissive]

ggranga commented on 2020-06-12 05:16 (UTC)

"gdal-hdf4" is based on "gdal" ArchLinux package, NOT on GDAL source code. Please DO NOT mark this package as out-of-date if it is not outdated with respect of "gdal" Archlinux package.

ggranga commented on 2020-02-04 07:56 (UTC)

@RonnyD I simply edit the PKGBUILD of package "gdal" in order to include the support to HDF4 format; any other problems should be issued to that package.

RonnyD commented on 2020-01-27 16:56 (UTC) (edited on 2020-01-27 16:56 (UTC) by RonnyD)

I have problems compiling the package. Perhaps it is necessary to update the java dependencies?

checking for gcj... no
checking for guavac... no
checking for jikes... no
checking for javac... no
configure: error: no acceptable Java compiler found in $PATH
==> ERROR: A failure occurred in build().

joeroe commented on 2019-12-06 14:56 (UTC)

@ggranga It did, thank you!

ggranga commented on 2019-12-06 12:08 (UTC)

@joeroe the last package update should have fixed that error.

joeroe commented on 2019-12-06 08:12 (UTC) (edited on 2019-12-06 08:16 (UTC) by joeroe)

The current version fails to build for me with this error:

make -C pdf install-obj
make[2]: Entering directory '/home/joeroe/.cache/yay/gdal-hdf4/src/gdal-3.0.0/frmts/pdf'
/bin/sh /home/joeroe/.cache/yay/gdal-hdf4/src/gdal-3.0.0/libtool --mode=compile --silent --tag=CXX g++ -I/home/joeroe/.cache/yay/gdal-hdf4/src/gdal-3.0.0/port -I/home/joeroe/.cache/yay/gdal-hdf4/src/gdal-3.0.0/gcore -I/home/joeroe/.cache/yay/gdal-hdf4/src/gdal-3.0.0/alg -I/home/joeroe/.cache/yay/gdal-hdf4/src/gdal-3.0.0/ogr -I/home/joeroe/.cache/yay/gdal-hdf4/src/gdal-3.0.0/ogr/ogrsf_frmts -I/home/joeroe/.cache/yay/gdal-hdf4/src/gdal-3.0.0/gnm -I/home/joeroe/.cache/yay/gdal-hdf4/src/gdal-3.0.0/apps -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wlogical-op -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wduplicated-cond -Wextra-semi -Wfloat-conversion -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wzero-as-null-pointer-constant -Wsuggest-override -Wimplicit-fallthrough  -I../vrt -I../mem -I../../ogr/ogrsf_frmts/mem -DGNM_ENABLED -D_FORTIFY_SOURCE=2 -I/home/joeroe/.cache/yay/gdal-hdf4/src/gdal-3.0.0/port -I/usr/include/openjpeg-2.3  -I/usr/include  -DGDAL_COMPILATION -DHAVE_XERCES -I/usr/include -I/usr/include/xercesc -D_FORTIFY_SOURCE=2 -I/home/joeroe/.cache/yay/gdal-hdf4/src/gdal-3.0.0/port -I/usr/include/openjpeg-2.3  -I/usr/include  -DGDAL_COMPILATION -DHAVE_POPPLER -DPOPPLER_MAJOR_VERSION=0 -DPOPPLER_MINOR_VERSION=82 -I/usr/include -I/usr/include/poppler   -DDO_NOT_USE_DEBUG_BOOL -c -o ../o/pdfdataset.lo pdfdataset.cpp
pdfdataset.cpp:205:22: error: ‘virtual void GDALPDFOutputDev::drawChar(GfxState*, double, double, double, double, double, double, CharCode, int, Unicode*, int)’ marked ‘override’, but does not override
  205 |         virtual void drawChar(GfxState *state, double x, double y,
      |                      ^~~~~~~~
pdfdataset.cpp:266:22: error: ‘virtual void GDALPDFOutputDev::drawImage(GfxState*, Object*, Stream*, int, int, GfxImageColorMap*, bool, int*, bool)’ marked ‘override’, but does not override
  266 |         virtual void drawImage(GfxState *state, Object *ref, Stream *str,
      |                      ^~~~~~~~~
pdfdataset.cpp:205:22: warning:   by ‘virtual void GDALPDFOutputDev::drawChar(GfxState*, double, double, double, double, double, double, CharCode, int, Unicode*, int)’ [-Woverloaded-virtual]
  205 |         virtual void drawChar(GfxState *state, double x, double y,
      |                      ^~~~~~~~
pdfdataset.cpp:266:22: warning:   by ‘virtual void GDALPDFOutputDev::drawImage(GfxState*, Object*, Stream*, int, int, GfxImageColorMap*, bool, int*, bool)’ [-Woverloaded-virtual]
  266 |         virtual void drawImage(GfxState *state, Object *ref, Stream *str,
      |                      ^~~~~~~~~
make[2]: *** [../../GDALmake.opt:637: ../o/pdfdataset.lo] Error 1
make[2]: Leaving directory '/home/joeroe/.cache/yay/gdal-hdf4/src/gdal-3.0.0/frmts/pdf'
make[1]: *** [GNUmakefile:15: pdf-install-obj] Error 2
make[1]: Leaving directory '/home/joeroe/.cache/yay/gdal-hdf4/src/gdal-3.0.0/frmts'
make: *** [GNUmakefile:103: frmts-target] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
Error making: gdal-hdf4

ggranga commented on 2019-08-18 12:37 (UTC)

@komzpa, this package is kept updated basing not on OSGeo but on community/gdal, whose version is 3.0.0.

ggranga commented on 2019-02-03 07:06 (UTC) (edited on 2019-02-03 07:07 (UTC) by ggranga)

@Kunda, this package is kept updated basing on community/gdal, whose version is 2.3.2.

Kunda commented on 2019-02-02 19:10 (UTC)

will there be a gdal 2.4.0 build or will there be a need for a separate package?

ConorIA commented on 2018-09-10 20:59 (UTC) (edited on 2018-09-10 21:02 (UTC) by ConorIA)

If anyone comes along trying to build this now that hdf4-nonetcdf has disappeared (404), the following changes to the hdf4 AUR package seem to be enough to get this built again. https://pastebin.com/7JNYiD8W

EDIT:: Nevermind, if it's not one thing, it's another.

cpl_vsil_crypt.cpp: In member function 'std::__cxx11::string  VSICryptFileHeader::CryptKeyCheck(CryptoPP::BlockCipher*)':
cpl_vsil_crypt.cpp:450:34: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]

asantam commented on 2018-04-13 16:16 (UTC) (edited on 2018-04-13 16:17 (UTC) by asantam)

Hello, the build is currently failing for me with the following error:

ogrgeojsonwriter.cpp:35:10: fatal error: json_object_private.h: No such file or directory

#include <json_object_private.h></json_object_private.h>

compilation terminated.

make[3]: *** [../../../GDALmake.opt:646: ../o/ogrgeojsonwriter.lo] Error 1

make[2]: *** [../../GDALmake.opt:659: geojson-target] Error 2

make[1]: *** [GNUmakefile:55: sublibs] Error 2

Apparently this is caused because json-c doesn't provide json_object_private.h anymore. This problem is solved in the gdal package (the one installed by pacman) by a patch file (gdal-2.2.3_json-c_013.patch).

ggranga commented on 2017-11-22 06:59 (UTC)

Yes, it is installed.

kikislater commented on 2017-11-22 06:18 (UTC)

Ok thank you for trying. So in that case I have problem with my configuration. I removed CFLAGS but still no luck ! But I'm surprised it could run with latest python2-scipy. Do you have python2-scipy installed ? Without it qgis is running fine. https://gis.stackexchange.com/questions/234010/qgis-fails-to-load/261506 https://www.i-ciencias.com/pregunta/51161/qgis-falla-al-cargar Also consider openjpeg not working related to this bug : https://bugs.archlinux.org/task/56121?project=5&string=gdal

ggranga commented on 2017-11-21 08:23 (UTC)

Sorry, I was not able to reproduce the error. I tried to compile with --with-ecw (without the flags) and all went well (including the ability to read ecw files from QGIS).

kikislater commented on 2017-11-20 10:57 (UTC) (edited on 2017-11-20 10:59 (UTC) by kikislater)

I use this package and edit it to have ECW support with libecwj2 from AUR. I edit PKGBIUILD and add --with-ecw in ./configure. I also add CFLAGS="-O0" CXXFLAGS="-O0" to configure and make related to this https://trac.osgeo.org/gdal/wiki/ECW Build is successfull, I could read ecw or others formats from command line. But when I run qgis I have the following error and qgis crash : $ qgis Warning: QCss::Parser - Failed to load file "/style.qss" Warning: QLayout: Attempting to add QLayout "" to QgsPanelWidgetStack "mWidgetStack", which already has a layout QH6248 qh_lib_check: Incorrect qhull library called. Caller uses reentrant Qhull while library is non-reentrant QH6249 qh_lib_check: Incorrect qhull library called. Size of qhT for caller is 8184, but for library is 2896. QH6256 qh_lib_check: Cannot continue. Library 'qhull 7.2.0 (2015.2 2016/01/18)' uses a static qhT (e.g., libqhull.so) Workaround is to downgrade from python2-scipy 1.0.0-1 to 0.19.0-1 but I wonder why ?! Using gdal from pacman doesn't show this error ! Any idea ? Seems to be related to this : https://bugs.launchpad.net/ubuntu/+source/qgis/+bug/1659029

ggranga commented on 2017-02-10 09:46 (UTC)

The patch was added to the PKGBUILD, now it should compile (without the need to downgrade jasper).

chikycin commented on 2017-02-10 05:22 (UTC)

This worked: replace JAS_CAST(uchar *, buf); by JAS_CAST(unsigned char*, buf) in frmts/jpeg2000/jpeg2000_vsil_io.cpp, line 212. Reference: http://osgeo-org.1560.x6.nabble.com/gdal-dev-jpeg2000-jasper-error-compiling-gdal-2-1-from-git-release-branch-td5299100.html

chikycin commented on 2017-02-09 13:43 (UTC)

The build is breaking: ########### In file included from /usr/include/jasper/jasper.h:68:0, from jpeg2000_vsil_io.h:33, from jpeg2000_vsil_io.cpp:77: jpeg2000_vsil_io.cpp: In function 'void JPEG2000_VSIL_jas_stream_initbuf(jas_stream_t*, int, char*, int)': jpeg2000_vsil_io.cpp:212:32: error: 'uchar' was not declared in this scope stream->bufbase_ = JAS_CAST(uchar *, buf); ^ jpeg2000_vsil_io.cpp:212:23: error: expected primary-expression before ')' token stream->bufbase_ = JAS_CAST(uchar *, buf); ^ make[2]: *** [../../GDALmake.opt:648: ../o/jpeg2000_vsil_io.lo] Error 1 make[2]: Leaving directory '/tmp/packerbuild-1000/gdal-hdf4/gdal-hdf4/src/gdal-2.1.1/frmts/jpeg2000' make[1]: *** [GNUmakefile:15: jpeg2000-install-obj] Error 2 make[1]: Leaving directory '/tmp/packerbuild-1000/gdal-hdf4/gdal-hdf4/src/gdal-2.1.1/frmts' make: *** [GNUmakefile:88: frmts-target] Error 2 ==> ERROR: A failure occurred in build(). Aborting... The build failed. ########