[vtkusers] wxVTKRenderWindowInteractor.py fails on OSX with VTK Cocoa build
imikejackson at gmail.com
Wed Feb 20 08:20:47 EST 2008
Oh, the fun of Carbon, Cocoa and C++ developers..
Early on when all those 3rd party toolbox developers brought their
toys to OS X they didn't know objective-C. This lead to them using
Carbon (C++) instead to port their code to OS X. Fast forward a few
years to the present time and now you get the current batch of
problems. Carbon didn't go 64 Bit, only cocoa, but all those 3rd party
toolkits are still Carbon. My guess is that python and wx are all
based on carbon so you _have_ to use a Carbon build of VTK to
inter-operate with those toolkits.
If this is a limitation because Carbon is only 32 bit I would find the
proper person at Apple and state your case as to why Carbon should be
ported to 64 bit (If at all possible).
So, the short answer to your question is that if you are using wx you
will have to use a Carbon build of VTK as wx is expecting Carbon data
Sorry for the bad news
On Wed, Feb 20, 2008 at 3:56 AM, Dan White <white at mpi-cbg.de> wrote:
> Hi OS X VTKers, like Sean, Gaetan, et al,
> We notice that wxVTKRenderWindowInteractor.py
> is failing for VTK Ccoca builds:
> here is the VTK bug report i filed....
> did anyone else run into that?
> Does anyone else use xwPython for a GUI on OSX?
> Cocoa enabled build of VTK CVS on OSX 10.5.2 with 10.5 SDK
> -arch -i386;86_64
> cocoa needed for 64 bit VTK, carbon is not 64 bit and is depreciated.
> wxVTKRenderWindowInteractor.py throws a type error as it is getting
> only 1 argument when expecting 2
> in onPaint. This does not happen wiht a Carbon build of VTK,
> so there must be some thing wrong with the way cocoa vtk render window
> is talking to wx render window interactor?
> This bug also shows up in BioImageXD with a VTK cocoa build, as it
> also uses wx.
> (again carbon vtk works as expected, but cant build 64 bit with
> carbon, and never will be able to )
> private-white:Desktop dan$ python2.5 /Users/dan/Desktop/VTKCVSgcc/VTK/
> Traceback (most recent call last):
> File "/Users/dan/Desktop/VTKCVSgcc/VTK/Wrapping/Python/vtk/wx/
> wxVTKRenderWindowInteractor.py", line 311, in OnPaint
> TypeError: function takes exactly 2 arguments (1 given)
> Dr. Daniel James White BSc. (Hons.) PhD
> Senior Microscopist / Image Processing and Analysis
> Light Microscopy Facility
> Max Planck Institute of Molecular Cell Biology and Genetics
> Pfotenhauerstrasse 108
> 01307 DRESDEN
> New Mobile Number!!!
> +49 (0)15114966933 (German Mobile)
> +49 (0)351 210 2627 (Work phone at MPI-CBG)
> +49 (0)351 210 1078 (Fax MPI-CBG LMF)
> +358 (0) 468102840 (Finnish mobile, only when I'm in Finland)
> dan at chalkie.org.uk
> ( white at mpi-cbg.de )
More information about the vtkusers