Search found 10 matches

by sfzhang
Tue, 2019-08-13, 09:14
Forum: DCMTK - Installation
Topic: Build dcmtk-3.6.4 failed on Debian 10 with gcc-8.3.0
Replies: 2
Views: 7946

Re: Build dcmtk-3.6.4 failed on Debian 10 with gcc-8.3.0

OK. I will apply the patch. Thanks very much!
by sfzhang
Tue, 2019-08-13, 04:27
Forum: DCMTK - Installation
Topic: Build dcmtk-3.6.4 failed on Debian 10 with gcc-8.3.0
Replies: 2
Views: 7946

Build dcmtk-3.6.4 failed on Debian 10 with gcc-8.3.0

Configure: ./configure --ignore-deprecation --enable-debug --enable-cxx11 --enable-stl --prefix=/usr/local/dcmtk-3.6.4 --with-libtiffinc=/usr/local/tiff-4.0.10 --with-libpnginc=/usr/local/libpng-1.6.35 --with-libiconvinc=/usr/local/libiconv-1.15 | tee configure.log.`date +%Y%m%d` Modify config/Makef...
by sfzhang
Mon, 2017-10-02, 13:04
Forum: DCMTK - Installation
Topic: build dcmtk-3.6.2 failed with gcc-6.3.0 on Debian 9.1
Replies: 1
Views: 3065

build dcmtk-3.6.2 failed with gcc-6.3.0 on Debian 9.1

When I build dcmtk-3.6.2 with gcc-6.3.0 on Debian 9.1, some error found. 1. undefined reference c++ -g -I/usr/include/libxml2 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -Wall -fPIC -L../libsrc -L../....
by sfzhang
Tue, 2016-05-10, 03:57
Forum: DCMTK - General
Topic: Calculate the buffer size before serialize DICOM to memory
Replies: 2
Views: 3324

Re: Calculate the buffer size before serialize DICOM to memo

I tested the code using GE MRI image which can be downloaded from here . And I found out the extra 8 bytes in 40 bytes may come from ImplementationClassUID(0002,0012) tag: Before serialize to buffer: (0002,0000) FileMetaInformationGroupLength UL 1 4 190 (0002,0012) ImplementationClassUID UI 1 20 1.2...
by sfzhang
Mon, 2016-05-09, 11:16
Forum: DCMTK - General
Topic: Calculate the buffer size before serialize DICOM to memory
Replies: 2
Views: 3324

Calculate the buffer size before serialize DICOM to memory

In the post Write DICOM file to memory , @J. Riesmeier sayed the buffer size can be got by calling DcmDataset::calcElementLength() . And I try the following code: // Get the buffer length Uint32 meta_length = m_dcm_file_format->getMetaInfo()->calcElementLength(EXS_Unknown, EET_UndefinedLength); Uint...
by sfzhang
Sat, 2015-06-13, 16:26
Forum: DCMTK - General
Topic: Bugs at OFTime?
Replies: 1
Views: 2756

Bugs at OFTime?

The source code in oftime.cc with version dcmtk-3.6.1_20150217 list as followed: 268 OFBool OFTime::setTimeInHours(const double hours, 269 const double timeZone, 270 const OFBool normalize) 271 { 272 OFBool status = OFFalse; 273 /* only change if the new time is valid */ 274 if (normalize || ((hours...
by sfzhang
Sat, 2015-06-06, 06:05
Forum: DCMTK - General
Topic: failed to build dcmtk-3.6.1_20150217 with libxml2-2.7.7
Replies: 1
Views: 3060

failed to build dcmtk-3.6.1_20150217 with libxml2-2.7.7

I build dcmtk-3.6.1_20150217 on debian 7.8-amd64 with libxml2-2.7.7 which was installed in /usr/local/libxml2-2.7.7. So I configure as followed first: ./configure --with-cxx11-stl \ --prefix=/usr/local/dcmtk-3.6.1_20140617 \ --with-libzlibinc=/usr/local/zlib-1.2.8 \ --with-libtiffinc=/usr/local/tiff...
by sfzhang
Sat, 2015-05-09, 05:01
Forum: DCMTK - General
Topic: Why ofstdinc.h should not be protected against mult-include?
Replies: 1
Views: 2859

Why ofstdinc.h should not be protected against mult-include?

I read the dcmtk source code, and found a comment at line 22 in ofstdinc.h:

Code: Select all

// this file is not and should not be protected against multiple inclusion
So what is the reason for that?
by sfzhang
Fri, 2014-08-29, 14:34
Forum: DCMTK - General
Topic: Redefined error when mixed dcmtk-3.6.0 & log4cplus-1.1.2
Replies: 2
Views: 4234

Re: Redefined error when mixed dcmtk-3.6.0 & log4cplus-1.1.2

Thank's your kind reply! @J. Riesmeier
I will try it!
by sfzhang
Fri, 2014-08-29, 13:41
Forum: DCMTK - General
Topic: Redefined error when mixed dcmtk-3.6.0 & log4cplus-1.1.2
Replies: 2
Views: 4234

Redefined error when mixed dcmtk-3.6.0 & log4cplus-1.1.2

I use dcmtk-3.6.0 to handle DICOM images, and use the log4cplus-1.1.2 as the logging library. The g++ compiler complained for the redefined error, because dcmtk-3.6.0 also used log4cplus with previous version as logging library. Is there any way to solve this problem? Thank's for help! /usr/local/lo...