Qt5 and MacPorts: missing links

2020-03-01 17:56发布

问题:

I'm wondering if somebody has also a similar "problem" while installing Qt5 from MacPorts.

I've installed a frech MacPorts distribution yesterday (on Yosemite) and installed the ports qt5-mac and qt5-creator-mac. First, I have noticed that (compared with my previous experience) there is no longer a link to Qt Creator in the /Applications/MacPorts folder. In addition, the tools like qmake are no longer in the path (that is, there are no links to files from /opt/local/libexec/qt5-mac/bin in /opt/local/bin). Of course, it is not a serious problem; I'm just wondering if this is the indended behavior or a possible bug.

回答1:

This is intended behavior. It's a first step to allowing multiple Qt versions to coexist.

If you wish to use a particular Qt version from the command line, you need to add its binary path to your path.