问题
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
.
However, python
wasn't "added" in my (g)vim.exe (it disabled pyflakes.vim
):
:echo has('python')
0
Here is my commands:
Cygwin:
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
I've checked the gvim.exe --version
, +python/dyn
can only be found, +python
is missing.
Here is the 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
What should I do?
回答1:
@FvD, finally, I found the reason.
The command of Cygwin or WinGW are all right. The problem come from Python(surprising, Uhun?)!!
Python2x or Python3x are all should be installed as 32-bit version .
Because my computer system is 64bit, so I download python2/3 as x86_64, that caused vim cannot load python lib dynamicly.
I don't know exactly what's wrong with the python version. I assume it's because my Gvim/Vim are all 32bit.
来源:https://stackoverflow.com/questions/22349930/how-can-i-add-with-python-options-by-building-gvim-vim-from-source-code-in-wi