[root@centos7 ~]# uname -a
Linux centos7 4.14.0-115.el7a.0.1.aarch64 #1 SMP Sun Nov 25 20:54:21 UTC 2018 aarch64 aarch64 aarch64 GNU/Linux
[root@centos7 ~]#
[root@centos7 qemu-5.1.0]# ./configure --target-list=aarch64-softmmu
ERROR: glib-2.48 gthread-2.0 is required to compile QEMU
[root@centos7 qemu-4.2.0]# ./configure --target-list=aarch64-softmmu --prefix=/usr
ERROR: glib-2.48 gthread-2.0 is required to compile QEMU
[root@centos7 qemu-4.2.0]#
[root@centos7 qemu-4.2.0]# yum install glib2-devel glib2
Loaded plugins: fastestmirror, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
[root@centos7 qemu-4.2.0]# ./configure --target-list=aarch64-softmmu --prefix=/usr
ERROR: pixman >= 0.21.8 not present.
Please install the pixman devel package.
[root@centos7 qemu-4.2.0]#
[root@centos7 qemu-4.2.0]# yum install zlib-devel pixman-devel -y
Loaded plugins: fastestmirror, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* base: mirror-hk.koddos.net
* extras: mirror-hk.koddos.net
* updates: mirror-hk.koddos.net
Package zlib-devel-1.2.7-19.el7_9.aarch64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package pixman-devel.aarch64 0:0.34.0-1.el7 will be installed
--> Finished Dependency Resolution
[root@centos7 qemu-4.2.0]# qemu-system-aarch64 -version
QEMU emulator version 4.2.0
Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers
[root@centos7 qemu-4.2.0]#