问题描述
我试图建立在windows的vim /从源头code gvim的几天。而且,大楼实际上是由两种方法 CygWin的
和 WinGW
的作品。
I've tried to build vim/gvim from source code in windows for several days. And, the building actually works by both ways CygWin
and WinGW
.
然而,蟒蛇
在我的(克)不是添加的vim.exe(禁用它 pyflakes.vim
)
However, python
wasn't "added" in my (g)vim.exe (it disabled pyflakes.vim
):
:echo has('python')
0
下面是我的命令:
Here is my commands:
make -f Make_cyg.mak PYTHON=/cygdrive/c/Marslo/MyProgram/Python27 DYNAMIC_PTYHON=yes PYTHON_VER=27 PYTHON3=/cygdrive/c/Marslo/MyProgram/Python33 DYNAMIC_PYTHON3=yes PYTHON3_VER=33 FEATURES=huge IME=yes CPUNR=i686 ARCH=i686 GUI=yes USERNAME=Marslo.Jiao USERDOMAIN=CHINA
WinGW:
$ make -f Make_ming.mak PYTHON=C:\Marslo\MyProgram\Python27 DYNAMIC_PYTHON=yes PYTHON_VER=27 PYTHON3=C:\Marslo\MyProgram\Python33 DYNAMIC_PYTHON=yes PYTHON3_VER=33 FEATURES=HUGE GUI=yes IME=yes USERNAME=Marslo.Jiao USERDOMAIN=CHINA
我已经检查了的gvim.exe --version
, +蟒蛇/ DYN
不仅可以找到, +蟒蛇
缺少
下面是的gvim.exe --version
:
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Mar 13 2014 12:07:56)
MS-Windows 32-bit GUI version
Included patches: 1-193
Compiled by Marslo.Jiao@CHINA
Big version with GUI. Features included (+) or not (-):
+acl +ex_extra +multi_byte_ime/dyn +tag_old_static
+arabic +extra_search +multi_lang -tag_any_white
+autocmd +farsi -mzscheme -tcl
+balloon_eval +file_in_path +netbeans_intg -tgetent
+browse +find_in_path -ole -termresponse
++builtin_terms +float +path_extra +textobjects
+byte_offset +folding -perl +title
+cindent -footer +persistent_undo +toolbar
+clientserver +gettext/dyn -postscript +user_commands
+clipboard -hangul_input +printer +vertsplit
+cmdline_compl +iconv/dyn -profile +virtualedit
+cmdline_hist +insert_expand +python/dyn +visual
+cmdline_info +jumplist +python3/dyn +visualextra
+comments +keymap +quickfix +viminfo
+conceal +langmap +reltime +vreplace
+cryptv +libcall +rightleft +wildignore
+cscope +linebreak -ruby +wildmenu
+cursorbind +lispindent +scrollbind +windows
+cursorshape +listcmds +signs +writebackup
+dialog_con_gui +localmap +smartindent -xfontset
+diff -lua -sniff -xim
+digraphs +menu +startuptime -xterm_save
-dnd +mksession +statusline -xpm_w32
-ebcdic +modify_fname -sun_workshop
+emacs_tags +mouse +syntax
+eval +mouseshape +tag_binary
system vimrc file: "$VIM\vimrc"
user vimrc file: "$HOME\_vimrc"
2nd user vimrc file: "$HOME\vimfiles\vimrc"
3rd user vimrc file: "$VIM\_vimrc"
user exrc file: "$HOME\_exrc"
2nd user exrc file: "$VIM\_exrc"
system gvimrc file: "$VIM\gvimrc"
user gvimrc file: "$HOME\_gvimrc"
2nd user gvimrc file: "$HOME\vimfiles\gvimrc"
3rd user gvimrc file: "$VIM\_gvimrc"
system menu file: "$VIMRUNTIME\menu.vim"
Compilation: i686-pc-mingw32-gcc -O3 -fomit-frame-pointer -freg-struct-return -fno-strength-reduce -DWIN32
-DHAVE_PATHDEF -DFEAT_huge -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -DFEAT_PYTHON
-DDYNAMIC_PYTHON -DDYNAMIC_PYTHON_DLL="python27.dll" -DFEAT_PYTHON3 -DDYNAMIC_PYTHON3
-DDYNAMIC_PYTHON3_DLL="python33.dll" -DDYNAMIC_GETTEXT -DDYNAMIC_ICONV -DFEAT_MBYTE
-DFEAT_MBYTE_IME -DDYNAMIC_IME -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -DFEAT_GUI_W32
-DFEAT_CLIPBOARD -march=i686 -Iproto -s
Linking: i686-pc-mingw32-gcc -s -o gvim.exe -luuid -lole32 -lwsock32 -mwindows -lcomctl32 -lversion
我应该怎么办?
推荐答案
@FvD,终于,我找到了原因。
@FvD, finally, I found the reason.
Cygwin的或WinGW的命令都没事。这个问题来自于Python的(奇怪,Uhun?)!
The command of Cygwin or WinGW are all right. The problem come from Python(surprising, Uhun?)!!
Python2x或Python3x都应该安装为 32位版本
Python2x or Python3x are all should be installed as 32-bit version .
由于我的电脑系统是64位的,所以我下载python2 / 3的x86_64,导致VIM无法加载蟒蛇LIB动态地。
Because my computer system is 64bit, so I download python2/3 as x86_64, that caused vim cannot load python lib dynamicly.
我不知道到底什么是错的Python版本。我想这是因为我的gvim的/ Vim的都是32位的。
I don't know exactly what's wrong with the python version. I assume it's because my Gvim/Vim are all 32bit.
这篇关于我如何添加" -with-蟒蛇"从源头code在Windows建设的gvim / vim的选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!