minicom RK3399交叉编译aarch64
一、源码下载
-
minicom-2.8.tar
https://salsa.debian.org/minicom-team/minicom/-/archive/2.8/minicom-2.8.tar -
ncurses-5.7.tar.gz
https://ftp.gnu.org/gnu/ncurses/ncurses-5.7.tar.gz -
gettext-0.19.tar.gz
(可选,如有AM_GNU_GETTEXT或AM_ICONV未定义未找到需下载此项)
https://mirrors.sjtug.sjtu.edu.cn/gnu/gettext/gettext-0.19.tar.gz
二、ncurses交叉编译
tar -xvf ncurses-5.7.tar.gz
cd ncurses-5.7
./configure CC=aarch64-linux-gcc --host=arm-linux --prefix=/home/ubuntu/ncurses CPPFLAGS=-I/opt/rk3399/include LDFLAGS=-L/opt/rk3399/lib
make
make install
三、minicom交叉编译
tar -xvf minicom-2.8.tar
cd minicom-2.8
# 安装或修改autogen.sh对应版本
# AUTOMAKEVER=1.15
./autogen.sh
./configure CC=aarch64-linux-gcc --prefix=/home/ubuntu/minicom/ --host=arm-linux --enable-cfg-dir="/opt/mycfg" CPPFLAGS="-I/home/ubuntu/ncurses/include -I/opt/rk3399/include" LDFLAGS="-L/home/ubuntu/ncurses/lib -L/opt/rk3399/lib"
make
make install
四、注意
- AM_GNU_GETTEXT或AM_ICONV未定义或未找到需下载此项
tar -xvf gettext-0.19.tar.gz
cd gettext-0.19
./configure
make
make install
- 运行报错No termcap entry for xterm/vt100/vt2000等
将终端信息从其他系统拷贝或设置为已有的
export TERMINFO=/usr/share/terminfo
export TERM=vt100
五、总结
先编译ncurses,再编译minicom,中途按报错来安装gettext,运行时设置终端。