我试图在Ubuntu 12.04 LTS操作系统中使用scratchbox2帮助交叉编译单声道的arm架构但是没有这样做。
我所做的整个过程如下:
:一种。设置scratchbox2
克隆scratchbox 2存储库:
$ git clone git://gitorious.org/scratchbox2/scratchbox2.git
构建并安装SB2:
$ cd scratchbox2
$ dpkg-buildpackage -rfakeroot
$ cd ..
$ sudo dpkg -i libsb2*deb scratchbox2*deb
状态:成功
B中。设置qemu
克隆qemu存储库
git clone git://git.qemu.org/qemu.git
构建并安装qemu
$ cd qemu $ ./configure --prefix = $ HOME / sb2 --target-list = arm-linux-user $ make&& make install $ cd ..
状态:成功
℃。设置手臂工具链
获取手臂工具链
$ wget https://sourcery.mentor.com/sgpp/lite/arm/portal/package8739/public/arm-none-linux-gnueabi/arm-2011.03-41-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
$ tar xjvf arm-2011.03-41-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
生成工作目标配置。
$ cp -a arm-2011.03/arm-none-linux-gnueabi/libc/{lib,etc,usr} .
$ sb2-init ARM9 arm-2011.03/bin/arm-none-linux-gnueabi-gcc [ ARM9-> name of target]
状态:成功
d。交叉编译单声道
$ sb2
[SB2 simple arm9] root@Vostro-460 $ cd Desktop/mono-2.10.8.1
[SB2 simple arm9] root@Vostro-460 mono-2.10.8.1 $ ./configure --disable-mcs-build
[SB2 simple arm9] root@Vostro-460 mono-2.10.8.1 $ make
状态:失败
错误:
/usr/local/lib/libgmodule-2.0.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[4]: *** [test-glib] Error 1
make[4]: Leaving directory `/home/ushus/Desktop/mono-2.10.8.1/eglib/test'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/ushus/Desktop/mono-2.10.8.1/eglib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/ushus/Desktop/mono-2.10.8.1/eglib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ushus/Desktop/mono-2.10.8.1'
make: *** [all] Error 2
我陷入了这一步。知道如何解决这个错误吗?