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

Jafari, Kourosh kjafari at rad.hfh.edu
Tue Jun 21 12:06:30 EDT 2011


Actually maybe I should say CMake had a bug (?) because this time the library directory of gdcm was correctly set in TestGDCM project. But using version 2.0.17 I had to manually add it.

Kourosh

________________________________________
From: Jafari, Kourosh [kjafari at rad.hfh.edu]
Sent: Tuesday, June 21, 2011 12:02 PM
To: John Drescher; Mathieu Malaterre; mmroden at gmail.com
Cc: vtkusers at vtk.org; gdcm-developers
Subject: Re: [Gdcm2] [vtkusers] How to use vtk and gdcm in Visual Studio 2008

Ok, I did not quite understand what Mathieu suggested to do but I think it was already linked to gdcmMSFF. But the good news is that John's suggestion worked! I downloaded and used gdcm-2.0.14 and it worked fine! So maybe there is a bug in gdcm-2.0.17. How do I report this problem? Is the information in our e-mails enough to solve the problem in the next versions?

Thank you all for your great help!! I really appreciate it.
Kourosh

________________________________________
From: John Drescher [drescherjm at gmail.com]
Sent: Tuesday, June 21, 2011 9:43 AM
To: Mathieu Malaterre
Cc: gdcm-developers
Subject: Re: [Gdcm2] [vtkusers] How to use vtk and gdcm in Visual Studio 2008

On Tue, Jun 21, 2011 at 9:36 AM, Mathieu Malaterre
<mathieu.malaterre at gmail.com> wrote:
> On Tue, Jun 21, 2011 at 3:33 PM, John Drescher <drescherjm at gmail.com> wrote:
>>> cmake_minimum_required(VERSION 2.8)
>>> PROJECT(TestGDCM)
>>> FIND_PACKAGE(VTK REQUIRED)
>>> INCLUDE(${VTK_USE_FILE})
>>> FIND_PACKAGE(GDCM)
>>> IF(GDCM_FOUND)
>>>   INCLUDE(${GDCM_USE_FILE})
>>> ENDIF(GDCM_FOUND)
>>> INCLUDE_DIRECTORIES (
>>>  ${VTK_INCLUDE_DIR}
>>>  ${CMAKE_CURRENT_BINARY_DIR}
>>>  ${CMAKE_CURRENT_SOURCE_DIR}
>>>  )
>>> ADD_EXECUTABLE(TestGDCM TestGDCM.cxx)
>>> TARGET_LINK_LIBRARIES(TestGDCM
>>>  gdcmMSFF
>>>  vtkgdcm
>>>  vtkCommon
>>>  vtkRendering
>>>  vtkIO
>>>  vtkFiltering
>>>  vtkGraphics
>>>  vtkWidgets
>>>  vtkImaging
>>>  vtkHybrid
>>>  vtkCharts
>>>  vtkVolumeRendering
>>>  )
>>>
>>
>> I am now thinking this is the same GDCM bug I found a few versions
>> ago. Can you try gdcm-2.0.14 instead of 2.0.17.
>
> What bug ?
> If the OP uses gdcm symbols in TestGDCM.cxx, then he/she is required
> to link to gdcmMSFF (which will pulled most of gdcm API).
>

I vaguely remember having problems with the link directory being for
GDCM not being set after GDCM was converted to use an imported target
in 2.0.15. I somewhere had filed a bug report and you asked me for
more details that I never got around to producing. Sorry.

John

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Gdcm-developers mailing list
Gdcm-developers at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gdcm-developers
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Gdcm-developers mailing list
Gdcm-developers at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gdcm-developers


More information about the vtkusers mailing list