How to compile dcmtk3.6.0 in Linux?

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
hadi
Posts: 11
Joined: Sat, 2005-02-26, 11:37
Location: Iran
Contact:

How to compile dcmtk3.6.0 in Linux?

#1 Post by hadi » Sat, 2014-03-15, 09:24

Hi
I want to compile dcmtk3.6.0 in linux suse 12.2
Is there any topic or documents how to do it?
I use these commands but it makes some error and can not compile all parts


./configure --without-openssl --without-zlib --without-libtiff --without-libpng --without-libxml --without-libwrap
make
make install
make install-lib

one of errors:
./../ofstd/include/dcmtk/ofstd/ofoset.h: In instantiation of ‘void OFOrderedSet<T>::Insert(const T&) [with T = OFString]’:
wlfsim.cc:509:39: required from here
../../ofstd/include/dcmtk/ofstd/ofoset.h:149:11: error: ‘Resize’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
../../ofstd/include/dcmtk/ofstd/ofoset.h:149:11: note: declarations in dependent base ‘OFSet<OFString>’ are not found by unqualified lookup
../../ofstd/include/dcmtk/ofstd/ofoset.h:149:11: note: use ‘this->Resize’ instead

Best Regards
Hadi
www.logicsims.ir

J. Riesmeier
DCMTK Developer
Posts: 2023
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: How to compile dcmtk3.6.0 in Linux?

#2 Post by J. Riesmeier » Sat, 2014-03-15, 12:15

I want to compile dcmtk3.6.0 in linux suse 12.2
Is there any topic or documents how to do it?
The compilation instructions can be found in the INSTALL file.

However, if you experience problems then they are probably caused by the fact that the version of your gcc compiler was not available at the time when DCMTK 3.6.0 was released. So you should give the latest snapshot or even the git version a try.

Btw, the following patch might also fix your problem with "ofoset.h": http://git.dcmtk.org/web?p=dcmtk.git;a= ... 58#patch21

hadi
Posts: 11
Joined: Sat, 2005-02-26, 11:37
Location: Iran
Contact:

Re: How to compile dcmtk3.6.0 in Linux?

#3 Post by hadi » Sat, 2014-03-15, 16:10

Thank you so much sir.
I added hundres of this-> to so many files and at last dcmtk3.6 compiled.

Now I have so many of these error in my code:

assoc.cc:-1: error: undefined reference to `log4cplus::Logger::isEnabledFor(int) const'
assoc.cc:-1: error: undefined reference to `log4cplus::Logger::~Logger()'
assoc.cc:-1: error: undefined reference to `log4cplus::Logger::forcedLog(int, OFString const&, char const*, int, char const*) const'

Would you please help me for this
Best Regards
Hadi
www.logicsims.ir

J. Riesmeier
DCMTK Developer
Posts: 2023
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: How to compile dcmtk3.6.0 in Linux?

#4 Post by J. Riesmeier » Sat, 2014-03-15, 16:34

Please try the latest DCMTK snapshot or the current development version (from the public git repository) first!

hadi
Posts: 11
Joined: Sat, 2005-02-26, 11:37
Location: Iran
Contact:

Re: How to compile dcmtk3.6.0 in Linux?

#5 Post by hadi » Sat, 2014-03-15, 19:54

I must upgrade our PACS server for suse 12.2
So please help me pass this last errors
Thank you
www.logicsims.ir

J. Riesmeier
DCMTK Developer
Posts: 2023
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: How to compile dcmtk3.6.0 in Linux?

#6 Post by J. Riesmeier » Sat, 2014-03-15, 21:03

Please reread my last posting.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest