[Insight-developers] JPEG2000 bool issue on OSX ppc

Sean McBride sean at rogue-research.com
Tue May 28 10:32:57 EDT 2013


On Tue, 28 May 2013 08:53:43 -0400, Bradley Lowekamp said:

>My hack for JPEG2000's 1.2 bool issue:
>
>https://github.com/Kitware/ITK/commit/a7eee65
>
>is not working for OSX ppc:
>
>http://open.cdash.org/viewTest.php?onlyfailed&buildid=2920031
>
>because sizeof(bool) there is 4. So it looks like I'll need to do a try
>compile thing to get the right size... it'll still be a hack until we
>can upgrade to JPEG2000 2.0.

Please never do try-compiles for such things, it doesn't work with OS X 'universal binaries' where a single library is simultaneously built for multiple architectures, any of which may have different sizes for pointers, bools, ints, etc.

(I haven't followed this issue, but the language does not require a specific size of 'bool', why do you care?)

Cheers,

-- 
____________________________________________________________
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