[vtkusers] [Gdcm2] How to use vtk and gdcm in Visual Studio 2008

Jafari, Kourosh kjafari at rad.hfh.edu
Sun Jun 19 23:21:34 EDT 2011


How do I find the other libraries that I should add? I currently use the following libaries. Actually, I think it is not the libraries. Because when I add something new, it does not recognize it. When I remove gdcmMSFF in the following list, then it does not recognize vtkgdcm.

TARGET_LINK_LIBRARIES(TestGDCM
 gdcmMSFF
 vtkgdcm
 vtkCommon
 vtkRendering
 vtkIO
 vtkFiltering
 vtkGraphics
 vtkWidgets
 vtkImaging
 vtkHybrid
 vtkCharts
 vtkVolumeRendering
 )

Thanks!
Kourosh

________________________________________
From: John Drescher [drescherjm at gmail.com]
Sent: Sunday, June 19, 2011 9:27 PM
To: Jafari, Kourosh
Cc: VTK; gdcm-developers
Subject: Re: [Gdcm2] How to use vtk and gdcm in Visual Studio 2008

On Sun, Jun 19, 2011 at 8:53 PM, Jafari, Kourosh <kjafari at rad.hfh.edu> wrote:
> John,
>
> I think I did not understand your question. Did you mean adding "gdcmMSFF" to TARGET_LINK_LIBRARIES in CMakeLists.txt of my project (TestGDCM)? If so, yes I did.
>

Yes, I believe there are at least 2 gdcm libraries you need to add to
your  TARGET_LINK_LIBRARIES for this to work. Although with that said
I have not tried gdcm 2.0.17 yet. I am using an earlier version with
both of my current applications (CMake + VS 2008 or 2010 + Qt + GDCM +
ITK).

John


More information about the vtkusers mailing list