Package Details: dcmtk 3.6.9-1

Git Clone URL: https://aur.archlinux.org/dcmtk.git (read-only, click to copy)
Package Base: dcmtk
Description: A collection of libraries and applications implementing large parts the DICOM standard
Upstream URL: http://dicom.offis.de/dcmtk
Licenses: Other
Submitter: Skatox
Maintainer: Skatox
Last Packager: Skatox
Votes: 54
Popularity: 0.000000
First Submitted: 2008-11-07 13:14 (UTC)
Last Updated: 2024-12-18 03:10 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 .. 9 Next › Last »

wget commented on 2022-05-13 10:46 (UTC)

Would it be possible to upgrade this package to 3.6.7 that way I can properly link Orthanc and derivatives? :)

Skatox commented on 2021-06-23 03:50 (UTC)

Removed options=(), now it compiles. Sorry for any inconveniences

lahwaacz commented on 2021-06-21 07:18 (UTC)

The PKGBUILD contains

#Currently it's not building otherwise
options=(!buildflags)

which is false, the package builds just fine without overriding buildflags. Please remove this.

Skatox commented on 2021-06-21 00:46 (UTC)

Removed -lssl flag.

bartus commented on 2021-04-08 06:50 (UTC)

-lssl LDFLAGS hack is no longer required, you can safely drop it.

lahwaacz commented on 2021-04-06 07:26 (UTC)

libssh was removed from depends in the last update: https://aur.archlinux.org/cgit/aur.git/commit/?h=dcmtk&id=8358be53c7d02d94c6c0020399fbbd69df89cde3

tavianator commented on 2021-04-05 18:36 (UTC) (edited on 2021-04-05 18:36 (UTC) by tavianator)

Since libssh isn't a dependency, but -lssh is manually added to LDFLAGS for some reason, I get this:

-- Check for working C compiler: /usr/bin/cc - broken
CMake Error at /usr/share/cmake-3.20/Modules/CMakeTestCCompiler.cmake:66 (message):
  The C compiler

    "/usr/bin/cc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /build/dcmtk/src/dcmtk-3.6.6/CMakeFiles/CMakeTmp

    Run Build Command(s):/usr/bin/make -f Makefile cmTC_49963/fast && /usr/bin/make  -f CMakeFiles/cmTC_49963.dir/build.make CMakeFiles/cmTC_49963.dir/build
    make[1]: Entering directory '/build/dcmtk/src/dcmtk-3.6.6/CMakeFiles/CMakeTmp'
    Building C object CMakeFiles/cmTC_49963.dir/testCCompiler.c.o
    /usr/bin/cc    -o CMakeFiles/cmTC_49963.dir/testCCompiler.c.o -c /build/dcmtk/src/dcmtk-3.6.6/CMakeFiles/CMakeTmp/testCCompiler.c
    Linking C executable cmTC_49963
    /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_49963.dir/link.txt --verbose=1
    /usr/bin/cc -lssh -lz  CMakeFiles/cmTC_49963.dir/testCCompiler.c.o -o cmTC_49963 
    /usr/bin/ld: cannot find -lssh
    collect2: error: ld returned 1 exit status
    make[1]: *** [CMakeFiles/cmTC_49963.dir/build.make:99: cmTC_49963] Error 1
    make[1]: Leaving directory '/build/dcmtk/src/dcmtk-3.6.6/CMakeFiles/CMakeTmp'
    make: *** [Makefile:127: cmTC_49963/fast] Error 2

Removing -lssh from LDFLAGS fixes it.

Skatox commented on 2021-04-03 20:11 (UTC)

@jas added your suggestions. And @haawda, thanks for the collaboration.

haawda commented on 2021-03-22 20:04 (UTC)

Update

# Author: Miguel Useche <migueluseche@skatox.com>
# Maintainer: Miguel Useche <migueluseche@skatox.com>
# Contributor: Xiao-Long Chen <chenxiaolong@cxl.epac.to>

pkgname=dcmtk
pkgver=3.6.6
pkgrel=1
pkgdesc="A collection of libraries and applications implementing large parts the DICOM standard"
arch=('i686' 'x86_64')
url="http://dicom.offis.de/dcmtk"
license=('other')
depends=('zlib' 'libpng' 'libtiff' 'libxml2' 'openssl' 'libssh' 'libwrap')
makedepends=('cmake' 'make')
source=("ftp://dicom.offis.de/pub/dicom/offis/software/dcmtk/dcmtk${pkgver//./}/${pkgname}-${pkgver}.tar.gz")
sha512sums=('2bba96eac5908012eec7f510e05e7e426b3f1d2454fcdec056a3de9eb724b04d9d12f3cd0088b1f3be9c32430367600abdf30514d0f62c2f017f7740d1008b63')

#Currently it's not building otherwise
options=(!buildflags)

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  # Fix linker flags
  export LDFLAGS="-lssh -lz ${LDFLAGS}"

  # Use CMake instead of autotools (./configure)
  # Must build from the root directory or the man pages won't get installed
  cmake . \
    -DCMAKE_BUILD_TYPE:STRING="Release" \
    -DBUILD_SHARED_LIBS:BOOL=ON \
    -DCMAKE_INSTALL_LIBDIR:PATH=lib \
    -DCMAKE_INSTALL_LIBEXECDIR:PATH=lib \
    -DDCMTK_WITH_OPENSSL:BOOL=ON \
    -DDCMTK_WITH_PNG:BOOL=ON \
    -DDCMTK_WITH_PRIVATE_TAGS:BOOL=ON \
    -DDCMTK_WITH_TIFF:BOOL=ON \
    -DDCMTK_WITH_XML:BOOL=ON \
    -DDCMTK_WITH_CHARLS=ON \
    -DDCMTK_WITH_ZLIB:BOOL=ON \
    -DCMAKE_INSTALL_PREFIX=/usr

  make ${MAKEFLAGS}
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}/" install

  # Move configuration files from /usr/etc to /etc
  mv "${pkgdir}/usr/etc/" "${pkgdir}/"

  # Remove empty files (0 length)
  find "${pkgdir}" -type f -empty -exec rm -v {} \;
}

jas commented on 2021-02-04 17:50 (UTC)

Just curious: Where does the libssh dependency in the PKGBUILD come from? DCMTK doesn't use it. The list of DCMTK's third party dependencies is given here: https://support.dcmtk.org/docs/file_install.html Perhaps consider adding a dependency to libiconv or ICU instead, in case someone needs better character set conversion support than provided by the glibc.