[Insight-users] DICOM Header Info

TienGarry gjtian at hotmail.com
Thu Dec 18 05:11:41 EST 2008


Solved , thank you so much.
We can not define gdcm::File *f = gdcm::File::New();
Because there is not a definition of New() method.
So we should define it use the default constructor of gdcm::File.> Date: Thu, 18 Dec 2008 09:51:16 +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,> > I still do not understand why both of you are all that.> > Do you understand that gdcm is *part* of ITK ? Take for instance the> two examples: ImageReadDicomSeriesWrite.cxx &> DicomImageReadPrintTags.cxx. I am sure if you turn BUILD_EXAMPLES:ON> in your cmake config they'll build just fine *without* any system or> external gdcm...> > Why make things simple when you can make them complicated ...> > > On Thu, Dec 18, 2008 at 7:05 AM, TienGarry <gjtian at hotmail.com> wrote:> > 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 these> > components 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 found> >> > It 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> >> >> > ________________________________> > 更多热辣资讯尽在新版MSN首页! 立刻访问!> > > > -- > 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/66abb7a8/attachment.htm>


More information about the Insight-users mailing list