View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004001VTK(No Category)public2006-10-30 15:052016-08-12 09:54
ReporterSean McBride 
Assigned ToClinton Stimpson 
PrioritylowSeveritymajorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0004001: vtk uses deprecated functions in its Carbon support, must remove
Descriptionvtk uses several deprecated APIs in vtkCarbonRenderWindow.cxx. They are:

NewRgn(), DiffRgn(), EqualRgn(), DisposeRgn()

This generates warnings on several build machines, such as:

http://www.vtk.org/Testing/Sites/atlantis.kitware/Darwin-i386-Xcode-Debug/20061030-0845-Experimental/BuildWarning.html [^]

But this issue is bigger than simple compiler warnings.

These functions are deprecated, which means that they will eventually be removed from the OS.

Because of my NDA with Apple I cannot really say more, except that I suggest vtk stop using any and all deprecated APIs. :)
TagsNo tags attached.
Project
Type
Attached Filestxt file icon deprecated.txt [^] (1,201 bytes) 2009-01-12 11:09 [Show Content]

 Relationships

  Notes
(0005607)
Clinton Stimpson (developer)
2006-10-30 15:13

And when targeting 10.4, Apple said you have to live with those warnings, and there is no way around it, as the Apple AGL api depends on QuickDraw, until 10.5.

10.5 provides a new aglSetHIViewRef() which would replace the dependency on QuickDraw.
(0005608)
Sean McBride (developer)
2006-10-30 15:18
edited on: 2007-10-18 13:25

See also:
http://lists.apple.com/archives/mac-opengl/2006/Oct/msg00010.html [^]

Since vtk should support 10.4 for the foreseeable future, the code must be changed to use the new APIs conditionally, like so:

#if defined(MAC_OS_X_VERSION_10_5) && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
  new APIs
#else
  old QD APIs
#endif

(0009627)
Sean McBride (developer)
2007-11-03 22:04

For the record, AGL is not available to 64 bit processes, see:

http://developer.apple.com/documentation/Carbon/Conceptual/Carbon64BitGuide/OtherAPIChanges/chapter_6_section_4.html#//apple_ref/doc/uid/TP40004381-CH5-DontLinkElementID_31 [^]
(0014531)
Sean McBride (developer)
2009-01-12 11:09

Clinton, can you review this partial patch?
(0014533)
Clinton Stimpson (developer)
2009-01-12 13:02

That patch looks correct to me. Thanks. My main Mac is still on 10.4.
(0014534)
Sean McBride (developer)
2009-01-12 13:06

/cvsroot/VTK/VTK/Rendering/vtkCarbonRenderWindow.cxx,v <-- vtkCarbonRenderWindow.cxx
new revision: 1.75; previous revision: 1.74
(0036892)
Kitware Robot (administrator)
2016-08-12 09:54

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2007-10-18 13:23 Sean McBride Assigned To Mathieu Malaterre => Clinton Stimpson
2007-10-18 13:25 Sean McBride Note Edited: 0005608
2007-11-03 22:04 Sean McBride Note Added: 0009627
2007-11-03 22:04 Sean McBride Description Updated
2009-01-12 11:09 Sean McBride Note Added: 0014531
2009-01-12 11:09 Sean McBride File Added: deprecated.txt
2009-01-12 13:02 Clinton Stimpson Note Added: 0014533
2009-01-12 13:06 Sean McBride Note Added: 0014534
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2016-08-12 09:54 Kitware Robot Note Added: 0036892
2016-08-12 09:54 Kitware Robot Status expired => closed
2016-08-12 09:54 Kitware Robot Resolution open => moved


Copyright © 2000 - 2018 MantisBT Team