交叉编译libIDL库

来源:互联网 发布:ubuntu ibus 设置 编辑:程序博客网 时间:2024/06/07 16:57

哈哈,欢迎访问,希望可以帮到你,。。祝您的母亲快乐健康。


安装libIDL库出现错误如下:


checking for format to printf and scanf aguint64... configure: error: cannot run test program while cross compiling



解决方法:


CONFIGURE中有很多的测试程序是不可以在HOST上运行的就会出现: error cannot run test program while crosscompiling 
类似的错误,可以使用CACHEFILE解决这个问题 


 第一步:记录下错误的地方如:checking for format to printf and scanf a guint64 
 在configure中查找这句话在哪里出现。可以看到类似这样的结构
 

{ $as_echo "$as_me:$LINENO: checkingfor format to printf and scanf a guint64" >&5

$as_echo_n "checking for format toprintf and scanf a guint64... " >&6; }

if test"${libIDL_cv_long_long_format+set}" = set; then

 $as_echo_n "(cached) " >&6

else
   其中libIDL_cv_long_long_format是我们要查找的变量
 
  使用echo libIDL_cv_long_long_format=yes>arm-linux.cache
 
  然后 
  ./configure 时再加上 --cache-file=arm-linux.cache

该问题解决。