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

Jafari, Kourosh kjafari at rad.hfh.edu
Sun Jun 19 20:53:29 EDT 2011


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.

Thanks,
Kourosh

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

On Sun, Jun 19, 2011 at 10:53 AM, Jafari, Kourosh <kjafari at rad.hfh.edu> wrote:
> I turned the shared library off. But still I get the same error message:
>
> 1>------ Build started: Project: TestGDCM, Configuration: Release Win32 ------
> 1>Linking...
> 1>LINK : fatal error LNK1181: cannot open input file 'gdcmMSFF.lib'
> 1>Build log was saved at "file://c:\Users\Kourosh\Research\Softwares\Toolkit\MyCodes\TestGDCM\TestGDCM.dir\Release\BuildLog.htm"
> 1>TestGDCM - 1 error(s), 0 warning(s)
> 2>------ Skipped Build: Project: ALL_BUILD, Configuration: Release Win32 ------
> 2>Project not selected to build for this solution configuration
> ========== Build: 0 succeeded, 1 failed, 1 up-to-date, 1 skipped ==========
>
> Should I change the settings in Visual Studio?
>

No because the next time you change anything in cmake any changes you
have made in Visual Studio will be removed. You did you add the
TARGET_LINK_LIBS for gdcm?

John


More information about the vtkusers mailing list