概要
在国产麒麟系统上进行Qt开发时,有时系统没有自带Qt,需要自己安装,目前官网只有x86架构类型的安装包,如果是arm64等架构(aarch64),则无法使用现有安装包进行安装。
环境
操作系统:银河麒麟桌面操作系统V10(SP1)
内核:5.4.18-85-generic
CPU:Phytium,D2000/8 E8C
gcc版本:9.3.0
安装方法
这里提供一种指令在线安装方法,该方法适用于对Qt版本没有特别的要求的情况,因为安装的是默认版本。如果对版本有要求,只能下载源码编译安装。
sudo aptitude install libdtkwidget-dev qt5-default qtcreator qtdeclarative5-dev
如果出现:aptitude找不到命令 的报错,则说明没有安装aptitude包。输入以下指令进行安装:
sudo apt-get install aptitude
安装版本
使用默认方式安装后的版本:Qt5.12.12 , Qt Creator版本4.11.0