[Insight-users] Insight-users Digest, Vol 96, Issue 12

Hui Tang tanghui.seu at gmail.com
Thu Apr 5 12:15:50 EDT 2012


Dear itk users
I got hits error in my levelset revolution when the current levelset's
surface/contour shrinks to nearly a point.

File:
/cm/shared/apps/itk/4.1rc01/ITK/Modules/Filtering/LabelMap/include/itkLabelMap.hxx
Line: 138
Description: itk::ERROR: LabelMap(0x180d190): No label object with label -3.

I understand that it is because the current levelset does not have a level
of -3 because it is too small to have that, but that could be reasonable
for me, because I can have very small structures
I am not allowed to change itk library, but I really want to remove this
label checking.
I could make my own itkLabelMapNewVersion.hxx , put  it together in the
same dir with my .cxx file.

May I ask is there a better solusion?

Thanks a lot!!!

BEST,

Hui

On Thu, Apr 5, 2012 at 6:00 PM, <insight-users-request at itk.org> wrote:

> Send Insight-users mailing list submissions to
>        insight-users at itk.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://www.itk.org/mailman/listinfo/insight-users
> or, via email, send a message with subject or body 'help' to
>        insight-users-request at itk.org
>
> You can reach the person managing the list at
>        insight-users-owner at itk.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Insight-users digest..."
>
>
> Today's Topics:
>
>   1. Re: use of std::vector with ITK typedefs (Arvind Rao)
>   2. Point Set Rigid Registration (Nirav Karani)
>   3. Re: use of std::vector with ITK typedefs (Matt McCormick)
>   4. Error     itk::Math::Detail::RoundHalfIntegerToEven_64(double)
>      (Rick Frank)
>   5. itk 4.1 VS2008 python 2.6 x64 (Martin Dulovits)
>   6. Re: Error
>      itk::Math::Detail::RoundHalfIntegerToEven_64(double)
>      (Bradley Lowekamp)
>   7. Re: use of std::vector with ITK typedefs (Arvind Rao)
>   8. build error with gcc 4.7 ('__int128' was not      declared in this
>      scope) (Andrzej Giniewicz)
>   9. Visual Studio 10 hanging because of size of,      the     project
>      (Martin Dulovits)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 5 Apr 2012 00:34:07 -0400
> From: Arvind Rao <arvind.sbia at gmail.com>
> Subject: Re: [Insight-users] use of std::vector with ITK typedefs
> To: Matt McCormick <matt.mccormick at kitware.com>
> Cc: insight-users at itk.org
> Message-ID:
>        <CAEsz-mZ2-M7C_9XmLnE29Y=AQ+GgVbo+t57eLyy+oU8ASBf0Pg at mail.gmail.com
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Matt,
>
> Thanks for replying. *ReadStreamFile(...)* is defined below.
> The "bad_alloc> caught: St9bad_alloc" error seems to originate from this
> function. For clarity, *TPixelType = itk::Vector<float, 3*>
>
> template< typename TPixelType>
> void *ReadStreamFile*( std::string filename, std::vector<TPixelType>
> &points )
> {
>   TPixelType dir;
>   int num;
>   std::vector<float> vec;
>   std::ifstream indata( filename.c_str() ); // opens the file
>
>   indata >> num;
>   while ( !indata.eof() )  { // keep reading until end-of-file
>      vec.push_back( num );
>      indata >> num;}
>   indata.close();
> }
>
> Best,
> Arvind
>
> On Wed, Apr 4, 2012 at 10:53 PM, Matt McCormick
> <matt.mccormick at kitware.com>wrote:
>
> > Hi Arvind,
> >
> > It looks like the error is happening inside ReadStreamFile, so please
> > post how that is declared and defined.
> >
> > Thanks,
> > Matt
> >
> > On Wed, Apr 4, 2012 at 8:57 PM, Arvind Rao <arvind.sbia at gmail.com>
> wrote:
> > > Hi all,
> > >
> > > In order to read-in a variable number of points from a file I want to
> > use a
> > > dynamically sized container like STD::VECTOR. The points are stored
> like
> > so:
> > > ( points is the vector I use )
> > >
> > >       typedef itk::Image< itk::Vector<ComponentType, Dimension>,
> > Dimension>
> > >                                 PeakImageType;
> > >       typedef PeakImageType::PixelType
> > >                                                        DirectionType;
> > >       std::vector<DirectionType>
> > >                                                                points
> > >
> > > However, the following try-catch statement gives, at run-time,
> "bad_alloc
> > > caught: St9bad_alloc"
> > >
> > >       try
> > >       {
> > >                 std::vector<DirectionType> points;
> > >                 ReadStreamFile<DirectionType>( streamArg.getValue(),
> > points
> > > );
> > >       }
> > >      catch (std::bad_alloc& ba)
> > >       {
> > >                 std::cerr << "bad_alloc caught: " << ba.what() <<
> > std::endl;
> > >                 return 0;
> > >       }
> > >
> > > So, what is going on? Its seems like POINTS is not being allocated
> > properly,
> > > but I'm sure how to fix this.
> > >
> > > Thanks for any help you can provide.
> > >
> > >
> > > --
> > > Arvind S. Rao, PhD
> > > Section of Biomedical Image Analysis
> > > Department of Radiology
> > > University of Pennsylvania
> > > 3600 Market Street, Suite 380
> > > Philadelphia, PA 19104
> > >
> > >
> > >
> > > _____________________________________
> > > Powered by www.kitware.com
> > >
> > > Visit other Kitware open-source projects at
> > > http://www.kitware.com/opensource/opensource.html
> > >
> > > Kitware offers ITK Training Courses, for more information visit:
> > > http://www.kitware.com/products/protraining.php
> > >
> > > Please keep messages on-topic and check the ITK FAQ at:
> > > http://www.itk.org/Wiki/ITK_FAQ
> > >
> > > Follow this link to subscribe/unsubscribe:
> > > http://www.itk.org/mailman/listinfo/insight-users
> > >
> >
>
>
>
> --
> *Arvind S. Rao, PhD*
> Section of Biomedical Image Analysis
> Department of Radiology
> University of Pennsylvania
> 3600 Market Street, Suite 380
> Philadelphia, PA 19104
> tel: (267) 283-8959
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.itk.org/pipermail/insight-users/attachments/20120405/b968c8c5/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 2
> Date: Thu, 5 Apr 2012 10:22:18 +0530
> From: Nirav Karani <niravkarani001 at gmail.com>
> Subject: [Insight-users] Point Set Rigid Registration
> To: insight-users at itk.org
> Message-ID:
>        <CAJbYoqY4LHWT3ADyncXBGkUF4kT10bNzDZOvUwzjrJFjoefAhA at mail.gmail.com
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hello!
>
> I want to register 2 point sets with different number of points. I am using
> the example code 'IterativeClosestPoint2.cxx' but it not giving
> satisfactory results. Does this code work for point sets without one-to-one
> correlation? The code uses Euler3DTransform, EuclideanDistancePointMetric
> and LevenbergMarquardtOptimizer. I'm certain that only rigid registration
> is required at this stage. What other transforms, metrics and optimizers
> can work in such a scenario? I have initialized the transform to expected
> translation and rotation values using the SetRotation and SetTranslation
> methods. But the results of the registration are way off the mark. Any
> suggestions will be greatly appreciated :)
>
> Thanks,
> Nirav.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.itk.org/pipermail/insight-users/attachments/20120405/a2fdc8bb/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 3
> Date: Thu, 5 Apr 2012 00:59:23 -0400
> From: Matt McCormick <matt.mccormick at kitware.com>
> Subject: Re: [Insight-users] use of std::vector with ITK typedefs
> To: Arvind Rao <arvind.sbia at gmail.com>
> Cc: insight-users at itk.org
> Message-ID:
>        <CALzTN-SsUuCmEF=1RWF=xHQT9AZzGMm83oLPahzCzKVVGjy+mQ at mail.gmail.com
> >
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi Arvind,
>
> That cannot be all of the function because "points" is not used inside.
>
> Matt
>
> On Thu, Apr 5, 2012 at 12:34 AM, Arvind Rao <arvind.sbia at gmail.com> wrote:
> > Hi Matt,
> >
> > Thanks for replying. ReadStreamFile(...) is defined below.
> The?"bad_alloc>
> > caught: St9bad_alloc" error seems to originate from this function.?For
> > clarity, TPixelType =?itk::Vector<float, 3>
> >
> > template< typename TPixelType>
> > void ReadStreamFile( std::string filename, std::vector<TPixelType>
> &points )
> > {
> > ? ?TPixelType dir;
> > ? ?int num;
> > ? ?std::vector<float> vec;
> > ? ?std::ifstream indata( filename.c_str() ); // opens the file
> >
> > ? ?indata >> num;
> > ? ?while ( !indata.eof() ) ?{ // keep reading until end-of-file
> > ? ? ? vec.push_back( num );
> > ? ? ? indata >> num;}
> > ? ?indata.close();
> > }
> >
> > Best,
> > Arvind
> >
> > On Wed, Apr 4, 2012 at 10:53 PM, Matt McCormick <
> matt.mccormick at kitware.com>
> > wrote:
> >>
> >> Hi Arvind,
> >>
> >> It looks like the error is happening inside ReadStreamFile, so please
> >> post how that is declared and defined.
> >>
> >> Thanks,
> >> Matt
> >>
> >> On Wed, Apr 4, 2012 at 8:57 PM, Arvind Rao <arvind.sbia at gmail.com>
> wrote:
> >> > Hi all,
> >> >
> >> > In order to read-in a variable number of points from a file I want to
> >> > use a
> >> > dynamically sized container like STD::VECTOR. The points are stored
> like
> >> > so:
> >> > ( points is the vector I use )
> >> >
> >> > ? ? ? typedef itk::Image< itk::Vector<ComponentType, Dimension>,
> >> > Dimension>
> >> > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? PeakImageType;
> >> > ? ? ? typedef PeakImageType::PixelType
> >> > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?DirectionType;
> >> > ? ? ? std::vector<DirectionType>
> >> > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?points
> >> >
> >> > However, the following try-catch statement gives, at
> >> > run-time,?"bad_alloc
> >> > caught: St9bad_alloc"
> >> >
> >> > ? ? ??try
> >> > ? ? ? {
> >> > ? ? ? ? ? ? ? ? std::vector<DirectionType> points;
> >> > ? ? ? ? ? ? ? ? ReadStreamFile<DirectionType>( streamArg.getValue(),
> >> > points
> >> > );
> >> > ? ? ? }
> >> > ? ? ?catch (std::bad_alloc& ba)
> >> > ? ? ? {
> >> > ? ? ? ? ? ? ? ? std::cerr << "bad_alloc caught: " << ba.what() <<
> >> > std::endl;
> >> > ? ? ? ? ? ? ? ? return 0;
> >> > ? ? ? }
> >> >
> >> > So, what is going on? Its seems like POINTS is not being allocated
> >> > properly,
> >> > but I'm sure how to fix this.
> >> >
> >> > Thanks for any help you can provide.
> >> >
> >> >
> >> > --
> >> > Arvind S. Rao, PhD
> >> > Section of Biomedical Image Analysis
> >> > Department of Radiology
> >> > University of Pennsylvania
> >> > 3600 Market Street, Suite 380
> >> > Philadelphia, PA 19104
> >> >
> >> >
> >> >
> >> > _____________________________________
> >> > Powered by www.kitware.com
> >> >
> >> > Visit other Kitware open-source projects at
> >> > http://www.kitware.com/opensource/opensource.html
> >> >
> >> > Kitware offers ITK Training Courses, for more information visit:
> >> > http://www.kitware.com/products/protraining.php
> >> >
> >> > Please keep messages on-topic and check the ITK FAQ at:
> >> > http://www.itk.org/Wiki/ITK_FAQ
> >> >
> >> > Follow this link to subscribe/unsubscribe:
> >> > http://www.itk.org/mailman/listinfo/insight-users
> >> >
> >
> >
> >
> >
> > --
> > Arvind S. Rao, PhD
> > Section of Biomedical Image Analysis
> > Department of Radiology
> > University of Pennsylvania
> > 3600 Market Street, Suite 380
> > Philadelphia, PA 19104
> > tel: (267) 283-8959
> >
>
>
> ------------------------------
>
> Message: 4
> Date: Thu, 5 Apr 2012 06:54:08 -0400
> From: "Rick Frank" <rickf at fullspectrumsw.com>
> Subject: [Insight-users] Error
>        itk::Math::Detail::RoundHalfIntegerToEven_64(double)
> To: <insight-users at itk.org>
> Message-ID: <558C1453-6F8E-4CE1-A9BF-4D319F491DF0 at fullspectrumsw.com>
> Content-Type: text/plain;       charset="us-ascii"
>
> I'm seeing something like this using visual studio 10 on windows 7 also
>
>
> I will post details
>
> Rick Frank
>
> On Apr 4, 2012, at 11:08 PM, "insight-users-request at itk.org" <
> insight-users-request at itk.org> wrote:
>
> > [Insight-users] Error
> >    itk::Math::Detail::RoundHalfIntegerToEven_64(double)
>
>
> ------------------------------
>
> Message: 5
> Date: Thu, 05 Apr 2012 14:23:28 +0200
> From: Martin Dulovits <martin.dulovits at woogieworks.at>
> Subject: [Insight-users] itk 4.1 VS2008 python 2.6 x64
> To: insight-users at itk.org
> Message-ID: <4F7D8EC0.2090604 at woogieworks.at>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> I am trying to build itk 4.1 VS2008 python 2.6 x64 windows with python
> bindings for the last few day but failed completely.
> So my question would be is it possible at all ? Has anybody succeeded to
> build with this configuration ? Especially the python bindings ?
> Sometimes the dll built, but the wrappers always failed.
> Should I choose an older version to work with Studio 2008 ?
>
> thx for any help
>
> martin
>
>
>
> ------------------------------
>
> Message: 6
> Date: Thu, 5 Apr 2012 08:44:06 -0400
> From: Bradley Lowekamp <blowekamp at mail.nih.gov>
> Subject: Re: [Insight-users] Error
>        itk::Math::Detail::RoundHalfIntegerToEven_64(double)
> To: Rick Frank <rickf at fullspectrumsw.com>
> Cc: "insight-users at itk.org" <insight-users at itk.org>
> Message-ID: <20293F0D-2349-4C7E-B644-D33608F0DD44 at mail.nih.gov>
> Content-Type: text/plain; charset="us-ascii"
>
> Recently, this error popped up on the SimpleITK dashboard with visual
> studio with ITKv4. Apparently, a 32-bit build of SimpleITK was finding a
> 64-bit build of ITK. I am not sure of all the details, but matching the
> correct ITK build solved this problem. It may be related to yours.
>
> Brad
>
>
> On Apr 5, 2012, at 6:54 AM, Rick Frank wrote:
>
> > I'm seeing something like this using visual studio 10 on windows 7 also
> >
> >
> > I will post details
> >
> > Rick Frank
> >
> > On Apr 4, 2012, at 11:08 PM, "insight-users-request at itk.org" <
> insight-users-request at itk.org> wrote:
> >
> >> [Insight-users] Error
> >>   itk::Math::Detail::RoundHalfIntegerToEven_64(double)
> > _____________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Kitware offers ITK Training Courses, for more information visit:
> > http://www.kitware.com/products/protraining.php
> >
> > Please keep messages on-topic and check the ITK FAQ at:
> > http://www.itk.org/Wiki/ITK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.itk.org/mailman/listinfo/insight-users
>
> ========================================================
> Bradley Lowekamp
> Medical Science and Computing for
> Office of High Performance Computing and Communications
> National Library of Medicine
> blowekamp at mail.nih.gov
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.itk.org/pipermail/insight-users/attachments/20120405/e7dda5ea/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 7
> Date: Thu, 5 Apr 2012 09:53:48 -0400
> From: Arvind Rao <arvind.sbia at gmail.com>
> Subject: Re: [Insight-users] use of std::vector with ITK typedefs
> To: Matt McCormick <matt.mccormick at kitware.com>
> Cc: insight-users at itk.org
> Message-ID:
>        <CAEsz-mb17EpN2kcnLSQSFUZ0cjpt41G7S2yZnMffdnE8Vf-Dzg at mail.gmail.com
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Matt,
>
> My apologizes. For brevity and debugging I removed the portion of code
> which fills points. The full code for *ReadStreamFle* is below.
>
> template< typename TPixelType>
> void ReadStreamFile( std::string filename, std::vector<TPixelType> &points
> )
> {
>   TPixelType dir;
>   int num;
>   std::vector<float> vec;
>
>   std::ifstream indata( filename.c_str() ); // opens the file
>   if(!indata) { // file couldn't be opened
>      cerr << "Error: file could not be opened" << endl;
>      exit(1);
>   }
>
>   indata >> num;
>   while ( !indata.eof() )
>   { // keep reading until end-of-file
>      vec.push_back( num );
>      indata >> num;
>   }
>   indata.close();
>   std::cout << vec.size() << "\n";
>
>   for(int j=0; j < int(vec.size()); j=+3)
>   {
>      dir[0] = vec[j];
>      dir[1] = vec[j+1];
>      dir[2] = vec[j+2];
>      points.push_back( dir );
>   }
> }
>
> Best,
> Arvind
>
> On Thu, Apr 5, 2012 at 12:59 AM, Matt McCormick
> <matt.mccormick at kitware.com>wrote:
>
> > Hi Arvind,
> >
> > That cannot be all of the function because "points" is not used inside.
> >
> > Matt
> >
> > On Thu, Apr 5, 2012 at 12:34 AM, Arvind Rao <arvind.sbia at gmail.com>
> wrote:
> > > Hi Matt,
> > >
> > > Thanks for replying. ReadStreamFile(...) is defined below.
> > The "bad_alloc>
> > > caught: St9bad_alloc" error seems to originate from this function. For
> > > clarity, TPixelType = itk::Vector<float, 3>
> > >
> > > template< typename TPixelType>
> > > void ReadStreamFile( std::string filename, std::vector<TPixelType>
> > &points )
> > > {
> > >    TPixelType dir;
> > >    int num;
> > >    std::vector<float> vec;
> > >    std::ifstream indata( filename.c_str() ); // opens the file
> > >
> > >    indata >> num;
> > >    while ( !indata.eof() )  { // keep reading until end-of-file
> > >       vec.push_back( num );
> > >       indata >> num;}
> > >    indata.close();
> > > }
> > >
> > > Best,
> > > Arvind
> > >
> > > On Wed, Apr 4, 2012 at 10:53 PM, Matt McCormick <
> > matt.mccormick at kitware.com>
> > > wrote:
> > >>
> > >> Hi Arvind,
> > >>
> > >> It looks like the error is happening inside ReadStreamFile, so please
> > >> post how that is declared and defined.
> > >>
> > >> Thanks,
> > >> Matt
> > >>
> > >> On Wed, Apr 4, 2012 at 8:57 PM, Arvind Rao <arvind.sbia at gmail.com>
> > wrote:
> > >> > Hi all,
> > >> >
> > >> > In order to read-in a variable number of points from a file I want
> to
> > >> > use a
> > >> > dynamically sized container like STD::VECTOR. The points are stored
> > like
> > >> > so:
> > >> > ( points is the vector I use )
> > >> >
> > >> >       typedef itk::Image< itk::Vector<ComponentType, Dimension>,
> > >> > Dimension>
> > >> >                                 PeakImageType;
> > >> >       typedef PeakImageType::PixelType
> > >> >
>  DirectionType;
> > >> >       std::vector<DirectionType>
> > >> >
>  points
> > >> >
> > >> > However, the following try-catch statement gives, at
> > >> > run-time, "bad_alloc
> > >> > caught: St9bad_alloc"
> > >> >
> > >> >       try
> > >> >       {
> > >> >                 std::vector<DirectionType> points;
> > >> >                 ReadStreamFile<DirectionType>( streamArg.getValue(),
> > >> > points
> > >> > );
> > >> >       }
> > >> >      catch (std::bad_alloc& ba)
> > >> >       {
> > >> >                 std::cerr << "bad_alloc caught: " << ba.what() <<
> > >> > std::endl;
> > >> >                 return 0;
> > >> >       }
> > >> >
> > >> > So, what is going on? Its seems like POINTS is not being allocated
> > >> > properly,
> > >> > but I'm sure how to fix this.
> > >> >
> > >> > Thanks for any help you can provide.
> > >> >
> > >> >
> > >> > --
> > >> > Arvind S. Rao, PhD
> > >> > Section of Biomedical Image Analysis
> > >> > Department of Radiology
> > >> > University of Pennsylvania
> > >> > 3600 Market Street, Suite 380
> > >> > Philadelphia, PA 19104
> > >> >
> > >> >
> > >> >
> > >> > _____________________________________
> > >> > Powered by www.kitware.com
> > >> >
> > >> > Visit other Kitware open-source projects at
> > >> > http://www.kitware.com/opensource/opensource.html
> > >> >
> > >> > Kitware offers ITK Training Courses, for more information visit:
> > >> > http://www.kitware.com/products/protraining.php
> > >> >
> > >> > Please keep messages on-topic and check the ITK FAQ at:
> > >> > http://www.itk.org/Wiki/ITK_FAQ
> > >> >
> > >> > Follow this link to subscribe/unsubscribe:
> > >> > http://www.itk.org/mailman/listinfo/insight-users
> > >> >
> > >
> > >
> > >
> > >
> > > --
> > > Arvind S. Rao, PhD
> > > Section of Biomedical Image Analysis
> > > Department of Radiology
> > > University of Pennsylvania
> > > 3600 Market Street, Suite 380
> > > Philadelphia, PA 19104
> > > tel: (267) 283-8959
> > >
> >
>
>
>
> --
> *Arvind S. Rao, PhD*
> Section of Biomedical Image Analysis
> Department of Radiology
> University of Pennsylvania
> 3600 Market Street, Suite 380
> Philadelphia, PA 19104
> tel: (267) 283-8959
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.itk.org/pipermail/insight-users/attachments/20120405/50863eb7/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 8
> Date: Thu, 5 Apr 2012 15:54:44 +0200
> From: Andrzej Giniewicz <gginiu at gmail.com>
> Subject: [Insight-users] build error with gcc 4.7 ('__int128' was not
>        declared in this scope)
> To: insight-users at itk.org
> Message-ID:
>        <CALMDwnDEagD4ysY_z9-KW=7o54hoa5GOw1YeVKcHJa00myGisw at mail.gmail.com
> >
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi there,
>
> I'm trying to build itk 4.1.0 using following configuration:
>
>  cmake \
>    -DCMAKE_BUILD_TYPE:STRING=Release \
>    -DBUILD_TESTING:BOOL=OFF \
>    -DBUILD_EXAMPLES:BOOL=OFF \
>    -DBUILD_SHARED_LIBS:BOOL=ON \
>    -DCMAKE_INSTALL_PREFIX:FILEPATH=/usr \
>    -DITK_USE_REVIEW:BOOL=ON \
>    -DITK_USE_SYSTEM_SWIG:BOOL=ON \
>    -DITK_WRAPPING:BOOL=ON \
>    -DITK_WRAP_PYTHON:BOOL=ON \
>    -DPYTHON_EXECUTABLE:PATH=/usr/bin/python2 \
>    -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python2.7 \
>    -DPYTHON_LIBRARY:PATH=/usr/lib/libpython2.7.so \
>    ../InsightToolkit-4.1.0
>
> After make and some long time, it fails. I'm not 100% sure, but I
> believe it started happening after update to GCC 4.7, as it worked
> before. It fails on vcl_complex.xml, by looking into
> Wrapping/Modules/ITKCommon/CMakeFiles/ITKCommonGccXML.dir/build.make I
> was able to track the failure to following line (tried with both
> bundled gccxml and cvs version):
>
> gccxml -fxml-start=_cable_
>
> -fxml=/home/giniu/arch2/insight-toolkit/src/build/Wrapping/Modules/ITKCommon/vcl_complex.xml
> --gccxml-gcc-options
>
> /home/giniu/arch2/insight-toolkit/src/build/Wrapping/Modules/ITKCommon/gcc_xml.inc
> -DCSWIG -DCABLE_CONFIGURATION -DITK_MANUAL_INSTANTIATION
>
> /home/giniu/arch2/insight-toolkit/src/build/Wrapping/Modules/ITKCommon/vcl_complex.cxx
> In file included from
>
> /home/giniu/arch2/insight-toolkit/src/InsightToolkit-4.1.0/Modules/ThirdParty/VNL/src/vxl/vcl/iso/vcl_limits.h:6,
>                 from
>
> /home/giniu/arch2/insight-toolkit/src/InsightToolkit-4.1.0/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_limits.h:12,
>                 from
>
> /home/giniu/arch2/insight-toolkit/src/InsightToolkit-4.1.0/Modules/Core/Common/include/itkNumericTraits.h:45,
>                 from
>
> /home/giniu/arch2/insight-toolkit/src/InsightToolkit-4.1.0/Modules/Core/Common/include/itkNumericTraitsFixedArrayPixel.h:21,
>                 from
>
> /home/giniu/arch2/insight-toolkit/src/InsightToolkit-4.1.0/Modules/Core/Common/include/itkFixedArray.h:286,
>                 from
>
> /home/giniu/arch2/insight-toolkit/src/InsightToolkit-4.1.0/Modules/Core/Common/include/itkIndex.h:22,
>                 from
>
> /home/giniu/arch2/insight-toolkit/src/InsightToolkit-4.1.0/Modules/Filtering/LabelMap/include/itkLabelObjectLine.h:21,
>                 from
>
> /home/giniu/arch2/insight-toolkit/src/InsightToolkit-4.1.0/Modules/Filtering/LabelMap/include/itkLabelObject.h:23,
>                 from
>
> /home/giniu/arch2/insight-toolkit/src/InsightToolkit-4.1.0/Modules/Filtering/LabelMap/include/itkShapeLabelObject.h:21,
>                 from
>
> /home/giniu/arch2/insight-toolkit/src/InsightToolkit-4.1.0/Modules/Filtering/LabelMap/include/itkStatisticsLabelObject.h:21,
>                 from
>
> /home/giniu/arch2/insight-toolkit/src/build/Wrapping/Modules/ITKCommon/vcl_complex.cxx:2:
>
> /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits:1405:
> error: '__int128' was not declared in this scope
>
> /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits:1405:
> error: template argument 1 is invalid
>
> /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits:1479:
> error: template argument 1 is invalid
>
> As this is kind of generated stuff, I'm not sure how to further track
> this issue - I'd be happy to provide any files/logs/info that might
> help tracking it.
>
> Cheers,
> Andrzej.
>
>
> ------------------------------
>
> Message: 9
> Date: Thu, 05 Apr 2012 16:04:07 +0200
> From: Martin Dulovits <martin.dulovits at woogieworks.at>
> Subject: [Insight-users] Visual Studio 10 hanging because of size of,
>        the     project
> To: insight-users at itk.org
> Message-ID: <4F7DA657.9000307 at woogieworks.at>
> Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
>
> On 4/5/2012 5:08 AM, insight-users-request at itk.org wrote:
> > [Insight-users] Visual Studio 10 hanging because of size of
> >       the     project
> > To:insight-users at itk.org, ITK<insight-developers at itk.org>
> > Message-ID:
> >       <CALzTN-Rtu=
> cZsS16WMEch+Hfpd6g8A0hFgKgfTEcJy2JNEaiPw at mail.gmail.com>
> > Content-Type: text/plain; charset=ISO-8859-1
> >
> > Hi,
> >
> > If you had trouble building ITKv4 on Visual Studio 10 with
> > BUILD_EXAMPLES ON and BUILD_TESTING ON, please try this patch and let
> > us know your experiences:
> >
> >    http://review.source.kitware.com/#/c/4912/1
> >
> > If you are not familiar with Git, the steps would be to first install
> MSysGit:
> >
> >    http://code.google.com/p/msysgit/downloads/list
> >
> > Then, from the MSys Git Bash terminal:
> >
> >    git clonehttp://itk.org/ITK.git
> >    cd ITK
> >    git fetchhttp://review.source.kitware.com/p/ITK
> > refs/changes/12/4912/2&&  git checkout FETCH_HEAD -b
> > vsHeaderTestRelease
> >
> > Then configure with CMake, build, ...
> >
> > Thanks,
> > Matt
> Just tried to build but failed with following error
>
> T:/svnitk/binBuild/Wrapping/Generators/GccXML/gccxml/share/gccxml-0.9/Vc10/Include/vector:82:
> error: '__noop' was not declared in this scope
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5):
> error MSB6006: "cmd.exe" exited with code 1.
>
> tried to build MinSizeRel x64 on VS2010sp1 prof.
>
> martin
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.itk.org/pipermail/insight-users/attachments/20120405/7b10693f/attachment-0001.htm
> >
>
> ------------------------------
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
>
> End of Insight-users Digest, Vol 96, Issue 12
> *********************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120405/01ff16b3/attachment.htm>


More information about the Insight-users mailing list