嵌入式学习

1 安装 qemu

1.1 命令

wget https://download.qemu.org/qemu-6.2.0.tar.xz
tar xvJf qemu-6.2.0.tar.xz
cd qemu-6.2.0
./configure --target-list=arm-softmmu,arm-linux-user --enable-debug
make

1.2 报错与修复

1.2.1 ERROR: Cannot find Ninja

sudo apt-get install ninja-build

1.2.2 ERROR: pkg-config binary ‘pkg-config’ not found

sudo apt-get install pkg-config

1.2.3 ERROR: glib-2.56 gthread-2.0 is required to compile QEMU

sudo apt-get install build-essential zlib1g-dev pkg-config libglib2.0-dev binutils-dev libboost-all-dev autoconf libtool libssl-dev libpixman-1-dev python-capstone virtualenv

此处参考博客编译qemu-5.1.0,出现编译错误:ERROR: glib-2.48 gthread-2.0 is required to compile QEMU_宅学部落-王利涛-CSDN博客_glib-2.48 gthread-2.0。并根据报错信息去掉了"libpython-dev python-pip"这两个包。

你可能感兴趣的:(嵌入式,学习,linux,嵌入式,qemu,单片机)