Package Details: kealib 1.5.3-1

Git Clone URL: https://aur.archlinux.org/kealib.git (read-only, click to copy)
Package Base: kealib
Description: An HDF5 Based Raster File Format and its GDAL plugin
Upstream URL: http://kealib.org
Licenses: MIT
Submitter: hexd
Maintainer: hexd (dobedobedo)
Last Packager: hexd
Votes: 1
Popularity: 0.000000
First Submitted: 2016-12-20 18:24 (UTC)
Last Updated: 2024-02-05 04:15 (UTC)

Latest Comments

hexd commented on 2023-07-15 23:18 (UTC)

The actual error is in the log file, not in stdout/stderr. Or just call ctest --output-on-failure instead of make test just to check. For me, the error was:

error while loading shared libraries: libkea.so.1.5: cannot open shared object file: No such file or directory

It seems ctest relies on RPATH, so stuff like CMAKE_SKIP_RPATH will prevent it from finding the built file, but it's not clear for me what triggered this in this case. After tweaking a bit the cmake call to remove some unrequired stuff, it worked fine for me, so I'm upgrading it.

dobedobedo commented on 2023-07-12 04:18 (UTC)

Hi, I tried to compile the 1.5.1 version with makepkg, and it always failed on the first try but succeeded on the second try.

LC_ALL=C makepkg -src                                                                                                                                                                                                      ✔ 
==> Making package: kealib 1.5.1-1 (Wed Jul 12 14:01:35 2023)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found kealib-1.5.1.tar.gz
==> Validating source files with sha256sums...
    kealib-1.5.1.tar.gz ... Passed
==> Extracting sources...
  -> Extracting kealib-1.5.1.tar.gz with bsdtar
==> Starting build()...
-- The C compiler identification is GNU 13.1.1
-- The CXX compiler identification is GNU 13.1.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found HDF5: /usr/lib/libhdf5_cpp.so;/usr/lib/libhdf5.so;/usr/lib/libsz.so;/usr/lib/libz.so;/usr/lib/libdl.a;/usr/lib/libm.so (found version "1.14.1-2") found components: CXX HL 
-- Looking for H5_HAVE_THREADSAFE
-- Looking for H5_HAVE_THREADSAFE - not found

*** HDF5 not built with HDF5_ENABLE_THREADSAFE=ON ***
*** KEALib WILL NOT be threadsafe ***

-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Found GDAL: /usr/lib/libgdal.so (found version "3.7.0") 
-- HDF5_LIBRARIES_LIBTOOL  -L/usr/lib -lhdf5_cpp -lhdf5 -lsz -lz -ldl -lm
-- dir_name /usr/include
-- HDF5_INCLUDE_LIBTOOL  /usr/include
-- HDF5_CFLAGS_LIBTOOL  -I/usr/include
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- GDAL plugin installation dir: /usr/lib/gdalplugins
-- Configuring done (0.9s)
-- Generating done (0.0s)
-- Build files have been written to: /home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1
make[2]: *** No rule to make target 'src/libkea.so', needed by 'gdal/gdal_KEA.so'.  Stop.
make[2]: *** Waiting for unfinished jobs....
[  6%] Building CXX object src/CMakeFiles/kea.dir/libkea/KEAAttributeTableInMem.cpp.o
[ 13%] Building CXX object src/CMakeFiles/kea.dir/libkea/KEAAttributeTable.cpp.o
[ 20%] Building CXX object src/CMakeFiles/kea.dir/libkea/KEAAttributeTableFile.cpp.o
[ 33%] Building CXX object gdal/CMakeFiles/gdal_KEA.dir/keaband.cpp.o
[ 33%] Building CXX object src/CMakeFiles/kea.dir/libkea/KEAImageIO.cpp.o
[ 40%] Building CXX object gdal/CMakeFiles/gdal_KEA.dir/keaoverview.cpp.o
[ 46%] Building CXX object gdal/CMakeFiles/gdal_KEA.dir/keadriver.cpp.o
[ 53%] Building CXX object gdal/CMakeFiles/gdal_KEA.dir/keacopy.cpp.o
[ 60%] Building CXX object gdal/CMakeFiles/gdal_KEA.dir/keadataset.cpp.o
[ 66%] Building CXX object gdal/CMakeFiles/gdal_KEA.dir/kearat.cpp.o
[ 73%] Building CXX object gdal/CMakeFiles/gdal_KEA.dir/keamaskband.cpp.o
In file included from /home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1/gdal/keaoverview.h:33,
                 from /home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1/gdal/keaoverview.cpp:30:
/home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1/gdal/keaband.h:37:49: note: '#pragma message: defining HAVE_64BITIMAGES'
   37 |     #pragma message ("defining HAVE_64BITIMAGES")
      |                                                 ^
/home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1/gdal/keaband.h:44:53: note: '#pragma message: defining HAVE_OVERVIEWOPTIONS'
   44 |     #pragma message ("defining HAVE_OVERVIEWOPTIONS")
      |                                                     ^
In file included from /home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1/gdal/keadataset.cpp:30:
/home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1/gdal/keaband.h:37:49: note: '#pragma message: defining HAVE_64BITIMAGES'
   37 |     #pragma message ("defining HAVE_64BITIMAGES")
      |                                                 ^
/home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1/gdal/keaband.h:44:53: note: '#pragma message: defining HAVE_OVERVIEWOPTIONS'
   44 |     #pragma message ("defining HAVE_OVERVIEWOPTIONS")
      |                                                     ^
In file included from /home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1/gdal/keamaskband.h:35,
                 from /home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1/gdal/keamaskband.cpp:30:
/home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1/gdal/keaband.h:37:49: note: '#pragma message: defining HAVE_64BITIMAGES'
   37 |     #pragma message ("defining HAVE_64BITIMAGES")
      |                                                 ^
/home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1/gdal/keaband.h:44:53: note: '#pragma message: defining HAVE_OVERVIEWOPTIONS'
   44 |     #pragma message ("defining HAVE_OVERVIEWOPTIONS")
      |                                                     ^
In file included from /home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1/gdal/keadriver.cpp:30:
/home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1/gdal/keaband.h:37:49: note: '#pragma message: defining HAVE_64BITIMAGES'
   37 |     #pragma message ("defining HAVE_64BITIMAGES")
      |                                                 ^
In file included from /home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1/gdal/keaband.cpp:30:
/home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1/gdal/keaband.h:37:49: note: '#pragma message: defining HAVE_64BITIMAGES'
   37 |     #pragma message ("defining HAVE_64BITIMAGES")
      |                                                 ^
/home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1/gdal/keaband.h:44:53: note: '#pragma message: defining HAVE_OVERVIEWOPTIONS'
   44 |     #pragma message ("defining HAVE_OVERVIEWOPTIONS")
      |                                                     ^
/home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1/gdal/keaband.h:44:53: note: '#pragma message: defining HAVE_OVERVIEWOPTIONS'
   44 |     #pragma message ("defining HAVE_OVERVIEWOPTIONS")
      |                                                     ^
In file included from /home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1/gdal/kearat.h:35,
                 from /home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1/gdal/kearat.cpp:30:
/home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1/gdal/keaband.h:37:49: note: '#pragma message: defining HAVE_64BITIMAGES'
   37 |     #pragma message ("defining HAVE_64BITIMAGES")
      |                                                 ^
/home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1/gdal/keaband.h:44:53: note: '#pragma message: defining HAVE_OVERVIEWOPTIONS'
   44 |     #pragma message ("defining HAVE_OVERVIEWOPTIONS")
      |                                                     ^
/home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1/gdal/keadriver.cpp:33:14: warning: redundant redeclaration of 'void GDALRegister_KEA()' in same scope [-Wredundant-decls]
   33 | void CPL_DLL GDALRegister_KEA(void);
      |              ^~~~~~~~~~~~~~~~
In file included from /usr/include/gdal_priv.h:62,
                 from /usr/include/gdal_pam.h:36,
                 from /home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1/gdal/keaband.h:33:
/usr/include/gdal_frmts.h:174:14: note: previous declaration of 'void GDALRegister_KEA()'
  174 | void CPL_DLL GDALRegister_KEA(void);
      |              ^~~~~~~~~~~~~~~~
/home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1/gdal/keaband.cpp: In member function 'virtual CPLErr KEARasterBand::SetDefaultRAT(const GDALRasterAttributeTable*)':
/home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1/gdal/keaband.cpp:849:22: warning: cast from type 'const GDALRasterAttributeTable*' to type 'GDALRasterAttributeTable*' casts away qualifiers [-Wcast-qual]
  849 |                 if( ((GDALRasterAttributeTable*)poRAT)->ValuesIO(GF_Read, nGDALColumnIndex, 0, numRows, panIntData ) == CE_None )
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1/gdal/keaband.cpp:865:22: warning: cast from type 'const GDALRasterAttributeTable*' to type 'GDALRasterAttributeTable*' casts away qualifiers [-Wcast-qual]
  865 |                 if( ((GDALRasterAttributeTable*)poRAT)->ValuesIO(GF_Read, nGDALColumnIndex, 0, numRows, padfFloatData ) == CE_None )
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1/gdal/keaband.cpp:881:22: warning: cast from type 'const GDALRasterAttributeTable*' to type 'GDALRasterAttributeTable*' casts away qualifiers [-Wcast-qual]
  881 |                 if( ((GDALRasterAttributeTable*)poRAT)->ValuesIO(GF_Read, nGDALColumnIndex, 0, numRows, papszStringData ) == CE_None )
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1/gdal/keacopy.cpp: In function 'void CopyRAT(GDALRasterBand*, kealib::KEAImageIO*, int)':
/home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1/gdal/keacopy.cpp:237:26: warning: cast from type 'const GDALRasterAttributeTable*' to type 'GDALRasterAttributeTable*' casts away qualifiers [-Wcast-qual]
  237 |                         ((GDALRasterAttributeTable*)gdalAtt)->ValuesIO(GF_Read, nj, ni, nLength, pnIntBuffer);
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1/gdal/keacopy.cpp:245:26: warning: cast from type 'const GDALRasterAttributeTable*' to type 'GDALRasterAttributeTable*' casts away qualifiers [-Wcast-qual]
  245 |                         ((GDALRasterAttributeTable*)gdalAtt)->ValuesIO(GF_Read, nj, ni, nLength, pfDoubleBuffer);
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1/gdal/keacopy.cpp:251:30: warning: cast from type 'const GDALRasterAttributeTable*' to type 'GDALRasterAttributeTable*' casts away qualifiers [-Wcast-qual]
  251 |                             ((GDALRasterAttributeTable*)gdalAtt)->ValuesIO(GF_Read, nj, ni, nLength, papszColData);
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [CMakeFiles/Makefile2:197: gdal/CMakeFiles/gdal_KEA.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 80%] Linking CXX shared library libkea.so
[ 80%] Built target kea
make: *** [Makefile:166: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
    ~/Documents/AUR_packages/kealib    master !1 ?2    LC_ALL=C makepkg -src                                                                                                                                                                                             4 ✘  4s  
==> Making package: kealib 1.5.1-1 (Wed Jul 12 14:01:41 2023)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found kealib-1.5.1.tar.gz
==> Validating source files with sha256sums...
    kealib-1.5.1.tar.gz ... Passed
==> Extracting sources...
  -> Extracting kealib-1.5.1.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...

*** HDF5 not built with HDF5_ENABLE_THREADSAFE=ON ***
*** KEALib WILL NOT be threadsafe ***

-- HDF5_LIBRARIES_LIBTOOL  -L/usr/lib -lhdf5_cpp -lhdf5 -lsz -lz -ldl -lm
-- dir_name /usr/include
-- HDF5_INCLUDE_LIBTOOL  /usr/include
-- HDF5_CFLAGS_LIBTOOL  -I/usr/include
-- GDAL plugin installation dir: /usr/lib/gdalplugins
-- Configuring done (0.5s)
-- Generating done (0.0s)
-- Build files have been written to: /home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1
[ 33%] Built target kea
[ 40%] Linking CXX shared library gdal_KEA.so
[ 46%] Building CXX object src/CMakeFiles/test1.dir/tests/test1.cpp.o
[ 93%] Built target gdal_KEA
[100%] Linking CXX executable test1
[100%] Built target test1
==> Starting check()...
Running tests...
Test project /home/o0331dobe/Documents/AUR_packages/kealib/src/kealib-1.5.1
    Start 1: test1
1/1 Test #1: test1 ............................   Passed    0.01 sec

100% tests passed, 0 tests failed out of 1

Total Test time (real) =   0.01 sec
==> Entering fakeroot environment...
==> Starting package()...
[ 33%] Built target kea
[ 86%] Built target gdal_KEA
[100%] Built target test1
Install the project...
-- Install configuration: "Release"
-- Installing: /home/o0331dobe/Documents/AUR_packages/kealib/pkg/kealib/usr/bin/kea-config
-- Installing: /home/o0331dobe/Documents/AUR_packages/kealib/pkg/kealib/usr/include/libkea/kea-config.h
-- Installing: /home/o0331dobe/Documents/AUR_packages/kealib/pkg/kealib/usr/lib/libkea.so.1.5.1
-- Installing: /home/o0331dobe/Documents/AUR_packages/kealib/pkg/kealib/usr/lib/libkea.so.1.5
-- Installing: /home/o0331dobe/Documents/AUR_packages/kealib/pkg/kealib/usr/lib/libkea.so
-- Installing: /home/o0331dobe/Documents/AUR_packages/kealib/pkg/kealib/usr/include/libkea/KEACommon.h
-- Installing: /home/o0331dobe/Documents/AUR_packages/kealib/pkg/kealib/usr/include/libkea/KEAException.h
-- Installing: /home/o0331dobe/Documents/AUR_packages/kealib/pkg/kealib/usr/include/libkea/KEAImageIO.h
-- Installing: /home/o0331dobe/Documents/AUR_packages/kealib/pkg/kealib/usr/include/libkea/KEAAttributeTable.h
-- Installing: /home/o0331dobe/Documents/AUR_packages/kealib/pkg/kealib/usr/include/libkea/KEAAttributeTableInMem.h
-- Installing: /home/o0331dobe/Documents/AUR_packages/kealib/pkg/kealib/usr/include/libkea/KEAAttributeTableFile.h
-- Installing: /home/o0331dobe/Documents/AUR_packages/kealib/pkg/kealib/usr/include/libkea/kea_export.h
-- Installing: /home/o0331dobe/Documents/AUR_packages/kealib/pkg/kealib/usr/lib/cmake/libkea/libkeaTargets.cmake
-- Installing: /home/o0331dobe/Documents/AUR_packages/kealib/pkg/kealib/usr/lib/cmake/libkea/libkeaTargets-release.cmake
-- Installing: /home/o0331dobe/Documents/AUR_packages/kealib/pkg/kealib/usr/lib/cmake/libkea/libkeaConfig.cmake
-- Installing: /home/o0331dobe/Documents/AUR_packages/kealib/pkg/kealib/usr/lib/cmake/libkea/libkeaConfigVersion.cmake
-- Installing: /home/o0331dobe/Documents/AUR_packages/kealib/pkg/kealib/usr/lib/gdalplugins/gdal_KEA.so
-- Set runtime path of "/home/o0331dobe/Documents/AUR_packages/kealib/pkg/kealib/usr/lib/gdalplugins/gdal_KEA.so" to ""
-- Up-to-date: /home/o0331dobe/Documents/AUR_packages/kealib/pkg/kealib/usr/lib/gdalplugins/gdal_KEA.so
==> Tidying install...
  -> Removing empty directories...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> WARNING: Package contains reference to $srcdir
usr/lib/gdalplugins/gdal_KEA.so
==> Creating package "kealib"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: kealib 1.5.1-1 (Wed Jul 12 14:01:43 2023)
==> Cleaning up...

dobedobedo commented on 2022-02-07 18:34 (UTC)

Hi,
I modified the PKGBUILD based on https://github.com/ubarsc/kealib/wiki/Building-KEA-on-Ubuntu

# Maintainer: Danilo J. S. Bellini <danilo dot bellini at gmail dot com>
# Contributor: dobedobedo <dobe0331 at gmail dot com>
pkgname=('kealib')
pkgver=1.4.14
pkgrel=1
pkgdesc="An HDF5 Based Raster File Format and its GDAL plugin"
arch=('i686' 'x86_64')
url='http://kealib.org'
license=('MIT')
makedepends=('cmake')
depends=('hdf5' 'gdal')
options=(!emptydirs)
source=("https://github.com/ubarsc/kealib/releases/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=('da5d4a540b34afb61665cb7b6bf284825b51464eaf2a23ccca16955e2712cab2')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  cmake -D BUILD_SHARED_LIBS=ON \
        -D CMAKE_BUILD_TYPE=Release \
        -D CMAKE_INSTALL_PREFIX=/usr \
        -D GDAL_INCLUDE_DIR=/usr/include \
        -D GDAL_LIB_PATH=/usr/lib \
        -D HDF5_INCLUDE_DIR=/usr/include \
        -D HD5F_LIB_PATH=/usr/lib \
        -D HDF5_STATIC_LIBS=OFF \
        -D KEAHDF5_STATIC_LIBS=OFF \
        -D LIBKEA_HEADERS_DIR=../include \
        -D LIBKEA_LIB_PATH=../src \
        -D LIBKEA_WITH_GDAL=ON \
        .
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install
  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
}

I'm not really familiar with compiling packages, but it seems to work.
Feel free to modify it based on your knowledge.