[Insight-users] Re: ITK compiling (use from external project)
Luis Ibanez
luis.ibanez at kitware.com
Wed Sep 1 11:38:10 EDT 2004
Hi Christian,
Thanks for sending your CMake information.
It seems that some of the classes in your application
are generating a recursive template instantiation and
bringing the VC++ compiler to its internal limit.
The current suspect is your class:
\src\visualization\itkMapIntensityImageFilter.txx
That seems to be instantiating a ShiftScaleImageFilter
internally.
Are you setting the appropriate #ifdef/#endif flags in
the .h and the .txx files ?
Maybe it will be simpler if you just post to the users
list your files
itkMapIntensityImageFilter.h
itkMapIntensityImageFilter.txx
Thanks
Luis
-----------
PS. In general it is simpler to send the CMakeCache.txt file,
than sending screenshots of CMake's GUI.
----------------------------------------------------------
Christian Dold wrote:
> Hi Luis
> yes I am using cmake.
> attacehd the cmake settings as png files
>
> I will be great to hear there is a solution for this problem
> Thanks
> Christian
>
>
> Luis Ibanez wrote:
>
>
>>Hi Christian,
>>
>>Are you using CMake for configuring your project ?
>>
>> It looks like you are not...
>>
>>
>>
>>CMake usually takes care of setting all the compiler
>>flags necesary for using ITK.
>>
>>Please post the CMakeLists.txt that you are using
>>for configuring your project.
>>
>>
>> Thanks
>>
>>
>> Luis
>>
>>
>>------------------------
>>Christian Dold wrote:
>>
>>
>>>Hi Luis
>>>I got lots of problems since last week during compiling my project.
>>>For example:
>>>:\ITK\InsightToolkit-1.6.0\Code\BasicFilters\itkRecursiveGaussianImageFilter.h(67)
>>>
>>>: fatal error C1076: compiler limit : internal heap limit reached; use
>>>/Zm to specify a higher limit
>>>
>>>D:\ITK\InsightToolkit-1.6.0\Code\BasicFilters\itkRecursiveGaussianImageFilter.h(67)
>>>
>>>: while compiling class-template member function 'double __thiscall
>>>itk::RecursiveGaussianImageFilter<class itk::Image<float,3>,class
>>>itk::Image<float,3> >::
>>>....
>>>C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream(354) :
>>>fatal error C1076: compiler limit : internal heap limit reached; use /Zm
>>>to specify a higher limit
>>>mipregiongrowing.cpp
>>>D:\ITK\InsightToolkit-1.6.0\Code\Common\itkWeakPointer.h(110) : fatal
>>>error C1076: compiler limit : internal heap limit reached; use /Zm to
>>>specify a higher limit
>>> .\src\visualization\itkMapIntensityImageFilter.txx(36) : see
>>>reference to class template instantiation 'itk::WeakPointer<class
>>>itk::ShiftScaleImageFilter<class itk::Image<float,3>,class
>>>itk::Image<unsigned short,3> > >' being compiled
>>> C:\Program Files\Microsoft Visual
>>>Studio\VC98\INCLUDE\xmemory(66) : while compiling class-template member
>>>function '__thiscall itk::MapIntensityImageFilter<class
>>>itk::Image<float,3>,class itk::Image<unsigned short,3>
>>>
>>>>::itk::MapIntensityImag
>>>
>>>
>>>.....
>>>mipaccureader.cpp
>>>D:\ITK\InsightToolkit-1.6.0\Code\BasicFilters\itkAnisotropicDiffusionImageFilter.h(110)
>>>
>>>: fatal error C1076: compiler limit : internal heap limit reached; use
>>>/Zm to specify a higher limit
>>>
>>>D:\ITK\InsightToolkit-1.6.0\Code\BasicFilters\itkAnisotropicDiffusionImageFilter.h(110)
>>>
>>>: while compiling class-template member function 'void __thiscall
>>>itk::AnisotropicDiffusionImageFilter<class itk::Image<float,3>,class
>>>itk::Image<float,3
>>>
>>>
>>>>>::SetConductanceScalingUpdateInterval(const unsigned int)'
>>>>
>>>....
>>>I always got the same error, changing the zm parameter did not work.
>>>Using no Zm works not. I searched on the internet but nothing helpes.
>>>Compiling on other mashines produces the same error.
>>>
>>>I will be a pleasure to get some info what to do to remove this failure
>>>Thanks a lot
>>>Christian
>>>
>>
>>
>>
>>
>
>
> ------------------------------------------------------------------------
>
>
> ------------------------------------------------------------------------
>
More information about the Insight-users
mailing list