编译qemu-9.0.0
Linux yd 6.5.0-27-generic #28~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 15 10:51:06 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
qemu-9.0.0.tar.xz
编译命令
sudo apt install ninja-build flex python3-venv python3-sphinx libsdl2-dev cmake meson -y
注意,尽量安装上面所需要的软件,否则配置过程中会报错。
../configure --prefix=$PWD/ --target-list=aarch64-softmmu --enable-debug --enable-sdl --enable-kvm --enable-tools --disable-curl
make -j32
问题汇总:
ERROR: Cannot find Ninja
sudo apt install ninja-build
Did not find CMake 'cmake'
ERROR: meson setup failed
sudo apt-get install python3-sphinx
sudo pip3 install sphinx-rtd-theme
ERROR: Dependency "sdl2" not found, tried pkgconfig, config-tool and cmake
sudo apt install libsdl2-dev
编译python3.10
tar xvf Python-3.10.8.tar.xz
cd Python-3.10.8/
mkdir build
cd build
../configure --prefix=$PWD/ --enable-optimizations
make -j32
/home/yd/work/qemu/Python-3.10.8/build/python