[vtkusers] Mac OSX 10.5/10.4 Build

Sean McBride sean at rogue-research.com
Mon Nov 10 17:38:42 EST 2008


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?

-- 
____________________________________________________________
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 vtkusers mailing list