編譯qemu-9.0.0

HelloWorldyd發表於2024-05-05

系統資訊

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

相關文章