Minicom cross compilation

1. Download the source code

minicom-2.8.tar.bz2
ncurses-6.0.tar.gz
vt100 [required for minicom to run]

minicom three in one.zip

2. Cross Compilation

1. Compile ncurses-6.0.tar.gz first

./configure CC=arm-soft-linux-gnueabi-gcc  --host=arm-linux  --prefix=$PWD/output CPPFLAGS=-I/usr/local/arm-soft-linux-gnueabi-AST2600/include LDFLAGS=-L/usr/local/arm-soft-linux-gnueabi-AST2600/lib --without-progs

2. Recompile minicom-2.8.tar.bz2

./configure CC=arm-soft-linux-gnueabi-gcc --prefix=$PWD/output --host=arm --enable-cfg-dir="/tmp"  CPPFLAGS="-I/root/shell/ncurses-6.0/output/include" LDFLAGS="-L/root/shell/ncurses-6.0/output/lib"

CPPFLAGS and LDFLAGS are the header files and library directories of ncurses just compiled.
enable-cfg-dir is the specified path where minicom runtime configuration is saved

3. Transplantation and installation

Run on the development board:

export TERMINFO=/tmp
export TERM=vt100

Copy the program minicom and configuration vt100 to the development board /tmp/v directory. (this directory depends on TERMINFO=/tmp)

Finally run: ./minicom

Guess you like

Origin blog.csdn.net/qq_38202733/article/details/126894737