[vtkusers] Compile error of ftmac.c on MacOSX 10.5 using SDK 10.4u

Pierre.Fillard at sophia.inria.fr Pierre.Fillard at sophia.inria.fr
Thu Sep 4 05:15:22 EDT 2008


Not sure whether this is the good mailing list to post a compilation
error, sorry if not.


The file Utilities/vtkfreetype/src/base/ftmac.c does not compile on MaxOSX
10.5 when the SDK 10.4u is used (VTK 5.2 and CVS).


The error is (line 81): ResourceIndex is not defined


When one goes to line 81 of ftmac.c, one sees:


#ifndef MAC_OS_X_VERSION_10_5
typedef short ResourceIndex;
#endif



Changing it to:



#if !defined(MAC_OS_X_VERSION_10_5) ||
MAC_OS_X_VERSION_MIN_REQUIRED<MAC_OS_X_VERSION_10_5
typedef short ResourceIndex;
#endif


fixes the problem (compilation runs fine with both SDK 10.5 and 10.4u). My
guess is that MAC_OS_X_VERSION_10_5 is just a version number and is not
related to the SDK in use. Note that the check
MAC_OS_X_VERSION_MIN_REQUIRED<MAC_OS_X_VERSION_10_5 is done everywhere
else in the file but this line.


Hope this could be of any help.


Pierre Fillard,
Neurospin - CEA - France.





More information about the vtkusers mailing list