Vim cross compilation for ARM

I am using arm-linux-gnueabi and trying to compile vim for my device. After some time searching and studying, I succeeded, but when I started it from the device, I saw this:

# /usr/tmp/vim/bin/vim
~
...
~
~VIM - Vi IMprovedversion 7.4.873by Bram Moolenaar et al.Vim is open source and freely distributableSponsor Vim development!type  :help sponsor<Enter>    for informationtype  :q<Enter>to exittype  :help<Enter>  or  <F1>  for on-line helptype  :help version7<Enter>   for version infoRunning in Vi compatible modetype  :set nocp<Enter>for Vim defaultstype  :help cp-default<Enter> for info on this

the cursor does not move in any direction, and the text that I print is displayed in the last one line. Vim commands work fine.

If this is important, at compile time I compiled the ncurses library and targeted it to the flags:

export LD_LIBRARY_PATH="<my_path>/lib/"
export CPPFLAGS="-L<my_path>/ncurses"
export LDFLAGS="-L<my_path>/lib"

but without --with-tlib=ncursesI had an error:

checking for tgetent in -lncurses... yes
ncurses library is not usable

I used the installation guide to cross-compile vim sources, as I set some variables:

export vim_cv_terminfo=yes
export vim_cv_tty_group=world
export vim_cv_getcwd_broken=no
export vim_cv_stat_ignores_slash=yes
export vim_cv_memmove_handles_overlap=yes
export vim_cv_bcopy_handles_overlap=yes
export vim_cv_memcpy_handles_overlap=yes
export vim_cv_tgetent=non-zero

I'm not sure about them ...

, . ncurses...

, , ? - ?

+4
1

.

, vim terminfo (ncurses lib ) .

, (vt100 xterm), . terminfo, strace:

strace vim
...
stat64("/root/.terminfo", 0xc7a4c8)     = -1 ENOENT (No such file or directory)
stat64("/opt/share/terminfo", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
...
0

Source: https://habr.com/ru/post/1608666/


All Articles