[Insight-users] DICOM Header Info

TienGarry gjtian at hotmail.com
Thu Dec 18 01:05:22 EST 2008


Siqi suggest I forward my email to you.
 
I compiled ITK,GDCM1.2.4 successfully, and I did  not modify ITK CMakeList.txt.
In ITK, I set ITK_USE_SYSTEM_GDCM OFF, as a summary, I compile ITK and GDCM1.2.4
use all the default settings.
 
This is my project CMakeList.txt. FIND_PACKAGE(ITK)IF (USE_ITK_FILE)  INCLUDE (${USE_ITK_FILE})ELSE (USE_ITK_FILE)  MESSAGE( FATAL_ERROR "This application requires ITK. One of thesecomponents is missing. Please verify configuration")ENDIF (USE_ITK_FILE)FIND_PACKAGE (GDCM)INCLUDE(${GDCM_USE_FILE}) I just add one line in my proram. #include "gdcmFile.h"gdcm::File *f = gdcm::File::New(); error C2039: 'New' : is not a member of 'gdcm::File'D:\ITKVTK\InsightToolkit-3.10.0\Utilities\gdcm\src\gdcmFile.h(111) : see declaration of 'gdcm::File' error C3861: 'New': identifier not foundIt seems that my project will search gdcmFile.h in the path of ITK.
> Date: Wed, 17 Dec 2008 16:14:09 +0100> From: mathieu.malaterre at gmail.com> To: gjtian at hotmail.com> Subject: Re: [Insight-users] DICOM Header Info> CC: insight-users at itk.org> > 'lo> > On Wed, Dec 17, 2008 at 2:51 PM, TienGarry <gjtian at hotmail.com> wrote:> > When I do it like your method, I will get the error:> >> > error C2027: use of undefined type 'gdcm::File'> > You need to #include "gdcmFile.h"> > > 2>> > D:\ITKVTK\InsightToolkit-3.8.0\Utilities\gdcm\src\gdcmSerieHelper.h(32) :> > see declaration of 'gdcm::File'> >> > I already installed the extern gdcm, and set ITK_USE_SYSTEM_ON, modified> > the cmakelist.txt> > Ok, if you decided to modify the cmakelist.txt, I can no longer be of> any help. I do not support (nor encourage) manual modfication of> cmakelist.txt. sorry.> > > > but I still get the error, when I include "gdcmFile.h", it indicates that> > the system will use the internal gdcmFile.h in> > D:\ITKVTK\InsightToolkit-3.8.0\Utilities\gdcm\src\ not in the external path.> > What is the issue with the current version shipped with ITK ? This is> gdcm 1.2.4. You do not need any external gdcm for this simple task.> > 2cts> -- > Mathieu
_________________________________________________________________
超炫人气榜给您所有偶像的最新资讯和排名,快来支持自己的偶像!
http://cnweb.search.live.com/xrank/results.aspx?q=%e5%91%a8%e6%9d%b0%e4%bc%a6&FORM=MSNH
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20081218/a9b46562/attachment.htm>


More information about the Insight-users mailing list