glib2.32.4交叉编译

http://blog.chinaunix.net/uid-26824563-id-3415885.html

 

1、设置配置的变量

#echo ac_cv_type_long_long=yes>arm-linux.cache

#echo glib_cv_stack_grows=no>>arm-linux.cache

# echo glib_cv_uscore=no>>arm-linux.cache

# echo ac_cv_func_posix_getpwuid_r=yes>>arm-linux.cache

# echo ac_cv_func_posix_getgrgid_r=yes>>arm-linux.cache(选择性加上此句)

这些参数说明:http://gtk-doc-cn.googlecode.com/svn/docs/glib/glib-cross-compiling.html


2、配置configure:

# CC=所要用到的交叉编译器 ./configure --host=arm-linux --prefix=$ROOTFS_DIR/usr --cache-file=$ARCH-linux.cache


3、make && make install

# make && make install


找不到glib-compile-schemas错误:

1. 在configure的时候, 会出现找不到glib-compile-schemas错误, 
 解决办法很简单, 就是先用host编译glib-2.28.8, 也就是直接:
 ./configure --prefix=<your glib2 install path>; make; make install
 编译好以后, 设置环境变量PATH=<your glib2 install path>/bin:$PATH即可, 就可以找到glib-compile-schemas了。

http://blog.csdn.net/myaccella/article/details/7298014

很多错误原因分析:

http://wenku.baidu.com/view/c9e7cbd6360cba1aa811da9f.html

configure: error: cannot run test program while cross compiling:
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值