为Raspberry Pi交叉编译GTK

时间:2014-09-25 13:06:53

标签: c linux cross-platform raspberry-pi raspbian

我正在尝试完成本教程here。我正在运行Ubuntu 32bit,我正在尝试与Raspbian交叉编译Raspberry Pi。

当我运行make时,我得到了他的错误:

/home/alby/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc /arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: warning: libgraphite2.so.2.0.0, needed by /home/alby/rpi/usr/lib/arm-linux-gnueabihf/libharfbuzz.so.0, not found (try using -rpath or -rpath-link)
/home/alby/rpi/usr/lib/arm-linux-gnueabihf/libharfbuzz.so.0: undefined reference to `gr_seg_advance_X'
/home/alby/rpi/usr/lib/arm-linux-gnueabihf/libharfbuzz.so.0: undefined reference to `gr_slot_can_insert_before'
etc.. 

libharfbuzz.so.0位于正确的位置。我检查了依赖性

readelf -d libharfbuzz.so.0 | grep NEEDED

这是输出:

 0x00000001 (NEEDED)                     Shared library: [libgobject-2.0.so.0]
 0x00000001 (NEEDED)                     Shared library: [libglib-2.0.so.0]
 0x00000001 (NEEDED)                     Shared library: [libfreetype.so.6]
 0x00000001 (NEEDED)                     Shared library: [libgraphite2.so.2.0.0]
 0x00000001 (NEEDED)                     Shared library: [libgcc_s.so.1]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
 0x00000001 (NEEDED)                     Shared library: [ld-linux-armhf.so.3]

这是我第一次尝试交叉编译,也许我错过了一些非常明显的东西,但我找不到它是什么。 谢谢Alb

0 个答案:

没有答案