交叉编译openharmony版本的vim (aarch64)
#下载ncurses
wget https://invisible-mirror.net/archives/ncurses/current/ncurses-6.5-20250809.tgz
tar xvzf ncurses-6.5-20250809.tgz
#下载vim
wget https://github.com/vim/vim/archive/v9.1.1629/vim-9.1.1629.tar.gz
tar xvzf vim-9.1.1629.tar.gz
#创建安装路径
mkdir -p /system/
sudo chmod -R 777 /system/
#编译ncurses
./configure --prefix=/system/ --host=aarch64-none-linux-gnu --without-cxx --without-cxx-binding --without-ada --without-manpages --without-progs --without-tests --with-shared
make && make install
#编译vim
./configure --prefix=/system/ --host=aarch64-none-linux-gnu --with-features=huge --disable-gui --without-x --without-wayland --disable-selinux --disable-acl --disable-gpm --with-tlib=ncursesw vim_cv_getcwd_broken=no vim_cv_memmove_handles_overlap=yes vim_cv_stat_ignores_slash=yes vim_cv_tgetent=zero vim_cv_terminfo=yes vim_cv_toupper_broken=no vim_cv_tty_group=root vim_cv_tty_mode=0620 CPPFLAGS=-I/system/include/ncursesw LDFLAGS=-L/system/lib
make
make install
浙公网安备 33010602011771号