[vtkusers] DCMTK + VTK or ITK

Xiaofeng Z xf10036 at hotmail.com
Mon Mar 29 09:52:26 EDT 2010


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?

 

Thanks!

Xiaofeng Z


 


From: Michael.Knopke at gmx.de
To: vtkusers at vtk.org
Date: Mon, 29 Mar 2010 10:40:16 +0200
Subject: Re: [vtkusers] DCMTK + VTK or ITK





 
Hi,
 
there are 2 things that you should be aware of when using DCMTK. Maybe this helps: 
 
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).
 
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!
 
Good luck
 
Michael
 
  		 	   		  
_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
http://clk.atdmt.com/GBL/go/210850553/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100329/c1786f5b/attachment.htm>


More information about the vtkusers mailing list