Package Base Details: gdal-hdf4

Git Clone URL: https://aur.archlinux.org/gdal-hdf4.git (read-only)
Submitter: ggranga
Maintainer: ggranga
Last Packager: ggranga
Votes: 3
Popularity: 0.000000
First Submitted: 2016-04-26 14:23
Last Updated: 2019-07-25 10:08

Latest Comments

1 2 Next › Last »

joeroe commented on 2019-12-06 08:12

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

@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

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

Kunda commented on 2019-02-02 19:10

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

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

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

Yes, it is installed.

kikislater commented on 2017-11-22 06:18

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

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

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