安装glib-2.16.2,需要安装gettext出错

按网上的方法,海思的工具链,老编译不过去,然后看了Makefile, 就在配置加上可以编译c++的交叉链。如:加上 CXX=arm-hisiv300-linux-g++


过程如下:

交叉编译 glib-2.16.2:
gye@ubuntu:~/tools/bt/bttool$ tar xvf glib-2.16.2.tar.gz

./configure -prefix=/opt/bluez-4.95 -host=arm-linux CC=arm-hisiv300-linux-gcc glib_cv_stack_grows=no glib_cv_uscore=yes glib_cv_have_qsort_r=yes ac_cv_func_posix_getpwuid_r=yes ac_cv_func_posix_getgrgid_r=yes

出错:
checking libintl.h presence... no
checking for libintl.h... no
configure: error:
*** You must have either have gettext support in your C library, or use the
*** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html


下载gettext-0.19.tar.gz

 gye@ubuntu:~/tools/bt/bttool/gettext-0.19$ ./configure --prefix=/opt/bluez-4.95 --host=arm-linux CC=arm-hisiv300-linux-gcc CXX=arm-hisiv300-linux-g++

 gye@ubuntu:~/tools/bt/bttool/gettext-0.19$ make

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值