[MacPorts] #49629: qt4-mac: qmake is in /opt/local/libexec/qt4/bin/qmake

MacPorts noreply at macports.org
Tue Nov 10 02:26:46 PST 2015


#49629: qt4-mac: qmake is in /opt/local/libexec/qt4/bin/qmake
-------------------------+-------------------------
  Reporter:  rickrich@…  |      Owner:  michaelld@…
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:
      Port:  qt4-mac     |
-------------------------+-------------------------

Comment (by rjvbertin@…):

 Replying to [comment:3 ryandesign@…]:
 > Since there are ports for multiple versions of qt, none of them should
 install commonly-named binaries or other files. Instead, [ticket:47294
 there should be a qt_select port] to let you choose.

 My Qt ports do provide the data required for qt_select, but I've also
 submitted qtchooser which I think is preferable to `port select`. That's a
 port that will install qmake (and moc and uic and a bunch of other
 utilities) as a symlink to qtchooser-mp, which is itself a wrapper utility
 that proxies for any number of declared Qt installations. The port will
 declare the Qt 4 and/or 5 versions provided by MacPorts, and allows you to
 declare a default version.

 Thus:
 - `qmake` will invoke either /opt/local/libexec/qt4/bin/qmake or
 /opt/local/libexec/qt5/bin/qmake or whatever you have set the default to
 - `qmake -qt=qt4-mac` will invoke the qmake binary from port:qt4-mac
 - `qmake -qt=qt5-kde` will invoke the qmake binary from port:qt5-kde
 (shameless plug for a port I submitted)
 - `qmake -qt=my-own-Qt` will invoke the qmake binary from an environment
 "my-own-Qt" that you've declared yourself by calling `qtchooser-mp
 -install`

-- 
Ticket URL: <https://trac.macports.org/ticket/49629#comment:5>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list