[Insight-developers] Help to debug on LInux64 and Mac 10.5

Sean McBride sean at rogue-research.com
Wed Dec 19 20:04:26 EST 2007


On 12/19/07 4:28 PM, Alexandre GOUAILLARD said:

>The "itkAutomaticTopologyQuadEdgeMeshSourceTest" test is failling on the two
>following machines:
>Boa,invivonmr.uu.nl
>RogueResearch4
>
>Unfortunatly, I don t have corresponding configuration available here
>(linux-x86, 64bits, g++4.1 and Mac OS10.5 Insight BS deb/rel).
>
>Could the owner of those machine give me acces to them

Probably not... :(

> or give me a hand to
>track those errors?

Sure!

RogueResearch4 does a few ITK builds.  InsightBS-dbg and InsightReview-
gcc-dbg-rosetta are very similar, the only real difference is that the
former builds 64 bit executables and the latter 32 bit.  Your test is
failing only on the former.  Since the linux machine is also building 64
bit, my guess would be that 64 bit-ness is the problem.

On the Mac, the major difference between 32 and 64 bit is that the
'long' type changes size (so does any pointer, size_t, etc.  But float,
double, char, short, and int stay the same).  You might want to check
everywhere you use 'int' and 'long' to be sure you aren't mixing them
up.  I checked very fast, and see you do:

  int numPoints = meshSource->GetOutput()->GetNumberOfPoints();

However, GetNumberOfPoints() returns a long not an int.  This should be
fixed, but probably isn't the problem.

I there some test I can run for you?

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada



More information about the Insight-developers mailing list