[MacPorts] #19111: Proposed additions to vtk5 Portfile

MacPorts noreply at macports.org
Thu Apr 9 11:25:46 PDT 2009


#19111: Proposed additions to vtk5 Portfile
-------------------------------------------------+--------------------------
 Reporter:  tgamblin@…                           |       Owner:  macsforever2000@…           
     Type:  enhancement                          |      Status:  assigned                    
 Priority:  Normal                               |   Milestone:  Port Bugs                   
Component:  ports                                |     Version:  1.7.0                       
 Keywords:  vtk qt carbon vtk5 python pyqt4 qt4  |        Port:  vtk5                        
-------------------------------------------------+--------------------------

Comment(by dweber@…):

 Replying to [comment:4 tgamblin@…]:
 > I think this is because you did not put -carbon in your build line.  I
 can build +python +x11 -carbon fine on my system.  I do not believe that
 you can't build VTK with more than one of carbon, cocoa, or x11 -- is
 there a way to express that in the Portfile so it warns you about the
 variants you selected being incompatible?
 >

 See http://guide.macports.org/#reference.variants, ie:
 variant name [requires variant] [conflicts variant] [description
 description]


 > Also, do you think the default variants should be changed?  I mentioned
 above that the current port of vtk5 builds, by default, with:
 >     +python +x11 +tcltk
 >
 > In the portfile I submitted (which has apparently confused you) the
 defaults are:
 >     +carbon +python
 >
 > The question is whether the current set is the right set of defaults for
 MacPorts, since other Ports (like Qt4) default to prefer native guis like
 cocoa/carbon instead of X.  I think mac users trying vtk for the first
 time might expect that it use a native GUI.  The problem with that is that
 I think most VTK users are going to expect tcl/tk support (since that was
 the first scripting language VTK supported), but I can't seem to get
 carbon and tk to build together properly.  I *did* successfully build with
 cocoa, python, and tcl/tk, but VTK 5.2 won't embed properly in Qt unless
 you build with Carbon (b/c there are some unimplemented methods in the
 cocoa render window).  Sigh.
 >
 > If that was way too many configurations, here's a summary:
 >
 >
 > +tcltk -carbon +x11        Builds, works, no embedding in qt4-mac, but
 embeds in qt4-x11 (and need to disable carbon)
 > -tcktk +carbon -x11        Builds fine, embeds in qt4-mac, no tcl/tk
 support
 >
 > +tcltk works unless combined with carbon
 > +python seems to build with whatever.
 > Anything -carbon -x11 works fine (uses Cocoa), but doesn't embed in
 qt4-mac or qt4-x11
 >
 > Problem configurations:
 > Anything +carbon +tcltk       Doesn't build.  Build error somewhere in
 the X libraries that I could not figure out.
 > Anything +carbon +x11        Doesn't build.  VTK doesn't support carbon
 + x11
 >
 >
 > Thoughts?
 >

 Whatever you decide, do try configure to configure the variants using the
 'requires' and 'conflicts' phrases to get all these configuration
 dependencies resolved.

 Best, Darren

-- 
Ticket URL: <http://trac.macports.org/ticket/19111#comment:6>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list