qemu编译
?一、下載qemu
https://download.qemu.org/qemu-5.2.0.tar.xzhttps://download.qemu.org/qemu-5.2.0.tar.xz
二、安裝依賴庫
$ sudo apt-get install ninja-build sudo apt-get install libglib2.0-dev sudo apt-get install libpixman-1-dev三、安裝python3.6
sudo add-apt-repository ppa:deadsnakes/ppa sudo apt update sudo apt install python3.6 sudo apt install python3.6-devsudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1 sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2sudo apt install python3-pip四、升級gcc
sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get install gcc-7配置gcc
# 命令最后的 20和50是優先級,如果使用auto選擇模式,系統將默認使用優先級高的
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5?20
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7?50
五、安裝ninja
Releases · ninja-build/ninja · GitHub?
六、編譯安裝qemu
./configure make # 編譯源碼 make install # 安裝?
總結
- 上一篇: 2022哈工大软件构造课程总结与经验分享
- 下一篇: TortoiseSVN 命令