[vtkusers] DCMTK + VTK or ITK
Michael Knopke
Michael.Knopke at gmx.de
Mon Mar 29 04:40:16 EDT 2010
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100329/60486874/attachment.htm>
More information about the vtkusers
mailing list