[MacPorts] #37331: qt5-mac

MacPorts noreply at macports.org
Mon Jun 30 00:53:20 PDT 2014


#37331: qt5-mac
-----------------------------+--------------------------------
  Reporter:  eric.c.brown@…  |      Owner:  macports-tickets@…
      Type:  request         |     Status:  new
  Priority:  High            |  Milestone:
 Component:  ports           |    Version:
Resolution:                  |   Keywords:
      Port:  qt5             |
-----------------------------+--------------------------------

Comment (by macports@…):

 Replying to [comment:84 mk@…]:
 > What about coinstallability with qt4-mac as suggested further up? Are
 you still considering this?

 I suspect supporting co-installation would require a modification of
 qt4-mac, at least as far as the installation of header files.

 Currently from qt4-mac you get headers installed to /opt/local/include
 without a qt4-mac-specific subfolder (e.g.
 /opt/local/include/QtCore/qobject.h).

 I haven't checked out the qt5-mac port yet but even if it installs headers
 elsewhere, you would have great difficulty including Qt5 headers if you
 have /opt/local/include in your include path. e.g. #include
 <QtCore/qobject.h> will happily find the file listed above instead of
 wherever the Qt5 version of QtCore is installed.

 I say this having tried to have both Qt5 installed (from the downloadable
 package) and Qt4 (from macports) active at the same time, but building
 against Qt5 proved difficult with /opt/local/include in the include search
 path.

 A solution might be to ensure both versions are in their own subfolder in
 /opt/local/include:
 - /opt/local/include/qt4-mac/QtCore/qobject.h
 - /opt/local/include/qt5-mac/QtCore/qobject.h
 (actually if the qt5-mac port is like the pre-built downloadable version
 there'll be frameworks etc, but qt4-mac would still need to move its
 headers).

 Not sure if this applies to any other Qt4/Qt5 files that would otherwise
 conflict or risk ambiguity in automatic discovery (e.g. I think
 frameworks/libs & cmake configs probably all have Qt5 in the name to avoid
 collision).

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


More information about the macports-tickets mailing list