交叉编译GDB之后,执行报错:
error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
提示需要库ncurses :
所以需要下载该库的源码并下载交叉编译,然后安装到目标板卡:
库源码下载:
http://invisible-island.net/ncurses/ncurses.html 下载:The ncurses source (gzip'd tar)
交叉编译
修改配置文件:./configure cross_compiling=yes
配置如下:
./configure --prefix=/home/XX/Software/NcuresInstall --host=
i686-pc-linux-gnu
--with-shared
CC=
/opt/XXX
-gcc
编译:make
然后:make install 就会生成/home/XX/Software/NcuresInstall/lib/libncurses.so.6.1
手动或者自动安装到目标板卡即可