sudo apt-get install libstdc++6

sudo apt-get install libstdc++6

yum install  libncurses.so.5

sudo apt-get install libncurses.so.5

 

 

sudo apt-get install lib32ncurses5

 

 apt-get update把源更新一下

使用gdb时的指令

(gbd) info line *0x08xxxx

sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0

libncurses.so.5安装方法
在命令行中输入:
sudo apt-get install libncurses5-dev
make menuconfig
Ncurses是一个能提供功能键定义(快捷键),屏幕绘制以及基于文本终端的图形互动功能的动态库。
这就不难解释为何执行make menuconfig命令需要ncurses了。
Ncurses是一个能提供基于文本终端窗口功能的动态库. Ncurses可以:
只要您喜欢,您可以使用整个屏幕
创建和管理一个窗口
使用8种不同的彩色
为您的程序提供鼠标支持
使用键盘上的功能键
Ncurses可以在任何遵循ANSI/POSIX标准的UNIX系统上运行,除此之外,它还可以从系统数据库中检测终端的属性, 并且自动进行调整,提供一个不受终端约束的接口.因此,Ncurses可以在不同的系统平台和不同的终端上工作的非常好。

 make: *** Waiting for unfinished jobs....
/home/endv/Downloads/android-ndk-r16b-linux-x86_64/android-ndk-r16b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
make: *** [obj/local/x86_64/objs/proto/__/src/Proto/pull_group_info_result.o] Error 127

sudo apt-get install libstdc++6

1 [sudo] password for endv: 
2 Reading package lists... Done
3 Building dependency tree       
4 Reading state information... Done
5 libstdc++6 is already the newest version (9.1.0-2ubuntu2~19.04).
6 libstdc++6 set to manually installed.
7 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

View Code

出现以上问题到原因主要是Ubuntu用到是X64位,系统中缺少X32的链接库,所以ANDROID编译会报错,解决方案如下:

Q1: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

Solution:
# sudo apt-get install libstdc++6

Q2: error while loading shared libraries:libncurses.so.5:cannot oopen shared object file:No such file or directory

Solution:
# sudo apt-get install libncurses5:i386

Android SDK having trouble with ADB
http://askubuntu.com/questions/143774/android-sdk-having-trouble-with-adb

原文链接: https://www.cnblogs.com/endv/p/11180299.html

欢迎关注

微信关注下方公众号,第一时间获取干货硬货;公众号内回复【pdf】免费获取数百本计算机经典书籍

    sudo apt-get install libstdc++6

原创文章受到原创版权保护。转载请注明出处:https://www.ccppcoding.com/archives/298811

非原创文章文中已经注明原地址,如有侵权,联系删除

关注公众号【高性能架构探索】,第一时间获取最新文章

转载文章受原作者版权保护。转载请注明原作者出处!

(0)
上一篇 2023年2月15日 下午8:08
下一篇 2023年2月15日 下午8:08

相关推荐