how to install vim for android?
RT,Iwanttoinstallvimforandroid,butthereisabigproblem!--------------------------------...
RT,I want to install vim for android,but there is a big problem !
----------------------------------------------------------------
cd vim73
configure --with-features=tiny --disable-gui --without-x --disable-selinux --disable-acl --disable-gpm
make CC=arm-none-linux-gnueabi-gcc LDFLAGS=-static
---------------------------------------------------------------
here is the export:
arm-none-linux-gnueabi-gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -D_FORTIFY_SOURCE=1 -o objects/buffer.o buffer.c
In file included from vim.h:302,
from buffer.c:28:
auto/osdef.h:35: error: conflicting types for 'fread'
/opt/arm-2008q3/bin/../arm-none-linux-gnueabi/libc/usr/include/bits/stdio2.h:276: error: previous
...
auto/osdef.h:153: error: conflicting types for 'realloc'
auto/osdef.h:154: error: conflicting types for 'getenv'
/opt/arm-2008q3/bin/../arm-none-linux-gnueabi/libc/usr/include/stdlib.h:545: error: previous declaration of 'getenv' was here
auto/osdef.h:155: error: conflicting types for 'setenv'
/opt/arm-2008q3/bin/../arm-none-linux-gnueabi/libc/usr/include/stdlib.h:563: error: previous declaration of 'setenv' was here
auto/osdef.h:156: error: conflicting types for 'putenv'
...
make[1]: *** [objects/buffer.o] Error 1
make[1]: Leaving directory `/root/vim73/src'
make: *** [first] Error 2
-----------------------------------
I have download arm-none-linux-gnueabi-gcc,then put it to ./opt
Why can't configure successfully?
P.S. .I am a Chinese,but there is no pin-yin,so I could write in English
我就是按照那个网站弄的,是编译器没下载好还是其他问题? 展开
----------------------------------------------------------------
cd vim73
configure --with-features=tiny --disable-gui --without-x --disable-selinux --disable-acl --disable-gpm
make CC=arm-none-linux-gnueabi-gcc LDFLAGS=-static
---------------------------------------------------------------
here is the export:
arm-none-linux-gnueabi-gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -D_FORTIFY_SOURCE=1 -o objects/buffer.o buffer.c
In file included from vim.h:302,
from buffer.c:28:
auto/osdef.h:35: error: conflicting types for 'fread'
/opt/arm-2008q3/bin/../arm-none-linux-gnueabi/libc/usr/include/bits/stdio2.h:276: error: previous
...
auto/osdef.h:153: error: conflicting types for 'realloc'
auto/osdef.h:154: error: conflicting types for 'getenv'
/opt/arm-2008q3/bin/../arm-none-linux-gnueabi/libc/usr/include/stdlib.h:545: error: previous declaration of 'getenv' was here
auto/osdef.h:155: error: conflicting types for 'setenv'
/opt/arm-2008q3/bin/../arm-none-linux-gnueabi/libc/usr/include/stdlib.h:563: error: previous declaration of 'setenv' was here
auto/osdef.h:156: error: conflicting types for 'putenv'
...
make[1]: *** [objects/buffer.o] Error 1
make[1]: Leaving directory `/root/vim73/src'
make: *** [first] Error 2
-----------------------------------
I have download arm-none-linux-gnueabi-gcc,then put it to ./opt
Why can't configure successfully?
P.S. .I am a Chinese,but there is no pin-yin,so I could write in English
我就是按照那个网站弄的,是编译器没下载好还是其他问题? 展开
2个回答
展开全部
明白, 安卓 有一个 vimtouch 版本。 可以直接安装。
参考这个:http://blog.chinaunix.net/uid-27775990-id-3413826.html
参考这个:http://blog.chinaunix.net/uid-27775990-id-3413826.html
更多追问追答
追问
我想自己编译vim。。
追答
先 make distclean
这种错误是头文件函数原形的声明和实际传递的参数类型不一致导致的。
可能是你 arm 编译器的库的版本和 vim 要求的不匹配。
也就是 vim的 c文件所需要使用的stdlib和 你编译器提供的stdlib 不兼容。
换一个编译器。 armcc 或者armcpp ,试试。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询