Cannot compile debug version

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
Wonko
Posts: 8
Joined: Sun, 2006-01-15, 01:13

Cannot compile debug version

#1 Post by Wonko »

Creating a debug version of dcmtk-3.5.4 under Unix does not seem to work due to a missing DB_getDebugLevel() routine:

Code: Select all

./configure --enable-debug && make
...
dcmqridx.cc: In function `int main(int, char**)':
dcmqridx.cc:179: error: `DB_getDebugLevel' undeclared (first use this function)
dcmqridx.cc:179: error: (Each undeclared identifier is reported only once for each function it appears in.)
dcmqridx.cc:182: error: `DB_makeNewStoreFileName' undeclared (first use this function)
make[2]: *** [dcmqridx.o] Error 1
make[2]: Leaving directory `/home/wonko/prog/cvs/Offis/dcmtk-3.5.4/dcmqrdb/apps'
make[1]: *** [apps-all] Error 2
make[1]: Leaving directory `/home/wonko/prog/cvs/Offis/dcmtk-3.5.4/dcmqrdb'
make: *** [dcmqrdb-all] Error 2
A 'grep -r DB_getDebugLevel .' finds DB_getDebugLevel string only once, in dcmqridx.cc, so it seems to be missing indeed. Windows has no problem compiling because this file is not part of the dcmqrdb project.

This is no big problem for me but I thought I'd mention it.

Wonko
Posts: 8
Joined: Sun, 2006-01-15, 01:13

#2 Post by Wonko »

After commenting the part out I got the next problem:

Code: Select all

In file included from diimage.cc:40:
../include/dcmtk/dcmimgle/diinpxt.h: In member function `void DiInputPixelTemplate<T1, T2>::convert(DcmPixelData*, Uint16, Uint16, Uint16)':
../include/dcmtk/dcmimgle/diinpxt.h:368: error: there are no arguments to `isSigned' that depend on a template parameter, so a declaration of `isSigned' must be available
../include/dcmtk/dcmimgle/diinpxt.h:368: error: (if you use `-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
make[2]: *** [diimage.o] Error 1
make[2]: Leaving directory `/home/wonko/prog/cvs/Offis/dcmtk-3.5.4/dcmimgle/libsrc'
make[1]: *** [libsrc-all] Error 2
make[1]: Leaving directory `/home/wonko/prog/cvs/Offis/dcmtk-3.5.4/dcmimgle'
make: *** [dcmimgle-all] Error 2
Error 2 configuring!
After commenting this line out, too, DCMTK compiled fine. I am using gcc 3.4.4 under Gentoo Linux.

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 »

Thank you for the two reports. We've observed the same problems and already solved them in our internal development version. The next release will include these fixes.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest