some questions of xml2dcm

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
LYT
Posts: 4
Joined: Mon, 2014-10-27, 16:17

some questions of xml2dcm

#1 Post by LYT »

hello,all
I met some problems about xml2dcm or xml2dsr.
Firstly,i try to use the command line.But it reminds me that my computer(win8 64,win7 32 64,XP) is missing library file(libxml).I download it and register it.However, maybe my ways aren't correct.So Can anyone give me some advice about registering libxml?
Secondly,who can give me some codes that can realize xml2dcm in VS2008?
Thanks!

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

Re: some questions of xml2dcm

#2 Post by J. Riesmeier »

Why don't you just download the pre-compiled support libraries (incl. libxml2) from the DCMTK homepage (if you don't want to compile it on your own) and following the instructions from the INSTALL file?

LYT
Posts: 4
Joined: Mon, 2014-10-27, 16:17

Re: some questions of xml2dcm

#3 Post by LYT »

I have installed the DCMTK3.6.0 with libxml2.lib, and I found libxml fold in C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ include\
I could use command dsr2xml successfully, but I cannot use the command line xml2dsr to covert xml file into dcm file.
Is their any other approach to convert xml to dcm file?

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

Re: some questions of xml2dcm

#4 Post by J. Riesmeier »

Have you downloaded the official support libraries from the DCMTK homepage?
All details on how to use them are described in the above referenced INSTALL file.

LYT
Posts: 4
Joined: Mon, 2014-10-27, 16:17

Re: some questions of xml2dcm

#5 Post by LYT »

hi
when i use camke to configure DCMTK_WITH_XML and buid it successly in VS2008,but i cannot use xml2dcm.then i configure DCMTK_WITH_XML(libxml2-2.7.7) and DCMTK_WITH_ICONV(libiconv-1.13.1),however it has problems when i buid it in VS2008.for example:
..\..\..\dcmtk-3.6.1_20120831\ofstd\libsrc\ofchrenc.cc(30) : fatal error C1083: 无法打开包括文件:“localcharset.h”: No such file or directory
LINK : fatal error LNK1181: 无法打开输入文件“(Unable to open input file)..\..\lib\Debug\ofstd.lib”

I want to know that if i can use xml2dcm,i will need what are the required support library.

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

Re: some questions of xml2dcm

#6 Post by J. Riesmeier »

DCMTK 3.6.0 does not require (i.e. make use) of libiconv, and there is no DCMTK_WITH_ICONV in this version.
In this official release of the DCMTK, libiconv is only used by libxml2 for character set conversions (i.e. indirectly).

LYT
Posts: 4
Joined: Mon, 2014-10-27, 16:17

Re: some questions of xml2dcm

#7 Post by LYT »

OK,then how can I use XML2DSR command line successfully? What are the necessary libraies besides of libxml2?

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

Re: some questions of xml2dcm

#8 Post by J. Riesmeier »

The required external libraries can be found in the "libxml2-2.7.7" sub-directory of the above referenced "support library" package.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest