[Insight-users] Getting "Cannot allocate memory" when compiling Modules/ITKReview

Matt McCormick matt.mccormick at kitware.com
Mon Feb 27 11:28:32 EST 2012


Hi PMon,

On Mon, Feb 27, 2012 at 6:54 AM, pmon mail <pmon.mail at gmail.com> wrote:
> For the logs...
>
> I have just seen that this problem also causes builds to fail on dashboard
> also.
>
> It turned out that every cxx which includes
> "bin/Wrapping/Typedefs/ITKReviewExplicit.h" causing this failure.
>
> I see that this is a general include file which by itself includes many
> others. I have patched all cxx files which are including this header to
> include the specifically needed headers one by one instead of this huge
> one.
> This has solved me the problem and wrapping has been compiled successfully
> and it seems to be working.
>
> The question is whether:
> a. is this valid solution?

Yes, that sounds like a good solution.

> b. if yes, how can I share it?

We always welcome contributions.  It would be nice to  build wrapping
support without a lot of RAM.  Instructions can be found here for
pushing patches to Gerrit

  http://www.itk.org/Wiki/ITK/Git/Develop

Please let us know if you have any questions.

Thanks,
Matt


More information about the Insight-users mailing list