下载源码

git clone https://git.qemu.org/git/qemu.git
cd qemu
git submodule init
git submodule update --recursive

编译安装

./configure
make

问题

# ERROR: glib-2.48 gthread-2.0 is required to compile QEMU
$ sudo apt install -y libglib2.0-dev

# ERROR: pixman >= 0.21.8 not present.
#        Please install the pixman devel package.
$ sudo apt install -y libpixman-1-dev

另外几个编译的过程日志;
https://www.jianshu.com/p/80c11180ef96
https://blog.csdn.net/haifeng_gu/article/details/108055083

参考:https://bevisy.github.io/p/compile-qemu-on-ubuntu-20.04/