报错处理集

这个报错处理集的错误来源于编译arm平台的so文件产生的。但是后续可以补充成linux一个大的错误处理集。


前言

第一次整理的时间是2023年12月8日10:05:59,以下错误来源于欧拉系统编译arm平台so文件。


一、编译arm平台so文件

以下有7个报错

1.1报错1

autoreconf: command not found

安装autoconf全家桶

在线安装:https://www.cnblogs.com/ltaodream/p/16089665.html

离线安装: 

linux服务器离线安装autoconf_autoconf 安装_+我一个的博客-CSDN博客

1.2报错2

报错:configure: error: cannot guess build type; you must specify one

arm机器

configure: error: cannot guess build type; you must specify one 解决办法_test7788990的博客-CSDN博客

1.3报错2

arm机器出现

freadahead.c:83:3: error: #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib."
  #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib."

解决编译中遇到的问题:Please port gnulib freadahead.c to your platform_白马负金羁的博客-CSDN博客

1.4报错4

安装gdal遇到

../../lib/libopencv_world.so.4.5.3: undefined reference to `png_do_expand_palette_rgb8_neon‘___万波__的博客-CSDN博客

1.5报错5

../libtool: line 1301: func_opt_split: command not found
libtool: Version mismatch error.  This is libtool 2.2.6b, but the
libtool: definition of this LT_INIT comes from libtool 2.4.6.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b
libtool: and run autoconf again.
make[2]: *** [Makefile:1917: strtod.lo] Error 63
make[2]: *** Waiting for unfinished jobs....
../libtool: line 1301: func_opt_split: command not found
../libtool: line 1301: func_opt_split: command not found

Centos安装Thrift c++踩坑记录_Zed222的博客-CSDN博客

1.6报错6

/usr/bin/ld: skipping incompatible ../../../3rd/gdal/lib/linux/libtiff.a when searching for -ltiff
/usr/bin/ld: skipping incompatible ../../../platform/HuaweiSecureC/lib/linux//libsecurec.a when searching for -lsecurec
/usr/bin/ld: cannot find -lstdc++

这个问题就是上述三个libxxx有问题。从时候往前推可以看到:上面的两个是因为格式不对,用下属指令就可以查出来。第三个就是1.7报错处理方法啦。

其中的这个指令查文件格式的很香

objdump -p (filename)

/usr/bin/ld: skipping incompatible解决方案-CSDN博客

1.7报错7

/usr/bin/ld: cannot find -lstdc++
collect2: error: ld returned 1 exit status
make: *** [Makefile:43: all] Error 1

解决办法,使用static方法编译,需要安装static version of glibc-static libstdc++-static

make编译显示can not find lstdc++解决方案-CSDN博客

未完待续


总结

完成了arm平台的编译,从3rd里面的第三方开源的库开始编,遇到不少问题,逐个解决,最后确实完成了。其实从后往前看没有啥,但是当时从前往后看,真是一望无际啊!

相关推荐

  1. Mysql处理

    2023-12-08 13:02:03       41 阅读
  2. flask处理

    2023-12-08 13:02:03       17 阅读
  3. es7.13.2群安装失败处理

    2023-12-08 13:02:03       34 阅读
  4. Linux系统

    2023-12-08 13:02:03       37 阅读
  5. k8s处理

    2023-12-08 13:02:03       37 阅读

最近更新

  1. TCP协议是安全的吗?

    2023-12-08 13:02:03       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2023-12-08 13:02:03       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2023-12-08 13:02:03       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2023-12-08 13:02:03       20 阅读

热门阅读

  1. 【短文】用ssh连接服务器时,怎么指定账户名

    2023-12-08 13:02:03       35 阅读
  2. python学习:opencv学习和numpy学习(持续更新)

    2023-12-08 13:02:03       33 阅读
  3. 蓝桥杯从零开始备战(Python组)---基础知识篇

    2023-12-08 13:02:03       26 阅读
  4. composer配置国内镜像

    2023-12-08 13:02:03       43 阅读
  5. MAC PHP版本安装问题

    2023-12-08 13:02:03       36 阅读
  6. 华为云安全组规则

    2023-12-08 13:02:03       38 阅读
  7. PHP 反序列化字符串逃逸

    2023-12-08 13:02:03       30 阅读
  8. git merge和git rebase

    2023-12-08 13:02:03       23 阅读
  9. react经验6:使用SVG图片

    2023-12-08 13:02:03       35 阅读
  10. uni-app解决video组件全屏时页面横竖错乱问题

    2023-12-08 13:02:03       61 阅读
  11. 头歌—Hive的安装与配置

    2023-12-08 13:02:03       41 阅读