让 qmake 默认使用 qt5 [英] Make qmake use qt5 by default

查看:51
本文介绍了让 qmake 默认使用 qt5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 Linux 系统上有 qt4 和 qt5.默认使用 qt4.什么是改变它的干净方法,以便 qmake 默认使用 qmake-qt5?

I have both qt4 and qt5 on my Linux system. qt4 is used by default. What is a clean way to change that so that qmake uses qmake-qt5 by default?

推荐答案

系统可能有不同的元包来处理默认值.例如在 Debian 上有一个 qt4-default 和一个 qt5-default 包,安装其中一个将卸载另一个并适当设置符号链接

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

这篇关于让 qmake 默认使用 qt5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆