如何通过在Windows中从源代码构建gvim/vim来添加“withpython”选项

2024-06-28 09:42:44 发布

您现在位置:Python中文网/ 问答频道 /正文

几天来,我一直试图从windows的源代码构建vim/gvim。而且,这座建筑实际上是通过CygWin和{}两种方式工作的。在

但是,python在my(g)中没有“添加”维姆.exe(它禁用pyflakes.vim):

:echo has('python')
0

以下是我的命令:

小天鹅:

^{pr2}$

温氏:

$ 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+python/dyn只能找到+python缺失。在

以下是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

我该怎么办?在


Tags: homeguivimexevimrcpython3yesfile
1条回答
网友
1楼 · 发布于 2024-06-28 09:42:44

@FvD,我终于找到了原因。在

Cygwin或WinGW的命令都可以。问题来自Python(令人惊讶,Uhun?)!!在

Python2x或Python3x都应安装为32位版本。在

因为我的计算机系统是64位的,所以我将python2/3下载为x86_64,这导致vim无法动态加载python库。在

我不知道python版本到底出了什么问题。我想是因为我的Gvim/Vim都是32位的。在

相关问题 更多 >