Make qmake use qt5 by default

纵饮孤独 提交于 2019-12-03 13:10:17

The system might have different meta packages that handle the default. For example on Debian there is a qt4-default and a qt5-default package, installing one of them will uninstall the other and set the symlinks appropriately

There is a tool named qtchooser to switch between Qt versions. On Debian and Ubuntu you can install it with apt-get install qtchooser.

Easiest way is to use it to list the alternatives and then create QT_SELECT environment variable.

$ qtchooser -list-versions
4
5
default
opt-qt55
qt4-i386-linux-gnu
qt4
qt5-i386-linux-gnu
qt5

Then you create QT_SELECT environment variable and set e.g. export QT_SELECT=4 or export QT_SELECT=5.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!