<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
I actually has been using static linked DCMTK along with dynamically linked vtk in my project. It seemed to be working so far. Does anyone experiencing any difficulties in such usage?<BR>
<BR>
Thanks!<BR><BR>Xiaofeng Z<BR><BR><BR> <BR>
<HR id=stopSpelling>
From: Michael.Knopke@gmx.de<BR>To: vtkusers@vtk.org<BR>Date: Mon, 29 Mar 2010 10:40:16 +0200<BR>Subject: Re: [vtkusers] DCMTK + VTK or ITK<BR><BR>
<STYLE>
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:11.0pt;font-family:'Calibri','sans-serif';}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass p.ecxMsoAcetate, .ExternalClass li.ecxMsoAcetate, .ExternalClass div.ecxMsoAcetate
{margin-bottom:.0001pt;font-size:8.0pt;font-family:'Tahoma','sans-serif';}
.ExternalClass span.ecxE-MailFormatvorlage17
{font-family:'Verdana','sans-serif';color:windowtext;font-weight:normal;font-style:normal;}
.ExternalClass span.ecxSprechblasentextZchn
{font-family:'Tahoma','sans-serif';}
.ExternalClass .ecxMsoChpDefault
{;}
@page Section1
{size:612.0pt 792.0pt;}
.ExternalClass div.ecxSection1
{page:Section1;}
</STYLE>
<DIV class=ecxSection1>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"> </SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt">Hi,</SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt"> </SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt" lang=EN-US>there are 2 things that you should be aware of when using DCMTK. Maybe this helps: </SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt" lang=EN-US> </SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt" lang=EN-US>First, DCMTK comes with an CMAKE INSTALL script. So after building the library you should build the Project called INSTALL. This will move all includes and lib files to a special folder (CMAKE install path) so you don't need to include all those subfolders like you did. However this approach has one drawback: it uses either Debug or Release (depending on what you have selected in VS) not both (will override the files).</SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt" lang=EN-US> </SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt" lang=EN-US>The second important thing is that in my opinion the dcmtk cmakelists file is not correct, since it forces you to always use the hardcoded compiler setting: MT (MTd), which means static c-runtime (which is bad anyway). So independent of what you select in cmake it will alway overwrite your changes. So look at the dcmtk cmakelists and change the part where it forces cmake to use MTd (if you use a different setting in VTK which is MD by default). You CAN NOT mix both settings!</SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt" lang=EN-US> </SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt" lang=EN-US>Good luck</SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt" lang=EN-US> </SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt" lang=EN-US>Michael</SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt" lang=EN-US> </SPAN></P>
<P class=ecxMsoNormal><SPAN lang=EN-US> </SPAN></P></DIV>                                            <br /><hr />Hotmail: Trusted email with powerful SPAM protection. <a href='http://clk.atdmt.com/GBL/go/210850553/direct/01/' target='_new'>Sign up now.</a></body>
</html>