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

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.
出現以上問題到原因主要是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