【问题标题】:Buildroot cross compileBuildroot 交叉编译
【发布时间】:2013-03-16 11:04:24
【问题描述】:

使用以下命令进行交叉编译时遇到问题:

$ buildroot-2013.02/output/host/usr/bin/arm-linux-gcc                   \
  -o laa exemple.c                                                      \
   $(/home/adel/Bureau/buildroot-2013.02/output/host/usr/bin/pkg-config \
      --libs --cflags gtk+-2.0)

使用以下控制台输出:

sysroot/usr/lib/libglib-2.0.so: warning: the use of OBSOLESCENT `utime' is \
 discouraged, use `utimes'
sysroot/usr/lib/libX11.so.6: warning: gethostbyname is obsolescent,        \
 use getnameinfo() instead.

它似乎编译得很好。当我执行输出文件时,警告是否会导致问题,没有显示,那么问题是什么,我该如何纠正?

【问题讨论】:

    标签: cross-compiling buildroot


    【解决方案1】:

    不,警告是无害的。他们只是告诉您 libglib 和 libX11 使用标记为已弃用的 C 库函数。但是由于 C 库不能破坏二进制兼容性,这些函数仍然存在,并且在执行方面一切正常。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-10-19
      • 1970-01-01
      • 1970-01-01
      • 2013-09-13
      • 1970-01-01
      • 1970-01-01
      • 2016-01-25
      • 2011-03-13
      相关资源
      最近更新 更多