[vtk-developers] Guidance needed fixing problems doing 64bit compile on Mac OS X
Sean McBride
sean at rogue-research.com
Thu Oct 26 12:15:04 EDT 2006
On 2006-10-26 11:40, David Gobbi said:
>It was nice to see you in Atlanta (finally a face to associate with the
>email address!)
Likewise!! I hope you are well rested since the conference.
>In vtkXRenderWindowInteractor, as well, InternalCreateTimer() casts an
>unsigned long (which is the type of XtIntervalId) to an int. So there
>is bad stuff going on for all platforms.
Agreed.
>I've built VTK on several 64-bit systems (Linux-IA64, Linux-x86_64,
>IRIX64, sparc64) and haven't seen any problems yet, but that's probably
>just because I've never run into a timer Id large enough.
That's encouraging. I suspect vtk will work well on 64 bit Leopard once
I get it compiling, and there are only a few compilation problems it seems.
>My vote would be to use a vtkstd::map to store correspondences between
>ints and the internal timer type.
That is the other solution. But considering that on all of Carbon,
Cocoa, X, and Win there are bad casts I wonder if changing
vtkTimerStruct's 'int Id' to 'ptrdiff_t Id' would be better. That way
both 'platformTimerId' and 'timerId' would be the same size and no casts
nor maps would be needed.
--
____________________________________________________________
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 vtk-developers
mailing list