ARM板移植minicom工具:虚拟机中交叉编译minicom源码

参考如下两篇博客:

minicom的移植_Webster_WXH的博客-CSDN博客_minicom 移植

Linux开发板移植minicom_安迪西的博客-CSDN博客_minicom 移植

关键点是:ncurses的安装路径一定要指定为交叉编译链的目录,可避免发生在编译minicom时的诸多编译错误和链接错误。

下面是源码和我的配置命令:

minicom依赖ncurses,故先配置编译并安装它,后面才是minicom。

 链接:https://pan.baidu.com/s/1g5kyK_NlNYyFfSUfwJo1aw?pwd=1234 
提取码:1234

链接:https://pan.baidu.com/s/1PCQfk017kdzGnikfhJbhgA?pwd=1234 
提取码:1234

./configure --prefix=/usr/local/arm/gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf --host=arm-none-linux-gnueabihf  --with-shared --without-profile --disable-stripping --without-progs --with-manpages --without-tests
make 
make install
./configure CC=arm-none-linux-gnueabihf-gcc --prefix=/home/wang/minicom-2.8/output --host=arm-none-linux-gnueabihf CPPFLAGS=-I/usr/local/arm/gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/include CPPFLAGS=-I/usr/local/arm/gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/include/ncurses LDFLAGS=-L/usr/local/arm/gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/lib -enable-cfg-dir=/etc/minicom 
make
make install

你可能感兴趣的:(驱动和内核,STM32MP157驱动调试,linux,arm,嵌入式硬件)