[vtkusers] DCMTK + VTK or ITK

madness78 madness78 at pusan.ac.kr
Mon Mar 29 05:14:46 EDT 2010


Hi Michael

Thank you for your reply!!

Second Opinion..

The default setting of DCMTK is MD, I read the article.
So I set all of libiarys such as DCMTK, VTK, and VS2008 to MD.
So do I have to change all of it to Mtd??



Michael Knopke wrote:
> 
>  
> 
> 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
> 
>  
> 
>  
> 
> 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 
> 

-- 
View this message in context: http://old.nabble.com/DCMTK-%2B-VTK-or-ITK-tp28050954p28066718.html
Sent from the VTK - Users mailing list archive at Nabble.com.




More information about the vtkusers mailing list