Build VIM&GVIM Executables on Windows

Prerequisites

Here, we build them in 64-bit by msvc compiler in command prompt.

  • visual studio 2015 community with update 3 (vs20015, aka vc++ 14.0)
  • git clone latest vim source code to local directory from official repository https://github.com/vim/vim

where, my installed vs2015 contains such components as Visual Studio Extensibility Tools Update 3 (including SDKs), Visual C++(Common Tools that includes c++ compilers and linkers, windows XP support for C++ that includes Win 7.1 SDK as a must) , Tools(1.4.1) and Windows 10 SDK(10.0.14393)

Extra libs

To build vim with support for below libraries,
+ Python2 (2.7) and Python3 (3.6) as a MUST including .exe and .dll as core files
+ Lua5 (5.3.4) including .exe and .dll (optical)
+ Tcl8&Tk8 (8.6.6) including *.exe and *dll (optical)
+ Perl (temporarily ignore) (optical)
+ Ruby (temporarily ignore) (optical)

If you intend to compile Lua and Tcl&Tk yourself, you can refer to my related blogs.

Building

After vs setup successfully,

cd into "VS_HOME_DIR"\VC , where it is supposed as "D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC";
execute "vcvarsall.bat amd64" to set environment for related vs tools like nmake.exe and cl.exe;
發佈了20 篇原創文章 · 獲贊 1 · 訪問量 5371
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章