交叉编译htop
工作需要,开始折腾海思芯片,从头开始,折腾。
busybox里面的top是在太丑了,看不懂,都知道htop是个界面非常友好的系统监控程序,所以决定移植。网上有很多相关内容,比如https://www.cnblogs.com/txsf/p/3713991.html,但是我按照内容操作,始终再htop的configure的时候提示我缺少libcurses,但是我确实已经编译过了,而且还验证了可执行程序再开发板上面的执行效果,所以不会有问题的。
终端显示的内容如下:
checking if compiler supports -Wextra... yes
checking for refresh in -lncurses... no
checking for refresh in -lncurses6... no
checking for refresh in -lncurses... (cached) no
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
checking for python... python
configure: error: missing libraries: libncurses
最后只好看config.log文件了,发现里面有个奇怪的问题,提示缺少libtinfo库,和libcurses
tinfo -L/home/hero/project/ncurses-6.1/install/lib conftest.c -lncurses -lm >&5
/opt/hisi-linux/x86-arm/aarch64-himix200-linux/host_bin/../lib/gcc/aarch64-linux-gnu/7.3.0/../../../../aarch64-linux-gnu/bin/ld: cannot find -ltinfo
collect2:

本文记录了作者在海思芯片上交叉编译htop的过程,解决了配置时缺少libncurses和libtinfo的问题,并最终通过设置正确的终端类型解决了运行时的错误。
最低0.47元/天 解锁文章
720

被折叠的 条评论
为什么被折叠?



