P2IM borrows the build script from GNU MCU Eclipse QEMU. The script builds QEMU in a docker container.
The steps to compile QEMU is as follows.
Follow the steps in https://docs.docker.com/install/linux/docker-ce/ubuntu/ to install docker.
Then enable non-root user to run docker containers by
sudo usermod -aG docker $USER
Remember to log out and log back in for this to take effect!
sudo apt-get install curl git automake texinfo unzip
cd qemu/ # cd to ROOT_OF_REPO/qemu/
WORK_FOLDER_PATH=`pwd`/src ./build_scripts/build-qemu.sh --deb64 --no-strip
You can found QEMU binary at src/install/debian64/qemu/bin/qemu-system-gnuarmeclipse