DICOMSDL  0.79.20110728
DICOMSoftwareDevelopmentLibrary
Installing

Getting Software

You can get the source code, binaries and installer for python at the http://code.google.com/p/dicomsdl .

Installing

DICOM SDL needs cmake (www.cmake.org) to compile. DICOM SDL was successfully compiled and ran on following environments

    - Microsoft Windows x86/x64 using Microsoft visual studio 2008
    - CentOS x64 5.4 using gcc 4.1.2
    - Ubuntu x64 10.10 using gcc 4.4.5
    - Mac OS X 10.5 (ppc) using xcode 3.1.2
    - Mac OS X 10.6 (intel) using Xcode 3.2.5 (gcc 4.2.1)

DICOM SDL is also expected to be compiled successfully at other Linux x86/x64 and intel MacOS platforms.

Compiling

Using VisualStudio C++ compilers

    -# edit <code>config_cmake.bat</code> and run it.
    -# do `nmake.exe install`

GCC (Linux or OSX)

    -# edit <code>config_cmake.sh</code> and run it.
    -# do `make install`

Note on build rpm file in Linux

You may get an error message like this if you try to build rpm installer under RedHat or CentOS linux.

        error: Installed (but unpackaged) file(s) found:
           ... .../site-packages/dicom.pyo

One of the workarounds to revolve this problem is modifying [pythondir]/distutils/command/build_rpm.py.

  1. find lines like this in [pythondir]/distutils/command/build_rpm.py.
                           ('install', 'install_script',
                            ("%s install "
                             "--root=$RPM_BUILD_ROOT"
  1. add -O1 option
                           ('install', 'install_script',
                            ("%s install -O1 "
                             "--root=$RPM_BUILD_ROOT"

ref. https://bugzilla.redhat.com/show_bug.cgi?id=530685

Linking DICOMSDL into Your Projects

Compiled binaries will go into ./build directory. Includes dicom.h, dicomcfg.h, dicomsdl.lib, ... into your project and just add line #include "dicom.h" into your program codes.

Building and installing python extention on Ubuntu

  1. Edit config_cmake.sh and turn on flags DPYTHON_BUILD_EXT and DPYTHON_INSTALL_EXT
  2. sudo apt-get install g++ swig python-dev rpm
  3. sudo ./config_cmake.sh
  4. sudo make

Building with Intel IPP Library

DICOMSDL can utilize power of IPP in managing JPEG2000 images. It has been tested in Win32 platform.

Requirement

Open config_cmake.bat, and edit flags and options like this. Path to IPP and code sample should be changed according to your environment.

set OPTION=%OPTION% -DUSE_IPP_CODEC=ON
set OPTION=%OPTION% -DIPP_INCLUDE:string="c:\Program Files (x86)\Intel\ComposerXE-2011\ipp\include"
set OPTION=%OPTION% -DIPP_LIBPATH:string="c:\Program Files (x86)\Intel\ComposerXE-2011\ipp\lib\ia32"
set OPTION=%OPTION% -DIPP_SAMPLEROOT:string="x\ipp-samples"
set OPTION=%OPTION% -DIPP_UICBINPATH:string="x\ipp-samples\image-codecs\uic\_bin\ia32_cl9"