DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Sat, 2017-09-23, 22:45

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Thu, 2004-11-04, 18:37 
Offline
OFFIS DICOM Team
OFFIS DICOM Team

Joined: Tue, 2004-11-02, 17:22
Posts: 1203
Location: Oldenburg, Germany
:?: How can I create the DCMTK libraries as shared objects (.so-files) which are dynamically loaded when the DCMTK applications are started?

:!: This depends on your C++ compiler and operating system. When building shared objects containing C++ code, special handling for templates and constructors/destructors of global variables is required. Therefore, on most systems the shared object must be created with the C++ compiler, not with "ld". If you are using gcc on a platform where the "-shared" flag is supported, the following steps will create a "dynamic" DCMTK:
  1. run rootconf and configure (see the INSTALL file).
  2. edit the file 'config/Makefile.def' to include the following settings:
    Code:
    CFLAGS= -fPIC -O2
    CXXFLAGS= -fPIC -O2
    AR= gcc
    ARFLAGS= -shared -o
    LIBEXT= so
    RANLIB= :
  3. build and install the toolkit with "make", "make install" and "make install-lib".
  4. make sure that the environment variable LD_LIBRARY_PATH contains the directory where the DCMTK shared objects are installed.

Note: For Mac OS X, "-shared" should be replaced by "-dynamiclib" in step 2.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group