MantisBT - VTK
View Issue Details
0007705VTK(No Category)public2008-09-18 11:432009-01-27 10:39
Mike Jackson 
David Cole 
normalblockalways
closedfixed 
 
 
0007705: vtkfreetype will not compile on OS X when SDK is set to 10.4u and compiling on OS X 10.5
A compile error occurs when the OS X deployment target is set to 10.4 and the SDK is set to 10.4u while running on OS X 10.5. The issue is in the ftmac.c file where the following code is found:

  /* The ResourceIndex type was only added in the 10.5 SDK */
#ifndef MAC_OS_X_VERSION_10_5
typedef short ResourceIndex;
#endif

This does not resolve correctly under the conditions above. Using the following will fix the problem:

  /* The ResourceIndex type was only added in the 10.5 SDK */
#if (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_5)
typedef short ResourceIndex;
#endif

This also affects ParaView CVS.
I am doing some work with CMake that will allow builders of VTK to select which deployment target and SDK to use so currently you would not see this issue with VTK or ParaView but it may be seen in the future.


No tags attached.
duplicate of 0007199closed Sean McBride VTK's freetype is out of date. Currently version 2.3.6 includes security fixes. 
Issue History
2008-09-18 11:43Mike JacksonNew Issue
2008-09-18 12:56Sean McBrideStatusbacklog => tabled
2008-09-18 12:56Sean McBrideAssigned To => Sean McBride
2008-09-18 12:57Sean McBrideRelationship addedduplicate of 0007199
2008-09-18 13:18Sean McBrideNote Added: 0013516
2008-09-18 13:38Sean McBrideStatustabled => @80@
2008-09-18 13:38Sean McBrideResolutionopen => fixed
2008-09-18 13:38Sean McBrideNote Added: 0013517
2008-09-18 13:43Sean McBrideNote Added: 0013518
2008-09-18 13:43Sean McBrideAssigned ToSean McBride => David Cole
2008-09-18 13:43Sean McBrideStatus@80@ => tabled
2008-11-24 15:59David ColeNote Added: 0014166
2008-11-24 15:59David ColeStatustabled => @80@
2008-11-25 10:15Sean McBrideNote Added: 0014177
2008-11-25 10:15Sean McBrideStatus@80@ => tabled
2009-01-27 10:39David ColeNote Added: 0014685
2009-01-27 10:39David ColeStatustabled => closed
2011-06-16 13:11Zack GalbreathCategory => (No Category)

Notes
(0013516)
Sean McBride   
2008-09-18 13:18   
This is fixed in freetype 2.3.7, but updating VTK to 2.3.7 causes other problems, se 7199.

I guess I'll just move that one change over to VTK's version of freetype 2.3.5.
(0013517)
Sean McBride   
2008-09-18 13:38   
/cvsroot/VTK/VTK/Utilities/vtkfreetype/README.VTK.txt,v <-- README.VTK.txt
new revision: 1.8; previous revision: 1.7
/cvsroot/VTK/VTK/Utilities/vtkfreetype/src/base/ftmac.c,v <-- src/base/ftmac.c
new revision: 1.7; previous revision: 1.6
(0013518)
Sean McBride   
2008-09-18 13:43   
David, can you put this in the 5.2 branch? (let's give it a couple of days on the dashboard...)
(0014166)
David Cole   
2008-11-24 15:59   
Changes merged to the VTK-5-2 branch:

    /cvsroot/VTK/VTK/Utilities/vtkfreetype/README.VTK.txt,v <-- Utilities/vtkfreetype/README.VTK.txt
    new revision: 1.7.6.1; previous revision: 1.7
    /cvsroot/VTK/VTK/Utilities/vtkfreetype/src/base/ftmac.c,v <-- Utilities/vtkfreetype/src/base/ftmac.c
    new revision: 1.6.2.1; previous revision: 1.6
(0014177)
Sean McBride   
2008-11-25 10:15   
Closing.
(0014685)
David Cole   
2009-01-27 10:39   
Fixed in CVS HEAD, the VTK-5-2 branch and verified by Sean McBride.