Mercurial > vim
annotate src/INSTALLpc.txt @ 13711:207728513b1c
Added tag v8.0.1727 for changeset b33f048734750cad789bc35c011e3a95b94bf54e
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 16 Apr 2018 18:15:06 +0200 |
parents | cfce9ac1d1e8 |
children | 78449866e9a9 |
rev | line source |
---|---|
7 | 1 INSTALLpc.txt - Installation of Vim on PC |
2 | |
3 This file contains instructions for compiling Vim. If you already have an | |
4 executable version of Vim, you don't need this. | |
5 | |
12610
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
6 You can find the lastest here: https://github.com/vim/vim-win32-installer |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
7 This page also has links to install support for interfaces such as Perl, |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
8 Python, Lua, etc. |
7 | 9 |
10 The file "feature.h" can be edited to match your preferences. You can skip | |
11 this, then you will get the default behavior as is documented, which should | |
12 be fine for most people. | |
13 | |
8960
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
14 This document assumes that you are building Vim for Win32 or later (Windows |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
15 XP/2003/Vista/7/8/10). There are also instructions for pre-XP systems, but |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
16 they might no longer work. |
714 | 17 |
12610
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
18 The recommended way is to build a 32 bit Vim, also on 64 bit systems. You can |
12781
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
19 build a 64 bit Vim if you like, the executable will be bigger and Vim won't be |
12610
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
20 any faster, but you can edit files larger than 2 Gbyte. |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
21 |
7 | 22 |
23 Contents: | |
714 | 24 1. Microsoft Visual C++ |
25 2. Using MinGW | |
26 3. Cygwin | |
27 4. Borland | |
28 5. Cross compiling for Win32 from a Linux machine | |
29 6. Building with Python support | |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
30 7. Building with Python3 support |
12610
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
31 8. Building with Racket or MzScheme support |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
32 9. Building with Lua support |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
33 10. Building with Perl support |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
34 11. Building with Ruby support |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
35 12. Building with Tcl support |
11719
13ecb3e64399
patch 8.0.0742: terminal feature does not work on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
10214
diff
changeset
|
36 13. Building with Terminal support |
13028
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
37 14. Building with DirectX (DirectWrite) support |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
38 15. Windows 3.1 |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
39 16. MS-DOS |
714 | 40 |
13028
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
41 17. Installing after building from sources |
2951 | 42 |
43 | |
12610
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
44 The currently recommended way (that means it has been verified to work) is |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
45 using the "Visual Studio Community 2015" installation. This includes the SDK |
12781
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
46 needed to target Windows XP. But not older Windows versions (95, 98), see |
12610
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
47 |msvc-2008-express| below for that |
714 | 48 |
49 | |
50 1. Microsoft Visual C++ | |
51 ======================= | |
52 | |
12600
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
53 We do not provide download links, since Microsoft keeps changing them. You |
12610
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
54 can search for "Visual Studio Community 2015", for example. You will need to |
12600
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
55 create a Microsoft account (it's free). |
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
56 |
12781
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
57 When installing "Visual Studio Community 2015 with Update 3" make sure to |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
58 select "custom" and check "Windows XP Support for C++" and all checkboxes |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
59 under "Universal Windows App Development Tools" |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
60 |
12600
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
61 |
714 | 62 Visual Studio |
63 ------------- | |
64 | |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
65 Building with Visual Studio (VS 98, VS .NET, VS .NET 2003, VS 2005, VS 2008, |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
66 VS2010, VS2012, VS2013 and VS2015) is straightforward. (These instructions |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
67 should also work for VS 4 and VS 5.) |
714 | 68 |
12600
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
69 Using VS C++ 2008 Express is recommended if you need the binary to run on |
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
70 Windows 95 or 97, see |msvc-2008-express| below. |
3847 | 71 |
714 | 72 To build Vim from the command line with MSVC, use Make_mvc.mak. |
73 Visual Studio installed a batch file called vcvars32.bat, which you must | |
74 run to set up paths for nmake and MSVC. | |
75 | |
856 | 76 nmake -f Make_mvc.mak console Win32 SDK or Microsoft Visual C++ |
77 nmake -f Make_mvc.mak GUI=yes GUI Microsoft Visual C++ | |
78 nmake -f Make_mvc.mak OLE=yes OLE Microsoft Visual C++ | |
714 | 79 nmake -f Make_mvc.mak PERL=C:\Perl PYTHON=C:\Python etc. |
856 | 80 Perl, Python, etc. |
714 | 81 |
82 Make_mvc.mak allows a Vim to be built with various different features and | |
83 debug support. Debugging with MS Devstudio is provided by Make_dvc.mak. | |
84 For a description of the use of Make_dvc.mak, look in Make_mvc.mak. | |
85 | |
86 For compiling Gvim with IME support on far-east Windows, add IME=yes | |
87 to the parameters you pass to Make_mvc.mak. | |
88 | |
89 To build Vim from within the Visual Studio IDE, open the Make_ivc.mak project. | |
90 (Note: Make_ivc.mak is not as rich as Make_mvc.mak, which allows for | |
91 far more configuration.) Make_ivc.mak can also be built with nmake. | |
92 | |
93 nmake -f Make_ivc.mak CFG="Vim - Win32 Release gvim" | |
856 | 94 GUI Microsoft Visual C++ 4.x or later |
714 | 95 nmake -f Make_ivc.mak CFG="Vim - Win32 Release gvim OLE" |
856 | 96 OLE Microsoft Visual C++ 4.x or later |
714 | 97 |
98 See the specific files for comments and options. | |
99 | |
100 These files have been supplied by George V. Reilly, Ben Singer, Ken Scott and | |
101 Ron Aaron; they have been tested. | |
102 | |
103 | |
8960
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
104 Visual C++ 2008 Express Edition *msvc-2008-express* |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
105 ------------------------------- |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
106 |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
107 Visual C++ 2008 Express Edition can be downloaded for free from: |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
108 http://www.microsoft.com/express/downloads/ |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
109 This includes the IDE and the debugger. |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
110 |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
111 To set the environment execute the msvc2008.bat script. You can then build |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
112 Vim with Make_mvc.mak. |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
113 |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
114 For building 64 bit binaries you also need to install the SDK: |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
115 "Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1" |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
116 You don't need the examples and documentation. |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
117 |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
118 If you get an error that Win32.mak can't be found, you have to set the |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
119 variable SDK_INCLUDE_DIR. For example, on Windows 10, installation of MSVC |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
120 puts include files in the following directory: |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
121 set SDK_INCLUDE_DIR=C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
122 |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
123 |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
124 Visual C++ 2010 Express Edition *msvc-2010-express* |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
125 ------------------------------- |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
126 |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
127 Visual C++ 2010 Express Edition can be downloaded for free from: |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
128 http://www.microsoft.com/express/vc/Default.aspx |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
129 This includes the IDE and the debugger. |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
130 |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
131 To set the environment execute the msvc2010.bat script. You can then build |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
132 Vim with Make_mvc.mak. |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
133 |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
134 |
12600
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
135 Targeting Windows XP with MSVC 2012 and later *new-msvc-windows-xp* |
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
136 --------------------------------------------- |
8960
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
137 |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
138 Beginning with Visual C++ 2012, Microsoft changed the behavior of LINK.EXE |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
139 so that it targets Windows 6.0 (Vista) by default. In order to override |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
140 this, the target Windows version number needs to be passed to LINK like |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
141 follows: |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
142 LINK ... /subsystem:console,5.01 |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
143 |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
144 Make_mvc.mak now supports a macro SUBSYSTEM_VER to pass the Windows version. |
12600
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
145 Use lines like follows to target Windows XP x86 (assuming using Visual C++ |
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
146 2012 under 64-bit Windows): |
8960
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
147 set WinSdk71=%ProgramFiles(x86)%\Microsoft SDKs\Windows\v7.1A |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
148 set INCLUDE=%WinSdk71%\Include;%INCLUDE% |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
149 set LIB=%WinSdk71%\Lib;%LIB% |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
150 set CL=/D_USING_V110_SDK71_ |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
151 nmake -f Make_mvc.mak ... WINVER=0x0501 SUBSYSTEM_VER=5.01 |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
152 |
12600
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
153 To target Windows XP x64 instead of x86, you need to change the settings of |
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
154 LIB and SUBSYSTEM_VER: |
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
155 ... |
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
156 set LIB=%WinSdk71%\Lib\x64;%LIB% |
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
157 ... |
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
158 nmake -f Make_mvc.mak ... WINVER=0x0501 SUBSYSTEM_VER=5.02 |
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
159 |
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
160 If you use Visual C++ 2015 (either Express or Community Edition), executing |
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
161 msvc2015.bat will set them automatically. For x86 builds run this without |
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
162 options: |
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
163 msvc2015 |
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
164 For x64 builds run this with the "x86_amd64" option: |
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
165 msvc2015 x86_amd64 |
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
166 |
8960
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
167 The following Visual C++ team blog can serve as a reference page: |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
168 http://blogs.msdn.com/b/vcblog/archive/2012/10/08/windows-xp-targeting-with-c-in-visual-studio-2012.aspx |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
169 |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
170 |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
171 OLDER VERSIONS |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
172 |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
173 The minimal supported version is Windows XP. Building with older compilers |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
174 might still work, but these instructions might be outdated. |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
175 |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
176 If you need the executable to run on Windows 98 or ME, use the 2003 one |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
177 |msvc-2003-toolkit|. |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
178 |
1668 | 179 Visual C++ Toolkit 2003 *msvc-2003-toolkit* |
714 | 180 ----------------------- |
181 | |
1668 | 182 You could download the Microsoft Visual C++ Toolkit 2003 from |
714 | 183 http://msdn.microsoft.com/visualc/vctoolkit2003/ |
1668 | 184 Unfortunately this URL is no longer valid. Inofficial downloads appear to be |
185 available from links mentioned on these pages (use at your own risk): | |
186 http://www.filewatcher.com/m/VCToolkitSetup.exe.32952488.0.0.html | |
187 http://feargame.net/wiki/index.php?title=Building_Source_with_the_VC2003_Toolkit | |
188 | |
714 | 189 This contains the command-line tools (compiler, linker, CRT headers, |
190 and libraries) for Visual Studio .NET 2003, but not the Visual Studio IDE. | |
191 To compile and debug Vim with the VC2003 Toolkit, you will also need | |
192 |ms-platform-sdk|, |dotnet-1.1-redist|, |dotnet-1.1-sdk|, | |
193 and |windbg-download|. | |
194 | |
1569 | 195 It's easier to download Visual C++ 2008 Express Edition, |msvc-2008-express|, |
196 which is freely available in perpetuity. | |
714 | 197 |
198 The free Code::Blocks IDE works with the VC2003 Toolkit, as described at | |
199 http://wiki.codeblocks.org/index.php?title=Integrating_Microsoft_Visual_Toolkit_2003_with_Code::Blocks_IDE | |
200 (This site also takes you through configuring a number of other | |
201 free C compilers for Win32.) | |
202 | |
203 To compile Vim using the VC2003 Toolkit and Make_mvc.mak, you must first | |
204 execute the following commands in a cmd.exe window (the msvcsetup.bat batch | |
205 file can be used): | |
856 | 206 |
714 | 207 set PATH=%SystemRoot%\Microsoft.NET\Framework\v1.1.4322;%PATH% |
208 call "%VCToolkitInstallDir%vcvars32.bat" | |
209 set MSVCVer=7.1 | |
210 call "%ProgramFiles%\Microsoft Platform SDK\SetEnv.Cmd" | |
211 set LIB=%ProgramFiles%\Microsoft Visual Studio .NET 2003\Vc7\lib;%LIB% | |
212 | |
213 Now you can build Vim with Make_mvc.mak. | |
214 | |
215 | |
856 | 216 Getting the Windows Platform SDK *ms-platform-sdk* |
714 | 217 |
12610
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
218 You will also need a copy of the Windows Platform SDK. Specifically, you need |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
219 the Windows Core SDK subset of the Platform SDK, which contains the Windows |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
220 headers and libraries. You need to search for it, Microsoft keeps changing |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
221 the URL. |
714 | 222 |
223 | |
224 Getting the .NET Framework 1.1 Runtime *dotnet-1.1-redist* | |
225 | |
226 You need the .NET Framework 1.1 Redistributable Package from | |
227 http://www.microsoft.com/downloads/details.aspx?familyid=262d25e3-f589-4842-8157-034d1e7cf3a3 | |
228 or from Windows Update: | |
229 http://windowsupdate.microsoft.com/ | |
230 This is needed to install |dotnet-1.1-sdk|. It also contains cvtres.exe, | |
231 which is needed to link Vim. | |
232 | |
233 | |
856 | 234 Getting the .NET Framework 1.1 SDK *dotnet-1.1-sdk* |
714 | 235 |
236 You need the .NET Framework 1.1 SDK from | |
237 http://www.microsoft.com/downloads/details.aspx?familyid=9b3a2ca6-3647-4070-9f41-a333c6b9181d | |
238 This contains some additional libraries needed to compile Vim, | |
239 such as msvcrt.lib. You must install |dotnet-1.1-redist| before | |
240 installing the .NET 1.1 SDK. | |
241 | |
242 | |
856 | 243 Getting the WinDbg debugger *windbg-download* |
714 | 244 |
245 The Debugging Tools for Windows can be downloaded from | |
246 http://www.microsoft.com/whdc/devtools/debugging/default.mspx | |
247 This includes the WinDbg debugger, which you will want if you ever need | |
248 to debug Vim itself. An earlier version of the Debugging Tools | |
249 is also available through the Platform SDK, |ms-platform-sdk|. | |
250 | |
251 | |
1608 | 252 Visual C++ 2005 Express Edition *msvc-2005-express* |
714 | 253 ------------------------------- |
254 | |
838 | 255 Visual C++ 2005 Express Edition can be downloaded for free from: |
714 | 256 http://msdn.microsoft.com/vstudio/express/visualC/default.aspx |
257 This includes the IDE and the debugger. You will also need | |
258 |ms-platform-sdk|. You can build Vim with Make_mvc.mak. | |
259 | |
260 Instructions for integrating the Platform SDK into VC Express: | |
261 http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/default.aspx | |
7 | 262 |
263 | |
6149 | 264 |
714 | 265 2. MinGW |
266 ======== | |
267 | |
268 (written by Ron Aaron: <ronaharon@yahoo.com>) | |
269 | |
270 This is about how to produce a Win32 binary of gvim with MinGW. | |
271 | |
272 First, you need to get the 'mingw32' compiler, which is free for the download | |
273 at: | |
274 | |
275 http://www.mingw.org/ | |
276 | |
6326 | 277 or you can use 'MinGW-w64' compiler. |
278 | |
279 http://mingw-w64.sourceforge.net/ | |
280 | |
7456
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6326
diff
changeset
|
281 Or a compiler provided on msys2: |
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6326
diff
changeset
|
282 |
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6326
diff
changeset
|
283 https://msys2.github.io/ |
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6326
diff
changeset
|
284 |
714 | 285 Once you have downloaded the compiler binaries, unpack them on your hard disk |
286 somewhere, and put them on your PATH. If you are on Win95/98 you can edit | |
287 your AUTOEXEC.BAT file with a line like: | |
288 | |
6326 | 289 set PATH=C:\MinGW\bin;%PATH% |
714 | 290 |
291 or on NT/2000/XP, go to the Control Panel, (Performance and Maintenance), | |
7456
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6326
diff
changeset
|
292 System, Advanced, and edit the environment from there. If you use msys2 |
12781
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
293 compilers, set your installed paths (normally one of the following): |
7456
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6326
diff
changeset
|
294 |
12781
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
295 C:\msys32\mingw32\bin (32-bit msys2, targeting 32-bit builds) |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
296 C:\msys64\mingw32\bin (64-bit msys2, targeting 32-bit builds) |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
297 C:\msys64\mingw64\bin (64-bit msys2, targeting 64-bit builds) |
714 | 298 |
299 Test if gcc is on your path. From a CMD (or COMMAND on '95/98) window: | |
300 | |
301 C:\> gcc --version | |
6326 | 302 gcc (GCC) 4.8.1 |
714 | 303 |
6326 | 304 C:\> mingw32-make --version |
305 GNU Make 3.82.90 (...etc...) | |
714 | 306 |
307 Now you are ready to rock 'n' roll. Unpack the vim sources (look on | |
308 www.vim.org for exactly which version of the vim files you need). | |
309 | |
310 Change directory to 'vim\src': | |
311 | |
312 C:\> cd vim\src | |
313 C:\VIM\SRC> | |
314 | |
315 and you type: | |
316 | |
6326 | 317 mingw32-make -f Make_ming.mak gvim.exe |
714 | 318 |
319 After churning for a while, you will end up with 'gvim.exe' in the 'vim\src' | |
320 directory. | |
321 | |
322 You should not need to do *any* editing of any files to get vim compiled this | |
323 way. If, for some reason, you want the console-mode-only version of vim (this | |
2098
3259c3923c1e
Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
2088
diff
changeset
|
324 is NOT recommended on Win32, especially on '95/'98!!!), you can use: |
2035 | 325 |
6326 | 326 mingw32-make -f Make_ming.mak GUI=no vim.exe |
714 | 327 |
328 If you are dismayed by how big the EXE is, I strongly recommend you get 'UPX' | |
329 (also free!) and compress the file (typical compression is 50%). UPX can be | |
330 found at | |
331 http://www.upx.org/ | |
332 | |
3388 | 333 As of 2011, UPX still does not support compressing 64-bit EXE's; if you have |
334 built a 64-bit vim then an alternative to UPX is 'MPRESS'. MPRESS can be found | |
335 at: | |
336 http://www.matcode.com/mpress.htm | |
337 | |
338 | |
714 | 339 ADDITION: NLS support with MinGW |
340 | |
341 (by Eduardo F. Amatria <eferna1@platea.pntic.mec.es>) | |
342 | |
343 If you want National Language Support, read the file src/po/README_mingw.txt. | |
344 You need to uncomment lines in Make_ming.mak to have NLS defined. | |
345 | |
346 | |
347 3. Cygwin | |
348 ========= | |
349 | |
350 Use Make_cyg.mak with Cygwin's GCC. See | |
351 http://users.skynet.be/antoine.mechelynck/vim/compile.htm | |
352 | |
6326 | 353 With Cygnus gcc you should use the Unix Makefile instead (you need to get the |
714 | 354 Unix archive then). Then you get a Cygwin application (feels like Vim is |
2088
4ec11bb387a5
updated for version 7.2.372
Bram Moolenaar <bram@zimbu.org>
parents:
2035
diff
changeset
|
355 running on Unix), while with Make_cyg.mak you get a Windows application (like |
714 | 356 with the other makefiles). |
357 | |
358 | |
359 4. Borland | |
360 =========== | |
361 | |
362 Use Make_bc5.mak with Borland C++ 5.x. See | |
363 http://users.skynet.be/antoine.mechelynck/vim/compile.htm | |
364 | |
365 | |
366 5. Cross compiling for Win32 from a Linux machine | |
367 ================================================= | |
368 | |
369 [Update of 1) needs to be verified] | |
370 | |
371 If you like, you can compile the 'mingw' Win32 version from the comfort of | |
372 your Linux (or other unix) box. To do this, you need to follow a few steps: | |
373 1) Install the mingw32 cross-compiler. See | |
2035 | 374 http://www.mingw.org/wiki/LinuxCrossMinGW |
856 | 375 http://www.libsdl.org/extras/win32/cross/README.txt |
1619 | 376 2) Get and unpack both the Unix sources and the extra archive |
6326 | 377 3) in 'Make_cyg_ming.mak', set 'CROSS' to 'yes' instead of 'no'. |
378 Make further changes to 'Make_cyg_ming.mak' and 'Make_ming.mak' as you | |
379 wish. If your cross-compiler prefix differs from the predefined value, | |
2035 | 380 set 'CROSS_COMPILE' corresponding. |
714 | 381 4) make -f Make_ming.mak gvim.exe |
382 | |
383 Now you have created the Windows binary from your Linux box! Have fun... | |
384 | |
385 | |
386 6. Building with Python support | |
387 =============================== | |
388 | |
3847 | 389 For building with MSVC 2008 the "Windows Installer" from www.python.org |
390 works fine. | |
714 | 391 |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
392 When building, you need to set the following variables at least: |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
393 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
394 PYTHON: Where Python is installed. E.g. C:\Python27 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
395 DYNAMIC_PYTHON: Whether dynamic linking is used. Usually, set to yes. |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
396 PYTHON_VER: Python version. E.g. 27 for Python 2.7.X. |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
397 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
398 E.g. When using MSVC (as one line): |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
399 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
400 nmake -f Make_mvc.mak |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
401 PYTHON=C:\Python27 DYNAMIC_PYTHON=yes PYTHON_VER=27 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
402 |
3847 | 403 (rest written by Ron Aaron: <ronaharon@yahoo.com>) |
404 | |
405 Building with the mingw32 compiler, and the ActiveState ActivePython: | |
714 | 406 http://www.ActiveState.com/Products/ActivePython/ |
407 | |
408 After installing the ActivePython, you will have to create a 'mingw32' | |
409 'libpython20.a' to link with: | |
7456
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6326
diff
changeset
|
410 cd $PYTHON/libs |
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6326
diff
changeset
|
411 pexports python20.dll > python20.def |
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6326
diff
changeset
|
412 dlltool -d python20.def -l libpython20.a |
714 | 413 |
414 Once that is done, edit the 'Make_ming.mak' so the PYTHON variable points to | |
415 the root of the Python installation (C:\Python20, for example). If you are | |
416 cross-compiling on Linux with the mingw32 setup, you need to also convert all | |
417 the 'Include' files to *unix* line-endings. This bash command will do it | |
418 easily: | |
7456
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6326
diff
changeset
|
419 for fil in *.h ; do vim -e -c 'set ff=unix|w|q' $fil |
714 | 420 |
421 Now just do: | |
7456
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6326
diff
changeset
|
422 make -f Make_ming.mak gvim.exe |
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6326
diff
changeset
|
423 |
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6326
diff
changeset
|
424 And if you use msys2 to build python support (as one line): |
714 | 425 |
7456
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6326
diff
changeset
|
426 mingw32-make -f Make_ming.mak PYTHON=c:/msys64/mingw64 |
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6326
diff
changeset
|
427 PYTHON_HOME=c:/msys64/mingw64 |
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6326
diff
changeset
|
428 PYTHONINC=-Ic:/msys64/mingw64/include/python2.7 |
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6326
diff
changeset
|
429 DYNAMIC_PYTHON=yes |
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6326
diff
changeset
|
430 PYTHON_VER=27 |
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6326
diff
changeset
|
431 DYNAMIC_PYTHON_DLL=libpython2.7.dll |
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6326
diff
changeset
|
432 STATIC_STDCPLUS=yes |
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6326
diff
changeset
|
433 |
12781
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
434 (This is for 64-bit builds. For 32-bit builds, replace mingw64 with mingw32.) |
7456
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6326
diff
changeset
|
435 You will end up with a Python-enabled, Win32 version. Enjoy! |
714 | 436 |
437 | |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
438 7. Building with Python3 support |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
439 ================================ |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
440 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
441 For building with MSVC 2008 the "Windows Installer" from www.python.org |
13018
8862bf5adf7b
patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents:
12781
diff
changeset
|
442 works fine. Python 3.6 is recommended. |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
443 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
444 When building, you need to set the following variables at least: |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
445 |
13018
8862bf5adf7b
patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents:
12781
diff
changeset
|
446 PYTHON3: Where Python3 is installed. E.g. C:\Python36 |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
447 DYNAMIC_PYTHON3: Whether dynamic linking is used. Usually, set to yes. |
13018
8862bf5adf7b
patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents:
12781
diff
changeset
|
448 PYTHON3_VER: Python3 version. E.g. 36 for Python 3.6.X. |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
449 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
450 E.g. When using MSVC (as one line): |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
451 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
452 nmake -f Make_mvc.mak |
13018
8862bf5adf7b
patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents:
12781
diff
changeset
|
453 PYTHON3=C:\Python36 DYNAMIC_PYTHON3=yes PYTHON3_VER=36 |
8862bf5adf7b
patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents:
12781
diff
changeset
|
454 |
8862bf5adf7b
patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents:
12781
diff
changeset
|
455 |
8862bf5adf7b
patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents:
12781
diff
changeset
|
456 When using msys2 and link with Python3 bundled with msys2 (as one line): |
8862bf5adf7b
patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents:
12781
diff
changeset
|
457 |
8862bf5adf7b
patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents:
12781
diff
changeset
|
458 mingw32-make -f Make_ming.mak PYTHON3=c:/msys64/mingw64 |
8862bf5adf7b
patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents:
12781
diff
changeset
|
459 PYTHON3_HOME=c:/msys64/mingw64 |
8862bf5adf7b
patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents:
12781
diff
changeset
|
460 PYTHON3INC=-Ic:/msys64/mingw64/include/python3.6m |
8862bf5adf7b
patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents:
12781
diff
changeset
|
461 DYNAMIC_PYTHON3=yes |
8862bf5adf7b
patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents:
12781
diff
changeset
|
462 PYTHON3_VER=36 |
8862bf5adf7b
patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents:
12781
diff
changeset
|
463 DYNAMIC_PYTHON3_DLL=libpython3.6m.dll |
8862bf5adf7b
patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents:
12781
diff
changeset
|
464 STATIC_STDCPLUS=yes |
8862bf5adf7b
patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents:
12781
diff
changeset
|
465 |
8862bf5adf7b
patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents:
12781
diff
changeset
|
466 (This is for 64-bit builds. For 32-bit builds, replace mingw64 with mingw32.) |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
467 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
468 |
12610
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
469 8. Building with Racket or MzScheme support |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
470 ======================================== |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
471 |
12610
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
472 1) Building with Racket support (newest) |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
473 |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
474 MzScheme and PLT Scheme names have been rebranded as Racket. Vim with Racket |
12610
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
475 support can be built with either MSVC or MinGW (or Cygwin). |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
476 Get it from https://download.racket-lang.org/ |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
477 |
12610
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
478 Copy lib/libracket{version}.dll to your Windows system directory. The system |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
479 directory depends on your Windows bitness and Vim bitness: |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
480 32-bit Vim on 32-bit Windows: C:\Windows\System32 |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
481 32-bit Vim on 64-bit Windows: C:\Windows\SysWOW64 |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
482 64-bit Vim on 64-bit Windows: C:\Windows\System32 |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
483 |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
484 For building you need to set the following variables: |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
485 |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
486 MZSCHEME: Where Racket is installed. |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
487 E.g. C:\Program Files (x86)\Racket |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
488 DYNAMIC_MZSCHEME: Whether dynamic linking is used. Usually, set to yes. |
11914 | 489 MZSCHEME_VER: Racket DLL version which is used for the file name. |
12600
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
490 See below for a list of MZSCHEME_VER. |
11914 | 491 The DLL can be found under the lib directory. E.g. |
492 C:\Program Files (x86)\Racket\lib\libracket3m_XXXXXX.dll | |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
493 MZSCHEME_COLLECTS: (Optional) Path of the collects directory used at |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
494 runtime. Default: $(MZSCHEME)\collects |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
495 User can override this with the PLTCOLLECTS environment |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
496 variable. |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
497 |
12600
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
498 List of MZSCHEME_VER (incomplete): |
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
499 |
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
500 Racket ver. | MZSCHEME_VER |
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
501 ========================== |
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
502 6.3 | 3m_9z0ds0 |
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
503 6.6 | 3m_a0solc |
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
504 6.8 | 3m_a1zjsw |
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
505 6.10 | 3m_a36fs8 |
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
506 |
590424e87b65
patch 8.0.1178: using old compiler on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
507 |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
508 E.g. When using MSVC (as one line): |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
509 |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
510 nmake -f Make_mvc.mak |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
511 MZSCHEME="C:\Program Files (x86)\Racket" DYNAMIC_MZSCHEME=yes |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
512 MZSCHEME_VER=3m_9z0ds0 |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
513 |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
514 Or when using MinGW (as one line): |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
515 |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
516 mingw32-make -f Make_ming.mak |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
517 MZSCHEME='C:/Program\ Files\ (x86)/Racket' DYNAMIC_MZSCHEME=yes |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
518 MZSCHEME_VER=3m_9z0ds0 |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
519 |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
520 Spaces should be escaped with '\'. |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
521 |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
522 |
12610
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
523 2) Building with MzScheme support (older) |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
524 |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
525 (written by Sergey Khorev <sergey.khorev@gmail.com>) |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
526 |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
527 Vim with MzScheme (http://www.plt-scheme.org/software/mzscheme) support can |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
528 be built with either MSVC, or MinGW, or Cygwin. Supported versions are 205 and |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
529 above (including 299 and 30x series). |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
530 |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
531 The MSVC build is quite straightforward. Simply invoke (in one line) |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
532 nmake -fMake_mvc.mak MZSCHEME=<Path-to-MzScheme> |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
533 [MZSCHEME_VER=<MzScheme-version>] [DYNAMIC_MZSCHEME=<yes or no>] |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
534 where <MzScheme-version> is the last seven characters from MzScheme dll name |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
535 (libmzschXXXXXXX.dll). |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
536 If DYNAMIC_MZSCHEME=yes, resulting executable will not depend on MzScheme |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
537 DLL's, but will load them in runtime on demand. |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
538 |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
539 Building dynamic MzScheme support on MinGW and Cygwin is similar. Take into |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
540 account that <Path-to-MzScheme> should contain slashes rather than backslashes |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
541 (e.g. d:/Develop/MzScheme) |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
542 |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
543 "Static" MzScheme support (Vim executable will depend on MzScheme DLLs |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
544 explicitly) on MinGW and Cygwin requires additional step. |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
545 |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
546 libmzschXXXXXXX.dll and libmzgcXXXXXXX.dll should be copied from |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
547 %WINDOWS%\System32 to other location (either build directory, some temporary |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
548 dir or even MzScheme home). |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
549 |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
550 Pass that path as MZSCHEME_DLLS parameter for Make. E.g., |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
551 make -f Make_cyg.mak MZSCHEME=d:/Develop/MzScheme MZSCHEME_VER=209_000 |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
552 MZSCHEME_DLLS=c:/Temp DYNAMIC_MZSCHEME=no |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
553 |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
554 After a successful build, these dlls can be freely removed, leaving them in |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
555 %WINDOWS%\System32 only. |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
556 |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
557 |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
558 |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
559 9. Building with Lua support |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
560 ============================ |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
561 |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
562 Vim with Lua support can be built with either MSVC or MinGW (or maybe Cygwin). |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
563 You can use binaries from LuaBinaries: http://luabinaries.sourceforge.net/ |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
564 This also applies to when you get a Vim executable and don't build yourself, |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
565 do the part up to "Build". |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
566 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
567 1) Download and install LuaBinaries |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
568 |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
569 Go to the Download page of LuaBinaries: |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
570 http://luabinaries.sourceforge.net/download.html |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
571 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
572 Download lua-X.Y.Z_Win32_dllw4_lib.zip for x86 or |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
573 lua-X.Y.Z_Win64_dllw4_lib.zip for x64. You can use them both for MSVC and |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
574 MinGW. |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
575 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
576 Unpack it to a working directory. E.g. C:\projects\lua53. |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
577 Lua's header files will be installed under the include directory. |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
578 |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
579 Copy luaXY.dll to your Windows system directory. The system directory depends |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
580 on your Windows bitness and Vim bitness: |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
581 32-bit Vim on 32-bit Windows: C:\Windows\System32 |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
582 32-bit Vim on 64-bit Windows: C:\Windows\SysWOW64 |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
583 64-bit Vim on 64-bit Windows: C:\Windows\System32 |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
584 |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
585 Or another option is copying luaXY.dll to the directory where gvim.exe |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
586 (or vim.exe) is. |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
587 |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
588 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
589 2) Build |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
590 |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
591 You need to set LUA, DYNAMIC_LUA and LUA_VER. |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
592 |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
593 LUA: Where Lua's header files are installed. E.g. C:\projects\lua53. |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
594 DYNAMIC_LUA: Whether dynamic linking is used. Set to yes. |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
595 LUA_VER: Lua version. E.g. 53 for Lua 5.3.X. |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
596 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
597 E.g. When using MSVC (as one line): |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
598 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
599 nmake -f Make_mvc.mak |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
600 LUA=C:\projects\lua53 DYNAMIC_LUA=yes LUA_VER=53 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
601 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
602 Or when using MinGW (as one line): |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
603 |
12610
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
604 mingw32-make -f Make_ming.mak |
12781
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
605 LUA=C:/projects/lua53 DYNAMIC_LUA=yes LUA_VER=53 |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
606 |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
607 |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7553
diff
changeset
|
608 Or when using Cygwin (as one line) (untested): |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
609 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
610 make -f Make_cyg.mak |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
611 LUA=/cygdrive/c/projects/lua53 DYNAMIC_LUA=yes LUA_VER=53 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
612 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
613 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
614 10. Building with Perl support |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
615 ============================== |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
616 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
617 Vim with Perl support can be built with either MSVC or MinGW (or Cygwin). |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
618 You can use binaries from ActiveState (ActivePerl) or Strawberry Perl. |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
619 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
620 http://www.activestate.com/activeperl |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
621 http://strawberryperl.com/ |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
622 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
623 When building, you need to set the following variables: |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
624 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
625 PERL: Where perl is installed. E.g. C:\Perl, C:\Strawberry\perl |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
626 DYNAMIC_PERL: Whether dynamic linking is used. Usually, set to yes. |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
627 PERL_VER: Perl version. E.g. 522 for Perl 5.22.X. |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
628 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
629 E.g. When using MSVC (as one line): |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
630 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
631 nmake -f Make_mvc.mak |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
632 PERL=C:\Perl DYNAMIC_PERL=yes PERL_VER=522 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
633 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
634 Or when using MinGW (as one line): |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
635 |
12610
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
636 mingw32-make -f Make_ming.mak |
12781
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
637 PERL=C:/Perl DYNAMIC_PERL=yes PERL_VER=522 |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
638 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
639 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
640 11. Building with Ruby support |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
641 ============================== |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
642 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
643 Vim with Ruby support can be built with either MSVC or MinGW (or Cygwin). |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
644 Ruby doesn't provide the official Windows binaries. The most widely used |
12610
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
645 Windows binaries might be RubyInstaller. Currently Ruby 2.4 is recommended. |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
646 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
647 http://rubyinstaller.org/ |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
648 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
649 If you use MinGW you can easily build with RubyInstaller, but if you use MSVC |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
650 you need some tricks described below. |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
651 (Another binary distribution is ActiveScriptRuby: |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
652 http://www.artonx.org/data/asr/) |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
653 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
654 When building, you need to set the following variables at least: |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
655 |
12610
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
656 RUBY: Where ruby is installed. E.g. C:\Ruby24 |
10138
8bfcb960e6bd
commit https://github.com/vim/vim/commit/6384c5db8dda70076c878d393ba19a1510695228
Christian Brabandt <cb@256bit.org>
parents:
9719
diff
changeset
|
657 DYNAMIC_RUBY: Whether dynamic linking is used. Usually, set to yes. |
12610
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
658 RUBY_VER: Ruby version. E.g. 24 for Ruby 2.4.X. |
10138
8bfcb960e6bd
commit https://github.com/vim/vim/commit/6384c5db8dda70076c878d393ba19a1510695228
Christian Brabandt <cb@256bit.org>
parents:
9719
diff
changeset
|
659 RUBY_API_VER_LONG: Ruby API version in a long format. |
12610
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
660 E.g. 2.4.0 for Ruby 2.4.X. |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
661 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
662 Ruby version vs. Ruby API version: |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
663 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
664 Ruby ver. | Ruby API ver. |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
665 ========================= |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
666 1.8.X | 1.8 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
667 1.9.[1-3] | 1.9.1 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
668 2.0.0 | 2.0.0 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
669 2.X.Y | 2.X.0 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
670 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
671 (Ruby 1.9.0 is excluded from the table because it is an unstable version.) |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
672 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
673 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
674 A) Using MSVC |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
675 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
676 If you want to link with ruby, normally you must use the same compiler as |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
677 which was used to build the ruby binary. RubyInstaller is built with MinGW, |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
678 so normally you cannot use MSVC for building Vim if you want to link with |
8960
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
679 RubyInstaller. If you use a different compiler, there are mainly two problems: |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
680 config.h and Ruby's DLL name. Here are the steps for working around them: |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
681 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
682 1) Download and Install RubyInstaller. |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
683 You can install RubyInstaller with the default options and directory. |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
684 E.g.: |
12610
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
685 C:\Ruby24 (32-bit) or C:\Ruby24-x64 (64-bit) |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
686 |
12610
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
687 Ruby 2.4.X is used in this example. |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
688 |
12610
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
689 2) Download Ruby 2.4.X's source code and generate config.h: |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
690 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
691 cd C:\projects |
12610
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
692 git clone https://github.com/ruby/ruby.git -b ruby_2_4 |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
693 cd ruby |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
694 win32\configure.bat |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
695 nmake .config.h.time |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
696 |
12610
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
697 Note that ruby_2_4 is the branch name for Ruby 2.4.X's source code. |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
698 There is no need to build whole Ruby, just config.h is needed. |
12781
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
699 If you use 32-bit MSVC 2015, the config.h is generated in the |
12610
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
700 .ext\include\i386-mswin32_140 directory. |
13018
8862bf5adf7b
patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents:
12781
diff
changeset
|
701 If you use 64-bit MSVC 2015, the config.h is generated in the |
8862bf5adf7b
patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents:
12781
diff
changeset
|
702 .ext\include\x64-mswin64_140 directory. |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
703 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
704 3) Install the generated config.h. |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
705 |
13018
8862bf5adf7b
patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents:
12781
diff
changeset
|
706 For 32-bit version: |
8862bf5adf7b
patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents:
12781
diff
changeset
|
707 |
12781
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
708 xcopy /s .ext\include C:\Ruby24\include\ruby-2.4.0 |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
709 |
13018
8862bf5adf7b
patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents:
12781
diff
changeset
|
710 For 64-bit version: |
8862bf5adf7b
patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents:
12781
diff
changeset
|
711 |
8862bf5adf7b
patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents:
12781
diff
changeset
|
712 xcopy /s .ext\include C:\Ruby24-x64\include\ruby-2.4.0 |
8862bf5adf7b
patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents:
12781
diff
changeset
|
713 |
12610
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
714 Note that 2.4.0 is Ruby API version of Ruby 2.4.X. |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
715 You may need to close the console and reopen it to pick up the new $PATH. |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
716 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
717 4) Build Vim. Note that you need to adjust some variables (as one line): |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
718 |
13018
8862bf5adf7b
patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents:
12781
diff
changeset
|
719 For 32-bit version: |
8862bf5adf7b
patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents:
12781
diff
changeset
|
720 |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
721 nmake -f Make_mvc.mak |
12610
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
722 RUBY=C:\Ruby24 DYNAMIC_RUBY=yes RUBY_VER=24 RUBY_API_VER_LONG=2.4.0 |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
723 RUBY_MSVCRT_NAME=msvcrt |
8960
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
724 WINVER=0x501 |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
725 |
13018
8862bf5adf7b
patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents:
12781
diff
changeset
|
726 For 64-bit version, replace RUBY=C:\Ruby24 with RUBY=C:\Ruby24-x64. |
8862bf5adf7b
patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents:
12781
diff
changeset
|
727 |
8960
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
728 If you set WINVER explicitly, it must be set to >=0x500, when building |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
729 with Ruby 2.1 or later. (Default is 0x501.) |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
730 When using this trick, you also need to set RUBY_MSVCRT_NAME to msvcrt |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
731 which is used for the Ruby's DLL name. |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
732 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
733 B) Using MinGW |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
734 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
735 Using MinGW is easier than using MSVC when linking with RubyInstaller. |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
736 After you install RubyInstaller, just type this (as one line): |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
737 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
738 mingw32-make -f Make_ming.mak |
12781
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
739 RUBY=C:/Ruby24 DYNAMIC_RUBY=yes RUBY_VER=24 RUBY_API_VER_LONG=2.4.0 |
8960
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
740 WINVER=0x501 |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
741 |
13018
8862bf5adf7b
patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents:
12781
diff
changeset
|
742 For 64-bit version, replace RUBY=C:/Ruby24 with RUBY=C:/Ruby24-x64. |
8960
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
743 If you set WINVER explicitly, it must be set to >=0x500, when building with |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
744 Ruby 2.1 or later. (Default is 0x501.) |
ea3eb5a815b5
commit https://github.com/vim/vim/commit/02cfac85b4e4b038bb2df6962699fa93a42c7eb1
Christian Brabandt <cb@256bit.org>
parents:
8265
diff
changeset
|
745 |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
746 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
747 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
748 12. Building with Tcl support |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
749 ============================= |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
750 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
751 Vim with Tcl support can be built with either MSVC or MinGW (or Cygwin). |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
752 You can use binaries from ActiveState (ActiveTcl). |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
753 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
754 http://www.activestate.com/activetcl |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
755 |
12610
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
756 For MSVC 2015 use version 8.6.6 or later. |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
757 When building, you need to set the following variables: |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
758 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
759 TCL: Where tcl is installed. E.g. C:\Tcl86 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
760 DYNAMIC_TCL: Whether dynamic linking is used. Usually, set to yes. |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
761 TCL_VER: Tcl version in a short format. E.g. 86 for Tcl 8.6.X. |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
762 TCL_VER_LONG: Tcl version in a long format. E.g. 8.6 for Tcl 8.6.X. |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
763 |
12610
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
764 Sometimes the Tcl dll name changes. E.g. ActiveTcl 8.6.4 comes with tcl86.dll, |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
765 but ActiveTcl 8.6.6 comes with tcl86t.dll. You can set the dll name by setting |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
766 the TCL_DLL variable: |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
767 TCL_DLL=tcl86t.dll |
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
768 |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
769 E.g. When using MSVC (as one line): |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
770 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
771 nmake -f Make_mvc.mak |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
772 TCL=C:\Tcl86 DYNAMIC_TCL=yes TCL_VER=86 TCL_VER_LONG=8.6 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
773 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
774 Or when using MinGW (as one line): |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
775 |
12610
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
776 mingw32-make -f Make_ming.mak |
12781
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
777 TCL=C:/Tcl86 DYNAMIC_TCL=yes TCL_VER=86 TCL_VER_LONG=8.6 |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
778 |
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
779 |
11719
13ecb3e64399
patch 8.0.0742: terminal feature does not work on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
10214
diff
changeset
|
780 13. Building with Terminal support |
13ecb3e64399
patch 8.0.0742: terminal feature does not work on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
10214
diff
changeset
|
781 ================================== |
13ecb3e64399
patch 8.0.0742: terminal feature does not work on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
10214
diff
changeset
|
782 |
11774
edf1a2a247fa
patch 8.0.0769: build problems with terminal on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11747
diff
changeset
|
783 Vim with Terminal support can be built with either MSVC, MinGW or Cygwin. |
11747
9dd958aba769
patch 8.0.0756: cannot build libvterm with MSVC
Christian Brabandt <cb@256bit.org>
parents:
11719
diff
changeset
|
784 This uses the included libvterm and winpty. No extra header files or |
11774
edf1a2a247fa
patch 8.0.0769: build problems with terminal on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11747
diff
changeset
|
785 libraries are needed for building. Just set TERMINAL to yes. |
11747
9dd958aba769
patch 8.0.0756: cannot build libvterm with MSVC
Christian Brabandt <cb@256bit.org>
parents:
11719
diff
changeset
|
786 |
11774
edf1a2a247fa
patch 8.0.0769: build problems with terminal on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11747
diff
changeset
|
787 E.g. When using MSVC: |
11719
13ecb3e64399
patch 8.0.0742: terminal feature does not work on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
10214
diff
changeset
|
788 |
11774
edf1a2a247fa
patch 8.0.0769: build problems with terminal on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11747
diff
changeset
|
789 nmake -f Make_mvc.mak TERMINAL=yes |
11719
13ecb3e64399
patch 8.0.0742: terminal feature does not work on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
10214
diff
changeset
|
790 |
13028
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
791 Or when using MinGW: |
11719
13ecb3e64399
patch 8.0.0742: terminal feature does not work on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
10214
diff
changeset
|
792 |
12610
c6dc5d62cf5e
patch 8.0.1183: MS-Windows build instructions are outdated
Christian Brabandt <cb@256bit.org>
parents:
12600
diff
changeset
|
793 mingw32-make -f Make_ming.mak TERMINAL=yes |
11719
13ecb3e64399
patch 8.0.0742: terminal feature does not work on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
10214
diff
changeset
|
794 |
13ecb3e64399
patch 8.0.0742: terminal feature does not work on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
10214
diff
changeset
|
795 |
13028
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
796 14. Building with DirectX (DirectWrite) support |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
797 =============================================== |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
798 |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
799 Vim with DirectX (DirectWrite) support can be built with either MSVC or MinGW. |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
800 This requires dwrite_2.h and some other header files which come with Windows |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
801 SDK 8.1 or later (or MinGW-w64), if you want to enable color emoji support. |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
802 This also requires MBYTE=yes which is enabled by default. |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
803 |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
804 A) Using MSVC |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
805 |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
806 If you use MSVC 2013 or later, Windows SDK 8.1 or later is used by default. |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
807 You just need to specify DIRECTX=yes: |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
808 |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
809 nmake -f Make_mvc.mak DIRECTX=yes |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
810 |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
811 If you use MSVC 2012 or earlier, the required header files are not available |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
812 by default. However, you can use the header files from newer SDKs with older |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
813 compilers. E.g.: |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
814 |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
815 set "INCLUDE=%INCLUDE%;C:\Program Files (x86)\Windows Kits\8.1\Include\um" |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
816 nmake -f Make_mvc.mak DIRECTX=yes |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
817 |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
818 If you don't need color emoji support, only dwrite.h is required. You can use |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
819 older compilers (e.g. VC2010) without Windows SDK 8.1. E.g.: |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
820 |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
821 nmake -f Make_mvc.mak DIRECTX=yes COLOR_EMOJI=no |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
822 |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
823 B) Using MinGW-w64 |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
824 |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
825 Just set DIRECTX to yes: |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
826 |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
827 mingw32-make -f Make_ming.mak DIRECTX=yes |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
828 |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
829 |
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
830 15. Windows 3.1x |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
831 ================ |
714 | 832 |
8265
792bc43e69a7
commit https://github.com/vim/vim/commit/6e722e2f948bc51fcb92d98d6f2a089dac01e2bd
Christian Brabandt <cb@256bit.org>
parents:
7609
diff
changeset
|
833 The Windows 3.1x support was removed in patch 7.4.1364. |
714 | 834 |
835 | |
13028
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
836 16. MS-DOS |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
837 ========== |
7 | 838 |
12781
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
839 The MS-DOS support was removed in patch 7.4.1399. Only very old Vim versions |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
840 work on MS-DOS because of the limited amount of memory available. |
2951 | 841 |
842 | |
13028
cfce9ac1d1e8
patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is off
Christian Brabandt <cb@256bit.org>
parents:
13018
diff
changeset
|
843 17. Installing after building from sources |
2951 | 844 ========================================== |
845 | |
12781
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
846 [provided by Michael Soyka, updated by Ken Takata] |
2951 | 847 |
848 After you've built the Vim binaries as described above, you're ready to | |
849 install Vim on your system. However, if you've obtained the Vim sources | |
7553
f0205ac9818f
commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
850 using Git, Mercurial or by downloading them as a unix tar file, you must |
10214
3a6b2d4c71d6
commit https://github.com/vim/vim/commit/bbe917d9d465a66a29e38879c7f66df51b0b0dc3
Christian Brabandt <cb@256bit.org>
parents:
10138
diff
changeset
|
851 first create a "vim80" directory. If you instead downloaded the sources as |
2951 | 852 zip files, you can skip this setup as the zip archives already have the |
7456
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6326
diff
changeset
|
853 correct directory structure. |
2951 | 854 |
10214
3a6b2d4c71d6
commit https://github.com/vim/vim/commit/bbe917d9d465a66a29e38879c7f66df51b0b0dc3
Christian Brabandt <cb@256bit.org>
parents:
10138
diff
changeset
|
855 A. Create a Vim "runtime" subdirectory named "vim80" |
2951 | 856 ----------------------------------------------------- |
7456
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6326
diff
changeset
|
857 If you obtained your Vim sources as zip files, you can skip this step. |
2951 | 858 Otherwise, continue reading. |
859 | |
860 Go to the directory that contains the Vim "src" and "runtime" | |
10214
3a6b2d4c71d6
commit https://github.com/vim/vim/commit/bbe917d9d465a66a29e38879c7f66df51b0b0dc3
Christian Brabandt <cb@256bit.org>
parents:
10138
diff
changeset
|
861 directories and create a new subdirectory named "vim80". |
7456
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6326
diff
changeset
|
862 |
10214
3a6b2d4c71d6
commit https://github.com/vim/vim/commit/bbe917d9d465a66a29e38879c7f66df51b0b0dc3
Christian Brabandt <cb@256bit.org>
parents:
10138
diff
changeset
|
863 Copy the "runtime" files into "vim80": |
3a6b2d4c71d6
commit https://github.com/vim/vim/commit/bbe917d9d465a66a29e38879c7f66df51b0b0dc3
Christian Brabandt <cb@256bit.org>
parents:
10138
diff
changeset
|
864 copy runtime\* vim80 |
2951 | 865 |
10214
3a6b2d4c71d6
commit https://github.com/vim/vim/commit/bbe917d9d465a66a29e38879c7f66df51b0b0dc3
Christian Brabandt <cb@256bit.org>
parents:
10138
diff
changeset
|
866 B. Copy the new binaries into the "vim80" directory |
2951 | 867 ---------------------------------------------------- |
868 Regardless of how you installed the Vim sources, you need to copy the | |
10214
3a6b2d4c71d6
commit https://github.com/vim/vim/commit/bbe917d9d465a66a29e38879c7f66df51b0b0dc3
Christian Brabandt <cb@256bit.org>
parents:
10138
diff
changeset
|
869 new binaries you created above into "vim80": |
2951 | 870 |
10214
3a6b2d4c71d6
commit https://github.com/vim/vim/commit/bbe917d9d465a66a29e38879c7f66df51b0b0dc3
Christian Brabandt <cb@256bit.org>
parents:
10138
diff
changeset
|
871 copy src\*.exe vim80 |
12781
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
872 copy src\tee\tee.exe vim80 |
10214
3a6b2d4c71d6
commit https://github.com/vim/vim/commit/bbe917d9d465a66a29e38879c7f66df51b0b0dc3
Christian Brabandt <cb@256bit.org>
parents:
10138
diff
changeset
|
873 copy src\xxd\xxd.exe vim80 |
2951 | 874 |
12781
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
875 To install the "Edit with Vim" popup menu, you need both 32-bit and 64-bit |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
876 versions of gvimext.dll. They should be copied to "vim80\GvimExt32" and |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
877 "vim80\GvimExt64" respectively. |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
878 First, build the 32-bit version, then: |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
879 |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
880 mkdir vim80\GvimExt32 |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
881 copy src\GvimExt\gvimext.dll vim80\GvimExt32 |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
882 |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
883 Next, clean the 32-bit version and build the 64-bit version, then: |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
884 |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
885 mkdir vim80\GvimExt64 |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
886 copy src\GvimExt\gvimext.dll vim80\GvimExt64 |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
887 |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
888 C. Copy gettext and iconv DLLs into the "vim80" directory |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
889 ---------------------------------------------------------- |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
890 Get gettext and iconv DLLs from the following site: |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
891 https://github.com/mlocati/gettext-iconv-windows/releases |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
892 Both 64- and 32-bit versions are needed. |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
893 Download the files gettextX.X.X.X-iconvX.XX-shared-{32,64}.zip, extract |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
894 DLLs and place them as follows: |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
895 |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
896 vim80\ |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
897 | libintl-8.dll |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
898 | libiconv-2.dll |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
899 | libgcc_s_sjlj-1.dll (only for 32-bit) |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
900 | |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
901 + GvimExt32\ |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
902 | libintl-8.dll |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
903 | libiconv-2.dll |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
904 | libgcc_s_sjlj-1.dll |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
905 | |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
906 ` GvimExt64\ |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
907 libintl-8.dll |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
908 libiconv-2.dll |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
909 |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
910 The DLLs in the "vim80" should be the same bitness with the (g)vim.exe. |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
911 |
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
912 D. Move the "vim80" directory into the Vim installation subdirectory |
2951 | 913 --------------------------------------------------------------------- |
10214
3a6b2d4c71d6
commit https://github.com/vim/vim/commit/bbe917d9d465a66a29e38879c7f66df51b0b0dc3
Christian Brabandt <cb@256bit.org>
parents:
10138
diff
changeset
|
914 Move the "vim80" subdirectory into the subdirectory where you want Vim |
7456
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6326
diff
changeset
|
915 to be installed. Typically, this subdirectory will be named "vim". |
10214
3a6b2d4c71d6
commit https://github.com/vim/vim/commit/bbe917d9d465a66a29e38879c7f66df51b0b0dc3
Christian Brabandt <cb@256bit.org>
parents:
10138
diff
changeset
|
916 If you already have a "vim80" subdirectory in "vim", delete it first |
7456
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6326
diff
changeset
|
917 by running its uninstal.exe program. |
2951 | 918 |
12781
cd41d47e6033
patch 8.0.1268: PC install instructions are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12610
diff
changeset
|
919 E. Install Vim |
2951 | 920 --------------- |
10214
3a6b2d4c71d6
commit https://github.com/vim/vim/commit/bbe917d9d465a66a29e38879c7f66df51b0b0dc3
Christian Brabandt <cb@256bit.org>
parents:
10138
diff
changeset
|
921 "cd" to your Vim installation subdirectory "vim\vim80" and run the |
2951 | 922 "install.exe" program. It will ask you a number of questions about |
923 how you would like to have your Vim setup. Among these are: | |
924 - You can tell it to write a "_vimrc" file with your preferences in the | |
925 parent directory. | |
926 - It can also install an "Edit with Vim" entry in the Windows Explorer | |
927 popup menu. | |
928 - You can have it create batch files, so that you can run Vim from the | |
929 console or in a shell. You can select one of the directories in your | |
7456
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6326
diff
changeset
|
930 PATH or add the directory to PATH using the Windows Control Panel. |
2951 | 931 - Create entries for Vim on the desktop and in the Start menu. |
932 | |
933 Happy Vimming! |