1. 依赖安装
安装所需的库:libffi,libiconv,gettext,python,pkg-config,glib,sdl,zlib,pixman,libfdt,libxml2 有关需要 QEMU 的软件包的详细信息,请参阅 http://wiki.qemu.org/Hosts/Linux 。此外,FIES 还要求 .libxml2
。
sudo apt install libffi6 libffi-dev libc6-dev gettext python pkg-config libsdl2-dev zlib1g-dev libpixman-1-dev libfdt-dev libxml2-dev
sudo apt install libsdl1.2debian libsdl-gfx1.2-5 libsdl-gfx1.2-dev libsdl-gfx1.2-doc libsdl-image1.2 libsdl-image1.2-dbg libsdl-image1.2-dev libsdl-mixer1.2 libsdl-mixer1.2-dbg libsdl-mixer1.2-dev libsdl-net1.2 libsdl-net1.2-dbg libsdl-net1.2-dev libsdl-sound1.2 libsdl-sound1.2-dev libsdl-ttf2.0-0 libsdl-ttf2.0-dev
下载FIES,解压,进入目录
cd fies-master
CF=$(xml2-config --cflags)
LF=$(xml2-config --libs)
PP=$(which python2)
./configure --target-list=arm-softmmu --extra-cflags="$CF" --extra-ldflags="$LF" --python="$PP" --enable-sdl --disable-werror
cd pixman
./configure
cd ..
make -j8
安装完成
2. 使用FIES
通过二. LLVM交叉编译 - 种玫瑰的小刘 - 博客园 (cnblogs.com)交叉编译得到arm架构可执行性程序,运行
arm-softmmu/qemu-system-arm -semihosting -kernel ../test/cross-c/cctest32
报错:
参考:
1.
标签:--,FIES,环境,dev,libsdl,config,arm,搭建 From: https://www.cnblogs.com/Liuyaaa/p/17547859.html