Linux 64 bit OS and DCMTK

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
alwittta
Posts: 111
Joined: Wed, 2006-03-15, 08:30

Linux 64 bit OS and DCMTK

#1 Post by alwittta »

Dear friends,

Is it possible to build DCMTK 3.5.4 on Redhat Enterprise 5 Linux 64 bit OS?

Thanks and Regards
Alvin

Per
Posts: 99
Joined: Mon, 2007-09-03, 10:53
Location: Trondheim, Norway
Contact:

#2 Post by Per »

Yes. I wrote this procedure to install it here:
echo "export DCMDICTPATH=/usr/local/lib64/dicom.dic" >> ~/.bashrc
./configure CFLAGS="-fPIC" CXXFLAGS="-fPIC" --prefix=/usr/local --libdir=/usr/local/lib64
make
su
make install
make install-lib
echo "/usr/local/lib64" >> /etc/ld.so.conf
echo "/usr/local/lib" >> /etc/ld.so.conf
/sbin/ldconfig
You will need the -fPIC if you want to use it as part of a shared library. The rest is just to put it in the appropriate places, rather than the (IMHO and according to FHS) badly flawed default location.

Hope this helps.

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#3 Post by Jörg Riesmeier »

The rest is just to put it in the appropriate places, rather than the (IMHO and according to FHS) badly flawed default location.
The default installation prefix will change with the next release of DCMTK and should be more FHS compliant (see current snapshot). The previous location has its origin from a time when our main development system was Solaris/SunOS and FHS (Linux) was not very wide-spread.

Btw, I don't think that "/usr/local/lib64/dicom.dic" is FHS compliant, too.

To the original poster: Our current development system is Debian (etch) Linux with 2.6.18-5-amd64 Kernel and gcc 4.1.2 (Debian 4.1.1-21).

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest