Tuesday, May 6, 2014

DCMTK for Synology DSM

The DCMTK package provides a profound set of tools for the handling of DICOM data.

Determining all parameters to successfully build it for the Synology DSM on QorIQ / PPC was a bit tricky, that is why I am posting my configuration here.
Especially the last parameter (ac_cv_my_c_rightshift_unsigned=no) is important, as otherwise the configure script for cross compiling will fail.

The prerequisites include OpenSSL and libpng.

You can find the source code for DCMTK on the project homepage. The current official version is 3.6.0, but you can find the 3.6.1 snapshot already on their FTP server.

export DEVROOT="/usr/local/powerpc-none-linux-gnuspe"
export PKG_CONFIG_PATH=/usr/local/powerpc-none-linux-gnuspe/lib/pkgconfig
export AS="$DEVROOT/bin/powerpc-none-linux-gnuspe-as"
export AR="$DEVROOT/bin/powerpc-none-linux-gnuspe-ar"
export LD="$DEVROOT/bin/powerpc-none-linux-gnuspe-ld"
export RANLIB="$DEVROOT/bin/powerpc-none-linux-gnuspe-ranlib"
export LDFLAGS="-L$DEVROOT/lib"
export ARFLAGS=cru
export CC="$DEVROOT/bin/powerpc-none-linux-gnuspe-gcc"
export CXX="$DEVROOT/bin/powerpc-none-linux-gnuspe-g++"
export ARCH=powerpc-linux
export CROSS_COMPILE=powerpc-none-linux-gnuspe-
export STRIP="$DEVROOT/bin/powerpc-none-linux-gnuspe-strip"

./configure --prefix=/usr/local/powerpc-none-linux-gnuspe \
 --host=powerpc-none-linux-gnuspe \
 --disable-dcmjpeg \
 --with-libpng \
 --with-openssl \
 --enable-std-includes \
 --disable-debug \
 --with-zlib \
 --without-libwrap \
 ac_cv_my_c_rightshift_unsigned=no

No comments:

Post a Comment