Ticket #19111 (closed enhancement: fixed)
Proposed additions to vtk5 Portfile
| Reported by: | tgamblin@… | Owned by: | macsforever2000@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.7.0 |
| Keywords: | vtk qt carbon vtk5 python pyqt4 qt4 | Cc: | dweber@… |
| Port: | vtk5 |
Description
I've added some variants to the vtk5 Portfile that better integrate with qt4-mac and py25-pyqt4. I'd like to see these added to the MacPorts distro... who do I talk to about this?
The current vtk5 portfile only allows building with cocoa or x11 support, but the cocoa build of vtk5 doesn't allow embedding in qt widgets because there are some unimplemented methods in vtkCocoaRenderWindow in VTK 5.2. These methods are implemented properly for the Carbon build of VTK, so to embed in Qt, you have to build VTK with Carbon support.
I've added two variants to the build to allow this:
tcltk: bundles up the tcl/tk build options into a variant carbon: sets VTK_USE_COCOA to OFF and VTK_USE_CARBON to ON.
I separated these out because I couldn't get things to build properly with Carbon, Tk, and Python. If you want to integrate with PyQt4, you would build VTK like this:
sudo port install vtk5 +carbon +python
If you want to build what the vtk5 port builds right now, these are the options you would use:
sudo port install vtk5 +tcltk +x11 +python
Can I get these changes integrated into MacPorts? I've attached my modified Portfile.
The only thing I'm unsure of is what the default variants should be. I've set them to my preferred variants (+carbon +python), but just so that nobody gets surprised they should probably be set to +tcltk +x11 +python to reflect what the port does right now.
Thanks! -Todd Gamblin


