[vtkusers] Mac OSX 10.5/10.4 Build
quasilister
quasilister at gmail.com
Wed Nov 12 10:26:34 EST 2008
Your suggestions have fixed the problem. I was using apples gcc 4.0.1
and cmake version 2.6-patch 2.
Thank you for your help,
--Benjamin
On Mon, 2008-11-10 at 17:38 -0500, Sean McBride wrote:
> On 11/10/08 5:03 PM, Michael Jackson said:
>
> >If you want to DEPLOY to 10.4 but still be compatible with 10.5
> then
> >you need to use the 10.5 SDK, NOT the 10.4u SDK.
>
> Almost. :) Should be:
>
> "If you want to DEPLOY to 10.4 but still be compatible with 10.5 then
> you _can_ use the 10.5 SDK". You could use the 10.4 SDK also. Wouldn't
> make sense otherwise. Think back to when 10.4 was the newest... one
> might set the deployment target to 10.4 and use the 10.4 SDK (newest at
> the time). Apps built in that environment can continue to run in newer OSes.
>
> Benjamin's problem is interesting. If you look in MacMemory.h, there
> are comments about how, starting in the 10.4 SDK, some old Carbon
> functions were changed to inlines. Notably, BlockZero() was changed to
> use the posix bzero(). And he's getting "error: 'bzero' was not
> declared in this scope". MacMemory.h includes string.h to get the
> bzero() declaration. But string.h only declares it conditionally:
>
> /* Nonstandard routines */
> #ifndef _ANSI_SOURCE
> ...
> #ifndef _POSIX_C_SOURCE
> ...
> void bzero(void *, size_t);
>
> Somehow one of those two must be defined.
>
> Benjamin's, which compiler and which cmake are you using? Can you try
> with the 10.5 SDK?
>
More information about the vtkusers
mailing list