LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2389|回复: 2

DirectFB+GTK交叉编译环境的建立遇到困难,请指教

[复制链接]
发表于 2007-11-14 14:49:18 | 显示全部楼层 |阅读模式
我按照以下顺序交叉编译开发包
glib-2.12.13-->atk-1.19.3-->zlib-1.2.3-->jpegsrc.v6b-->libpng-1.2.19-->expat-2.0.1
-->freetype-2.3.5-->libxml2-2.6.29-->fontconfig-2.4.2-->tiff-3.7.4-->DirectFB-1.1.0
-->cairo-1.4.10-->pango-1.16.4-->gtk+-2.10.14
一直编译到pango-1.16.4都是成功的,编译gtk+-2.10.14出错。
运行如下命令:
./configure --host=arm-linux \
--prefix=/mnt/usr \
--with-gdktarget=directfb \
--without-libtiff \
--without-libjpeg \
--without-libpng \
--disable-glibtest \
--disable-modules \
--disable-largefile \
--without-x \
--enable-debug=no \
--disable-xkb \
--with-xinput=no
报错如下:
*** Can't link to Pango. Pango is required to build
*** GTK+. For more information see http://www.pango.org
config.log报错内容如下:
。。。。。。
/usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/bin/ld: warning: libpng12.so.0, needed by /opt/usr/lib/libcairo.so, not found (try using -rpath or -rpath-link)
/opt/usr/lib/libcairo.so: undefined reference to `png_get_IHDR@PNG12_0'
/opt/usr/lib/libcairo.so: undefined reference to `png_destroy_write_struct@PNG1
。。。。。。
我运行pkg-config --list-all,可以找到pango的,这是那里出问题了呢?
发表于 2007-12-9 14:15:12 | 显示全部楼层
编译环境设置的问题.

你可参考http://www.linuxsir.cn/bbs/thread306101.html这位老兄写的编译脚本,configure前设置一下LDFLAGS等这些环境变量.

我参考他的脚本已经完整编译了arm下的gtk+2.12.2/DirectFB-1.1.0/glib-2.14.4以及其他相关的库(jpeg.png,zlib,fontconfig,freetype等等这些)
回复 支持 反对

使用道具 举报

发表于 2008-1-11 16:01:09 | 显示全部楼层
能贴出你的详细编译和配置过程吗?非常感谢!!!!!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表