annotate src/INSTALLpc.txt @ 7601:88c4c634e919

Added tag v7.4.1099 for changeset fa59fafb6a9464b579504aa6c5abe6d5d0382f0d
author Christian Brabandt <cb@256bit.org>
date Fri, 15 Jan 2016 22:15:05 +0100
parents f0205ac9818f
children 77a14f3bc18b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 INSTALLpc.txt - Installation of Vim on PC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 This file contains instructions for compiling Vim. If you already have an
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 executable version of Vim, you don't need this.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
6 More information can be found here: (Very stale now.)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
8 http://mywebpage.netscape.com/sharppeople/vim/howto/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 The file "feature.h" can be edited to match your preferences. You can skip
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 this, then you will get the default behavior as is documented, which should
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 be fine for most people.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
2951
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
14 With the exception of two sections (Windows 3.1 and MS-DOS), this document
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
15 assumes that you are building Vim for Win32 or later.
7553
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
16 (Windows 95/98/Me/NT/2000/XP/2003/Vista/7/8/10)
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
17
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 Contents:
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
20 1. Microsoft Visual C++
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
21 2. Using MinGW
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
22 3. Cygwin
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
23 4. Borland
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
24 5. Cross compiling for Win32 from a Linux machine
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
25 6. Building with Python support
7553
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
26 7. Building with Python3 support
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
27 8. Building with MzScheme support
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
28 9. Building with Lua support
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
29 10. Building with Perl support
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
30 11. Building with Ruby support
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
31 12. Building with Tcl support
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
32 13. Windows 3.1
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
33 14. MS-DOS
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
34
7553
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
35 15. Installing after building from sources
2951
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
36
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
37
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
38 The currently preferred method is using the free Visual C++ Toolkit 2008
2871
82cd9f1e8d6b updated for version 7.3.209
Bram Moolenaar <bram@vim.org>
parents: 2217
diff changeset
39 |msvc-2008-express|, the produced binary runs on most MS-Windows systems. If
82cd9f1e8d6b updated for version 7.3.209
Bram Moolenaar <bram@vim.org>
parents: 2217
diff changeset
40 you need the executable to run on Windows 98 or ME, use the 2003 one
82cd9f1e8d6b updated for version 7.3.209
Bram Moolenaar <bram@vim.org>
parents: 2217
diff changeset
41 |msvc-2003-toolkit|.
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
42
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
43
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
44 1. Microsoft Visual C++
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
45 =======================
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
46
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
47 Visual Studio
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
48 -------------
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
49
7553
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
50 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
51 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
52 should also work for VS 4 and VS 5.)
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
53
3847
1003f9b262d7 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3388
diff changeset
54 Using VS C++ 2008 Express is recommended, the binaries build with that run on
1003f9b262d7 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3388
diff changeset
55 nearly all platforms. Binaries from later versions may not run on Windows 95
1003f9b262d7 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3388
diff changeset
56 or XP.
1003f9b262d7 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3388
diff changeset
57
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
58 To build Vim from the command line with MSVC, use Make_mvc.mak.
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
59 Visual Studio installed a batch file called vcvars32.bat, which you must
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
60 run to set up paths for nmake and MSVC.
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
61
856
8cd729851562 updated for version 7.0g
vimboss
parents: 838
diff changeset
62 nmake -f Make_mvc.mak console Win32 SDK or Microsoft Visual C++
8cd729851562 updated for version 7.0g
vimboss
parents: 838
diff changeset
63 nmake -f Make_mvc.mak GUI=yes GUI Microsoft Visual C++
8cd729851562 updated for version 7.0g
vimboss
parents: 838
diff changeset
64 nmake -f Make_mvc.mak OLE=yes OLE Microsoft Visual C++
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
65 nmake -f Make_mvc.mak PERL=C:\Perl PYTHON=C:\Python etc.
856
8cd729851562 updated for version 7.0g
vimboss
parents: 838
diff changeset
66 Perl, Python, etc.
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
67
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
68 Make_mvc.mak allows a Vim to be built with various different features and
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
69 debug support. Debugging with MS Devstudio is provided by Make_dvc.mak.
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
70 For a description of the use of Make_dvc.mak, look in Make_mvc.mak.
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
71
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
72 For compiling Gvim with IME support on far-east Windows, add IME=yes
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
73 to the parameters you pass to Make_mvc.mak.
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
74
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
75 To build Vim from within the Visual Studio IDE, open the Make_ivc.mak project.
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
76 (Note: Make_ivc.mak is not as rich as Make_mvc.mak, which allows for
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
77 far more configuration.) Make_ivc.mak can also be built with nmake.
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
78
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
79 nmake -f Make_ivc.mak CFG="Vim - Win32 Release gvim"
856
8cd729851562 updated for version 7.0g
vimboss
parents: 838
diff changeset
80 GUI Microsoft Visual C++ 4.x or later
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
81 nmake -f Make_ivc.mak CFG="Vim - Win32 Release gvim OLE"
856
8cd729851562 updated for version 7.0g
vimboss
parents: 838
diff changeset
82 OLE Microsoft Visual C++ 4.x or later
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
83
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
84 See the specific files for comments and options.
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
85
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
86 These files have been supplied by George V. Reilly, Ben Singer, Ken Scott and
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
87 Ron Aaron; they have been tested.
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
88
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
89
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
90 Visual C++ Toolkit 2003 *msvc-2003-toolkit*
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
91 -----------------------
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
92
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
93 You could download the Microsoft Visual C++ Toolkit 2003 from
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
94 http://msdn.microsoft.com/visualc/vctoolkit2003/
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
95 Unfortunately this URL is no longer valid. Inofficial downloads appear to be
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
96 available from links mentioned on these pages (use at your own risk):
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
97 http://www.filewatcher.com/m/VCToolkitSetup.exe.32952488.0.0.html
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
98 http://feargame.net/wiki/index.php?title=Building_Source_with_the_VC2003_Toolkit
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
99
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
100 This contains the command-line tools (compiler, linker, CRT headers,
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
101 and libraries) for Visual Studio .NET 2003, but not the Visual Studio IDE.
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
102 To compile and debug Vim with the VC2003 Toolkit, you will also need
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
103 |ms-platform-sdk|, |dotnet-1.1-redist|, |dotnet-1.1-sdk|,
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
104 and |windbg-download|.
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
105
1569
9fbb40a1228a updated for version 7.1-282
vimboss
parents: 856
diff changeset
106 It's easier to download Visual C++ 2008 Express Edition, |msvc-2008-express|,
9fbb40a1228a updated for version 7.1-282
vimboss
parents: 856
diff changeset
107 which is freely available in perpetuity.
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
108
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
109 The free Code::Blocks IDE works with the VC2003 Toolkit, as described at
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
110 http://wiki.codeblocks.org/index.php?title=Integrating_Microsoft_Visual_Toolkit_2003_with_Code::Blocks_IDE
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
111 (This site also takes you through configuring a number of other
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
112 free C compilers for Win32.)
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
113
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
114 To compile Vim using the VC2003 Toolkit and Make_mvc.mak, you must first
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
115 execute the following commands in a cmd.exe window (the msvcsetup.bat batch
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
116 file can be used):
856
8cd729851562 updated for version 7.0g
vimboss
parents: 838
diff changeset
117
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
118 set PATH=%SystemRoot%\Microsoft.NET\Framework\v1.1.4322;%PATH%
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
119 call "%VCToolkitInstallDir%vcvars32.bat"
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
120 set MSVCVer=7.1
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
121 call "%ProgramFiles%\Microsoft Platform SDK\SetEnv.Cmd"
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
122 set LIB=%ProgramFiles%\Microsoft Visual Studio .NET 2003\Vc7\lib;%LIB%
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
123
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
124 Now you can build Vim with Make_mvc.mak.
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
125
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
126
856
8cd729851562 updated for version 7.0g
vimboss
parents: 838
diff changeset
127 Getting the Windows Platform SDK *ms-platform-sdk*
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
128
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
129 You will also need a copy of the Windows Platform SDK from
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
130 http://www.microsoft.com/msdownload/platformsdk/sdkupdate/
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
131 Specifically, you need the Windows Core SDK subset of the Platform SDK,
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
132 which contains the Windows headers and libraries.
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
133
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
134
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
135 Getting the .NET Framework 1.1 Runtime *dotnet-1.1-redist*
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
136
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
137 You need the .NET Framework 1.1 Redistributable Package from
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
138 http://www.microsoft.com/downloads/details.aspx?familyid=262d25e3-f589-4842-8157-034d1e7cf3a3
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
139 or from Windows Update:
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
140 http://windowsupdate.microsoft.com/
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
141 This is needed to install |dotnet-1.1-sdk|. It also contains cvtres.exe,
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
142 which is needed to link Vim.
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
143
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
144
856
8cd729851562 updated for version 7.0g
vimboss
parents: 838
diff changeset
145 Getting the .NET Framework 1.1 SDK *dotnet-1.1-sdk*
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
146
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
147 You need the .NET Framework 1.1 SDK from
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
148 http://www.microsoft.com/downloads/details.aspx?familyid=9b3a2ca6-3647-4070-9f41-a333c6b9181d
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
149 This contains some additional libraries needed to compile Vim,
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
150 such as msvcrt.lib. You must install |dotnet-1.1-redist| before
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
151 installing the .NET 1.1 SDK.
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
152
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
153
856
8cd729851562 updated for version 7.0g
vimboss
parents: 838
diff changeset
154 Getting the WinDbg debugger *windbg-download*
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
155
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
156 The Debugging Tools for Windows can be downloaded from
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
157 http://www.microsoft.com/whdc/devtools/debugging/default.mspx
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
158 This includes the WinDbg debugger, which you will want if you ever need
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
159 to debug Vim itself. An earlier version of the Debugging Tools
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
160 is also available through the Platform SDK, |ms-platform-sdk|.
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
161
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
162
1608
152883db0edf updated for version 7.1-321
vimboss
parents: 1569
diff changeset
163 Visual C++ 2005 Express Edition *msvc-2005-express*
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
164 -------------------------------
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
165
838
8e5830943bff updated for version 7.0e04
vimboss
parents: 714
diff changeset
166 Visual C++ 2005 Express Edition can be downloaded for free from:
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
167 http://msdn.microsoft.com/vstudio/express/visualC/default.aspx
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
168 This includes the IDE and the debugger. You will also need
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
169 |ms-platform-sdk|. You can build Vim with Make_mvc.mak.
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
170
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
171 Instructions for integrating the Platform SDK into VC Express:
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
172 http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/default.aspx
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174
1569
9fbb40a1228a updated for version 7.1-282
vimboss
parents: 856
diff changeset
175 Visual C++ 2008 Express Edition *msvc-2008-express*
9fbb40a1228a updated for version 7.1-282
vimboss
parents: 856
diff changeset
176 -------------------------------
9fbb40a1228a updated for version 7.1-282
vimboss
parents: 856
diff changeset
177
9fbb40a1228a updated for version 7.1-282
vimboss
parents: 856
diff changeset
178 Visual C++ 2008 Express Edition can be downloaded for free from:
2217
120502692d82 Improve the MS-Windows installer.
Bram Moolenaar <bram@vim.org>
parents: 2098
diff changeset
179 http://www.microsoft.com/express/downloads/
120502692d82 Improve the MS-Windows installer.
Bram Moolenaar <bram@vim.org>
parents: 2098
diff changeset
180 This includes the IDE and the debugger.
120502692d82 Improve the MS-Windows installer.
Bram Moolenaar <bram@vim.org>
parents: 2098
diff changeset
181
120502692d82 Improve the MS-Windows installer.
Bram Moolenaar <bram@vim.org>
parents: 2098
diff changeset
182 To set the environment execute the msvc2008.bat script. You can then build
120502692d82 Improve the MS-Windows installer.
Bram Moolenaar <bram@vim.org>
parents: 2098
diff changeset
183 Vim with Make_mvc.mak.
120502692d82 Improve the MS-Windows installer.
Bram Moolenaar <bram@vim.org>
parents: 2098
diff changeset
184
3847
1003f9b262d7 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3388
diff changeset
185 For building 64 bit binaries you also need to install the SDK:
1003f9b262d7 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3388
diff changeset
186 "Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1"
1003f9b262d7 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3388
diff changeset
187 You don't need the examples and documentation.
1003f9b262d7 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3388
diff changeset
188
2217
120502692d82 Improve the MS-Windows installer.
Bram Moolenaar <bram@vim.org>
parents: 2098
diff changeset
189
120502692d82 Improve the MS-Windows installer.
Bram Moolenaar <bram@vim.org>
parents: 2098
diff changeset
190 Visual C++ 2010 Express Edition *msvc-2010-express*
120502692d82 Improve the MS-Windows installer.
Bram Moolenaar <bram@vim.org>
parents: 2098
diff changeset
191 -------------------------------
120502692d82 Improve the MS-Windows installer.
Bram Moolenaar <bram@vim.org>
parents: 2098
diff changeset
192
120502692d82 Improve the MS-Windows installer.
Bram Moolenaar <bram@vim.org>
parents: 2098
diff changeset
193 Visual C++ 2010 Express Edition can be downloaded for free from:
1619
b9740fb41986 updated for version 7.2a
vimboss
parents: 1608
diff changeset
194 http://www.microsoft.com/express/vc/Default.aspx
b9740fb41986 updated for version 7.2a
vimboss
parents: 1608
diff changeset
195 This includes the IDE and the debugger.
1569
9fbb40a1228a updated for version 7.1-282
vimboss
parents: 856
diff changeset
196
2871
82cd9f1e8d6b updated for version 7.3.209
Bram Moolenaar <bram@vim.org>
parents: 2217
diff changeset
197 To set the environment execute the msvc2010.bat script. You can then build
1619
b9740fb41986 updated for version 7.2a
vimboss
parents: 1608
diff changeset
198 Vim with Make_mvc.mak.
1608
152883db0edf updated for version 7.1-321
vimboss
parents: 1569
diff changeset
199
152883db0edf updated for version 7.1-321
vimboss
parents: 1569
diff changeset
200
6149
4c845a1600d2 updated for version 7.4.412
Bram Moolenaar <bram@vim.org>
parents: 3847
diff changeset
201 Targeting Windows XP with new MSVC *new-msvc-windows-xp*
4c845a1600d2 updated for version 7.4.412
Bram Moolenaar <bram@vim.org>
parents: 3847
diff changeset
202 ----------------------------------
4c845a1600d2 updated for version 7.4.412
Bram Moolenaar <bram@vim.org>
parents: 3847
diff changeset
203
7553
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
204 Beginning with Visual C++ 2012, Microsoft changed the behavior of LINK.EXE
6149
4c845a1600d2 updated for version 7.4.412
Bram Moolenaar <bram@vim.org>
parents: 3847
diff changeset
205 so that it targets Windows 6.0 (Vista) by default. In order to override
4c845a1600d2 updated for version 7.4.412
Bram Moolenaar <bram@vim.org>
parents: 3847
diff changeset
206 this, the target Windows version number needs to be passed to LINK like
4c845a1600d2 updated for version 7.4.412
Bram Moolenaar <bram@vim.org>
parents: 3847
diff changeset
207 follows:
4c845a1600d2 updated for version 7.4.412
Bram Moolenaar <bram@vim.org>
parents: 3847
diff changeset
208 LINK ... /subsystem:console,5.01
4c845a1600d2 updated for version 7.4.412
Bram Moolenaar <bram@vim.org>
parents: 3847
diff changeset
209
4c845a1600d2 updated for version 7.4.412
Bram Moolenaar <bram@vim.org>
parents: 3847
diff changeset
210 Make_mvc.mak now supports a macro SUBSYSTEM_VER to pass the Windows version.
4c845a1600d2 updated for version 7.4.412
Bram Moolenaar <bram@vim.org>
parents: 3847
diff changeset
211 Use lines like follows to target Windows XP (assuming using Visual C++ 2012
4c845a1600d2 updated for version 7.4.412
Bram Moolenaar <bram@vim.org>
parents: 3847
diff changeset
212 under 64-bit Windows):
4c845a1600d2 updated for version 7.4.412
Bram Moolenaar <bram@vim.org>
parents: 3847
diff changeset
213 set WinSdk71=%ProgramFiles(x86)%\Microsoft SDKs\Windows\v7.1A
4c845a1600d2 updated for version 7.4.412
Bram Moolenaar <bram@vim.org>
parents: 3847
diff changeset
214 set SDK_INCLUDE_DIR=%WinSdk71%\Include
4c845a1600d2 updated for version 7.4.412
Bram Moolenaar <bram@vim.org>
parents: 3847
diff changeset
215 set INCLUDE=%WinSdk71%\Include;%INCLUDE%
4c845a1600d2 updated for version 7.4.412
Bram Moolenaar <bram@vim.org>
parents: 3847
diff changeset
216 set LIB=%WinSdk71%\Lib;%LIB%
4c845a1600d2 updated for version 7.4.412
Bram Moolenaar <bram@vim.org>
parents: 3847
diff changeset
217 set PATH=%WinSdk71%\Bin;%PATH%
4c845a1600d2 updated for version 7.4.412
Bram Moolenaar <bram@vim.org>
parents: 3847
diff changeset
218 set CL=/D_USING_V110_SDK71_
4c845a1600d2 updated for version 7.4.412
Bram Moolenaar <bram@vim.org>
parents: 3847
diff changeset
219 nmake -f Make_mvc.mak ... WINVER=0x0501 SUBSYSTEM_VER=5.01
4c845a1600d2 updated for version 7.4.412
Bram Moolenaar <bram@vim.org>
parents: 3847
diff changeset
220
4c845a1600d2 updated for version 7.4.412
Bram Moolenaar <bram@vim.org>
parents: 3847
diff changeset
221 The following Visual C++ team blog can serve as a reference page:
4c845a1600d2 updated for version 7.4.412
Bram Moolenaar <bram@vim.org>
parents: 3847
diff changeset
222 http://blogs.msdn.com/b/vcblog/archive/2012/10/08/windows-xp-targeting-with-c-in-visual-studio-2012.aspx
4c845a1600d2 updated for version 7.4.412
Bram Moolenaar <bram@vim.org>
parents: 3847
diff changeset
223
4c845a1600d2 updated for version 7.4.412
Bram Moolenaar <bram@vim.org>
parents: 3847
diff changeset
224
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
225 2. MinGW
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
226 ========
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
227
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
228 (written by Ron Aaron: <ronaharon@yahoo.com>)
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
229
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
230 This is about how to produce a Win32 binary of gvim with MinGW.
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
231
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
232 First, you need to get the 'mingw32' compiler, which is free for the download
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
233 at:
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
234
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
235 http://www.mingw.org/
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
236
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6149
diff changeset
237 or you can use 'MinGW-w64' compiler.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6149
diff changeset
238
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6149
diff changeset
239 http://mingw-w64.sourceforge.net/
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6149
diff changeset
240
7456
2c5e813e8852 commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents: 6326
diff changeset
241 Or a compiler provided on msys2:
2c5e813e8852 commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents: 6326
diff changeset
242
2c5e813e8852 commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents: 6326
diff changeset
243 https://msys2.github.io/
2c5e813e8852 commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents: 6326
diff changeset
244
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
245 Once you have downloaded the compiler binaries, unpack them on your hard disk
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
246 somewhere, and put them on your PATH. If you are on Win95/98 you can edit
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
247 your AUTOEXEC.BAT file with a line like:
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
248
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6149
diff changeset
249 set PATH=C:\MinGW\bin;%PATH%
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
250
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
251 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
252 System, Advanced, and edit the environment from there. If you use msys2
2c5e813e8852 commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents: 6326
diff changeset
253 compilers, set your installed paths:
2c5e813e8852 commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents: 6326
diff changeset
254
2c5e813e8852 commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents: 6326
diff changeset
255 C:\msys2\mingw32\bin
2c5e813e8852 commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents: 6326
diff changeset
256
2c5e813e8852 commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents: 6326
diff changeset
257 for 32bit. And 64bit:
2c5e813e8852 commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents: 6326
diff changeset
258
2c5e813e8852 commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents: 6326
diff changeset
259 C:\msys2\mingw64\bin
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
260
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
261 Test if gcc is on your path. From a CMD (or COMMAND on '95/98) window:
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
262
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
263 C:\> gcc --version
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6149
diff changeset
264 gcc (GCC) 4.8.1
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
265
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6149
diff changeset
266 C:\> mingw32-make --version
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6149
diff changeset
267 GNU Make 3.82.90 (...etc...)
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
268
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
269 Now you are ready to rock 'n' roll. Unpack the vim sources (look on
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
270 www.vim.org for exactly which version of the vim files you need).
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
271
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
272 Change directory to 'vim\src':
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
273
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
274 C:\> cd vim\src
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
275 C:\VIM\SRC>
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
276
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
277 and you type:
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
278
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6149
diff changeset
279 mingw32-make -f Make_ming.mak gvim.exe
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
280
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
281 After churning for a while, you will end up with 'gvim.exe' in the 'vim\src'
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
282 directory.
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
283
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
284 You should not need to do *any* editing of any files to get vim compiled this
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
285 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
286 is NOT recommended on Win32, especially on '95/'98!!!), you can use:
2035
ca7d02cd5e49 Minor text file updates.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
287
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6149
diff changeset
288 mingw32-make -f Make_ming.mak GUI=no vim.exe
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
289
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
290 If you are dismayed by how big the EXE is, I strongly recommend you get 'UPX'
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
291 (also free!) and compress the file (typical compression is 50%). UPX can be
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
292 found at
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
293 http://www.upx.org/
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
294
3388
981c7ad9dd48 updated for version 7.3.460
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
295 As of 2011, UPX still does not support compressing 64-bit EXE's; if you have
981c7ad9dd48 updated for version 7.3.460
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
296 built a 64-bit vim then an alternative to UPX is 'MPRESS'. MPRESS can be found
981c7ad9dd48 updated for version 7.3.460
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
297 at:
981c7ad9dd48 updated for version 7.3.460
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
298 http://www.matcode.com/mpress.htm
981c7ad9dd48 updated for version 7.3.460
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
299
981c7ad9dd48 updated for version 7.3.460
Bram Moolenaar <bram@vim.org>
parents: 2965
diff changeset
300
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
301 ADDITION: NLS support with MinGW
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
302
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
303 (by Eduardo F. Amatria <eferna1@platea.pntic.mec.es>)
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
304
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
305 If you want National Language Support, read the file src/po/README_mingw.txt.
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
306 You need to uncomment lines in Make_ming.mak to have NLS defined.
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
307
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
308
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
309 3. Cygwin
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
310 =========
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
311
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
312 Use Make_cyg.mak with Cygwin's GCC. See
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
313 http://users.skynet.be/antoine.mechelynck/vim/compile.htm
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
314
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6149
diff changeset
315 With Cygnus gcc you should use the Unix Makefile instead (you need to get the
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
316 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
317 running on Unix), while with Make_cyg.mak you get a Windows application (like
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
318 with the other makefiles).
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
319
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
320
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
321 4. Borland
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
322 ===========
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
323
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
324 Use Make_bc5.mak with Borland C++ 5.x. See
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
325 http://users.skynet.be/antoine.mechelynck/vim/compile.htm
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
326
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
327
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
328 5. Cross compiling for Win32 from a Linux machine
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
329 =================================================
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
330
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
331 [Update of 1) needs to be verified]
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
332
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
333 If you like, you can compile the 'mingw' Win32 version from the comfort of
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
334 your Linux (or other unix) box. To do this, you need to follow a few steps:
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
335 1) Install the mingw32 cross-compiler. See
2035
ca7d02cd5e49 Minor text file updates.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
336 http://www.mingw.org/wiki/LinuxCrossMinGW
856
8cd729851562 updated for version 7.0g
vimboss
parents: 838
diff changeset
337 http://www.libsdl.org/extras/win32/cross/README.txt
1619
b9740fb41986 updated for version 7.2a
vimboss
parents: 1608
diff changeset
338 2) Get and unpack both the Unix sources and the extra archive
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6149
diff changeset
339 3) in 'Make_cyg_ming.mak', set 'CROSS' to 'yes' instead of 'no'.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6149
diff changeset
340 Make further changes to 'Make_cyg_ming.mak' and 'Make_ming.mak' as you
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents: 6149
diff changeset
341 wish. If your cross-compiler prefix differs from the predefined value,
2035
ca7d02cd5e49 Minor text file updates.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
342 set 'CROSS_COMPILE' corresponding.
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
343 4) make -f Make_ming.mak gvim.exe
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
344
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
345 Now you have created the Windows binary from your Linux box! Have fun...
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
346
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
347
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
348 6. Building with Python support
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
349 ===============================
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
350
3847
1003f9b262d7 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3388
diff changeset
351 For building with MSVC 2008 the "Windows Installer" from www.python.org
1003f9b262d7 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3388
diff changeset
352 works fine.
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
353
7553
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
354 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
355
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
356 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
357 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
358 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
359
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
360 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
361
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
362 nmake -f Make_mvc.mak
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
363 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
364
3847
1003f9b262d7 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3388
diff changeset
365 (rest written by Ron Aaron: <ronaharon@yahoo.com>)
1003f9b262d7 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3388
diff changeset
366
1003f9b262d7 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3388
diff changeset
367 Building with the mingw32 compiler, and the ActiveState ActivePython:
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
368 http://www.ActiveState.com/Products/ActivePython/
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
369
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
370 After installing the ActivePython, you will have to create a 'mingw32'
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
371 'libpython20.a' to link with:
7456
2c5e813e8852 commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents: 6326
diff changeset
372 cd $PYTHON/libs
2c5e813e8852 commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents: 6326
diff changeset
373 pexports python20.dll > python20.def
2c5e813e8852 commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents: 6326
diff changeset
374 dlltool -d python20.def -l libpython20.a
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
375
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
376 Once that is done, edit the 'Make_ming.mak' so the PYTHON variable points to
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
377 the root of the Python installation (C:\Python20, for example). If you are
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
378 cross-compiling on Linux with the mingw32 setup, you need to also convert all
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
379 the 'Include' files to *unix* line-endings. This bash command will do it
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
380 easily:
7456
2c5e813e8852 commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents: 6326
diff changeset
381 for fil in *.h ; do vim -e -c 'set ff=unix|w|q' $fil
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
382
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
383 Now just do:
7456
2c5e813e8852 commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents: 6326
diff changeset
384 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
385
2c5e813e8852 commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents: 6326
diff changeset
386 And if you use msys2 to build python support (as one line):
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
387
7456
2c5e813e8852 commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents: 6326
diff changeset
388 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
389 PYTHON_HOME=c:/msys64/mingw64
2c5e813e8852 commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents: 6326
diff changeset
390 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
391 DYNAMIC_PYTHON=yes
2c5e813e8852 commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents: 6326
diff changeset
392 PYTHON_VER=27
2c5e813e8852 commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents: 6326
diff changeset
393 DYNAMIC_PYTHON_DLL=libpython2.7.dll
2c5e813e8852 commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents: 6326
diff changeset
394 ARCH=x86-64
2c5e813e8852 commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents: 6326
diff changeset
395 STATIC_STDCPLUS=yes
2c5e813e8852 commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents: 6326
diff changeset
396
2c5e813e8852 commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents: 6326
diff changeset
397 You will end up with a Python-enabled, Win32 version. Enjoy!
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
398
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
399
7553
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
400 7. Building with Python3 support
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
401 ================================
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
402
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
403 For building with MSVC 2008 the "Windows Installer" from www.python.org
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
404 works fine. Python 3.4 is recommended.
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
405
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
406 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
407
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
408 PYTHON3: Where Python3 is installed. E.g. C:\Python34
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
409 DYNAMIC_PYTHON3: 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
410 PYTHON3_VER: Python3 version. E.g. 34 for Python 3.4.X.
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
411
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
412 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
413
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
414 nmake -f Make_mvc.mak
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
415 PYTHON3=C:\Python34 DYNAMIC_PYTHON3=yes PYTHON3_VER=34
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
416
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
417
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
418 8. Building with MzScheme support
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
419 =================================
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
420
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
421 (written by Sergey Khorev <sergey.khorev@gmail.com>)
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
422
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
423 Vim with MzScheme (http://www.plt-scheme.org/software/mzscheme) support can
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
424 be built with either MSVC, or MinGW, or Cygwin. Supported versions are 205 and
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
425 above (including 299 and 30x series).
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
426
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
427 The MSVC build is quite straightforward. Simply invoke (in one line)
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
428 nmake -fMake_mvc.mak MZSCHEME=<Path-to-MzScheme>
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
429 [MZSCHEME_VER=<MzScheme-version>] [DYNAMIC_MZSCHEME=<yes or no>]
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
430 where <MzScheme-version> is the last seven characters from MzScheme dll name
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
431 (libmzschXXXXXXX.dll).
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
432 If DYNAMIC_MZSCHEME=yes, resulting executable will not depend on MzScheme
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
433 DLL's, but will load them in runtime on demand.
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
434
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
435 Building dynamic MzScheme support on MinGW and Cygwin is similar. Take into
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
436 account that <Path-to-MzScheme> should contain slashes rather than backslashes
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
437 (e.g. d:/Develop/MzScheme)
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
438
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
439 "Static" MzScheme support (Vim executable will depend on MzScheme DLLs
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
440 explicitly) on MinGW and Cygwin requires additional step.
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
441
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
442 libmzschXXXXXXX.dll and libmzgcXXXXXXX.dll should be copied from
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
443 %WINDOWS%\System32 to other location (either build directory, some temporary
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
444 dir or even MzScheme home).
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
445
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
446 Pass that path as MZSCHEME_DLLS parameter for Make. E.g.,
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
447 make -f Make_cyg.mak MZSCHEME=d:/Develop/MzScheme MZSCHEME_VER=209_000
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
448 MZSCHEME_DLLS=c:/Temp DYNAMIC_MZSCHEME=no
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
449
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
450 After a successful build, these dlls can be freely removed, leaving them in
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
451 %WINDOWS%\System32 only.
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
452
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
453
7553
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
454 9. Building with Lua support
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
455 ============================
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
456
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
457 Vim with Lua 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
458 You can use binaries from LuaBinaries.
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
459 http://luabinaries.sourceforge.net/
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
460
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
461 1) Download and install LuaBinaries
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
462 Go to the Download page of LuaBinaries:
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
463 http://luabinaries.sourceforge.net/download.html
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
464
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
465 Download lua-X.Y.Z_Win32_dllw4_lib.zip for x86 or
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
466 lua-X.Y.Z_Win64_dllw4_lib.zip for x64. You can use them for both MSVC and
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
467 MinGW.
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
468
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
469 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
470 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
471
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
472
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
473 2) Build
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
474 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
475
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
476 LUA: Where Lua is installed. E.g. C:\projects\lua53.
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
477 DYNAMIC_LUA: 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
478 LUA_VER: Lua version. E.g. 53 for Lua 5.3.X.
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
479
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
480 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
481
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
482 nmake -f Make_mvc.mak
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
483 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
484
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
485 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
486
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
487 mingw32-make -f Make_mingw.mak
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
488 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
489
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
490 Or when using Cygwin (as one line):
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
491
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
492 make -f Make_cyg.mak
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
493 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
494
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
495
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
496 10. Building with Perl support
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
497 ==============================
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
498
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
499 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
500 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
501
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
502 http://www.activestate.com/activeperl
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
503 http://strawberryperl.com/
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
504
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
505 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
506
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
507 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
508 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
509 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
510
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
511 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
512
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
513 nmake -f Make_mvc.mak
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
514 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
515
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
516 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
517
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
518 mingw32-make -f Make_mingw.mak
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
519 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
520
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
521
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
522 11. Building with Ruby support
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
523 ==============================
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
524
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
525 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
526 Ruby doesn't provide the official Windows binaries. The most widely used
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
527 Windows binaries might be RubyInstaller.
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
528
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
529 http://rubyinstaller.org/
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
530
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
531 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
532 you need some tricks described below.
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
533 (Another binary distribution is ActiveScriptRuby:
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
534 http://www.artonx.org/data/asr/)
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
535
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
536 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
537
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
538 RUBY: Where ruby is installed. E.g. C:\Ruby22
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
539 DYNAMIC_RUBY: 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
540 RUBY_VER: Ruby version. E.g. 22 for Ruby 2.2.X.
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
541 RUBY_VER_LONG: Ruby API version in a long format.
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
542 E.g. 2.2.0 for Ruby 2.2.X.
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
543
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
544 Ruby version vs. Ruby API version:
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
545
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
546 Ruby ver. | Ruby API ver.
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
547 =========================
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
548 1.8.X | 1.8
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
549 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
550 2.0.0 | 2.0.0
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
551 2.X.Y | 2.X.0
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
552
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
553 (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
554
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
555
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
556 A) Using MSVC
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
557
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
558 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
559 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
560 so normally you cannot use MSVC for building Vim if you want to link with
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
561 RubyInstaller. If you use a different complier, there are mainly two problems:
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
562 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
563
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
564 1) Download and Install RubyInstaller.
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
565 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
566 E.g.:
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
567 C:\Ruby22 (32-bit) or C:\Ruby22-x64 (64-bit)
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
568
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
569 Ruby 2.2.X is used in this example.
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
570
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
571 2) Download Ruby 2.2.X's source code and generate config.h:
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
572
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
573 cd C:\projects
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
574 git clone https://github.com/ruby/ruby.git -b ruby_2_2
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
575 cd ruby
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
576 win32\configure.bat
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
577 nmake .config.h.time
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
578
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
579 Note that ruby_2_2 is the branch name for Ruby 2.2.X's source code.
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
580 There is no need to build whole Ruby, just config.h is needed.
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
581 If you use 32-bit MSVC10, the config.h is generated in the
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
582 .ext\include\i386-mswin32_100 directory.
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
583
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
584 3) Install the generated config.h.
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
585
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
586 xcopy /s .ext\include C:\Ruby22\include\ruby-2.2.0
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
587
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
588 Note that 2.2.0 is Ruby API version of Ruby 2.2.X.
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
589
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
590 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
591
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
592 nmake -f Make_mvc.mak
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
593 RUBY=C:\Ruby22 DYNAMIC_RUBY=yes RUBY_VER=22 RUBY_VER_LONG=2.2.0
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
594 RUBY_MSVCRT_NAME=msvcrt
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
595 WINVER=0x500
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 WINVER must be set to >=0x500, when building with Ruby 2.1 or later.
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
598 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
599 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
600
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
601 B) Using MinGW
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
602
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
603 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
604 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
605
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
606 mingw32-make -f Make_ming.mak
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
607 RUBY=C:/Ruby22 DYNAMIC_RUBY=yes RUBY_VER=22 RUBY_VER_LONG=2.2.0
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
608 WINVER=0x500
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 WINVER must be set to >=0x500, when building with Ruby 2.1 or later.
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
611
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 12. Building with Tcl support
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
614 =============================
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 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
617 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
618
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
619 http://www.activestate.com/activetcl
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
620
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
621 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
622
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
623 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
624 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
625 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
626 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
627
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
628 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
629
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
630 nmake -f Make_mvc.mak
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
631 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
632
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
633 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
634
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
635 mingw32-make -f Make_mingw.mak
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
636 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
637
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 13. Windows 3.1x
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
640 ================
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
641
856
8cd729851562 updated for version 7.0g
vimboss
parents: 838
diff changeset
642 make -f Make_w16.mak 16 bit, Borland C++ 5.0
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
643
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
644 Warning: Be sure to use the right make.exe. It should be Borland make.
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
645
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
646 You will almost certainly have to change the paths for libs and include files
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
647 in the Makefile. Look for "D:\BC5" and "ctl3dv2". You will get a number of
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
648 warnings which can be ignored ( _chmod, precompiled header files, and
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
649 "possibly incorrect assignment").
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
650
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
651 The makefile should also work for BC++ 4.0 and 4.5, but may need tweaking to
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
652 remove unsupported compiler & liker options.
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
653
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
654 For making the Win32s version, you need Microsoft Visual C++ 4.1 OR EARLIER.
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
655 In MSVC 4.2 support for Win32s was dropped! Use this command:
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
656 nmake -f Make_mvc.mak GUI=yes
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
657
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
658
7553
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
659 14. MS-DOS
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
660 ==========
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
661
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
662 Summary:
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
663 ren Make_bc3.mak Makefile; make 16 bit, Borland C++ and Turbo C++
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 605
diff changeset
664 ren Make_tcc.mak Makefile; make 16 bit, Turbo C
856
8cd729851562 updated for version 7.0g
vimboss
parents: 838
diff changeset
665 make -f Make_djg.mak 32 bit, DJGPP 2.0
8cd729851562 updated for version 7.0g
vimboss
parents: 838
diff changeset
666 make -f Make_bc5.mak 32 bit, Borland C++ 5.x (edit it to
8cd729851562 updated for version 7.0g
vimboss
parents: 838
diff changeset
667 define DOS)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
668
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
669 Warning: Be sure to use the right make.exe. Microsoft C make doesn't work;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
670 Borland make only works with Make_bc3.mak, Make_bc5.mak and Make_tcc.mak;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
671 DJGPP/GNU make must be used for Make_djg.mak.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
672
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
673 The Borland C++ compiler has been used to generate the MS-DOS executable; it
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
674 should work without problems. You will probably have to change the paths for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
675 LIBPATH and INCLUDEPATH in the start of the Makefile. You will get two
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
676 warnings which can be ignored (one about _chmod and one about precompiled
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
677 header files).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
678
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
679 The "spawno" library by Ralf Brown was used in order to free memory when Vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
680 starts a shell or other external command. Only about 200 bytes are taken from
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
681 conventional memory. When recompiling get the spawno library from Simtel,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
682 directory "msdos/c". It is called something like "spwno413.zip". Or follow
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
683 the instructions in the Makefile to remove the library.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
684
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
685 The Turbo C Makefile has not been tested much lately. It is included for those
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
686 that don't have C++. You may need to make a few changes to get it to work.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
687
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
688 DJGPP needs to be installed properly to compile Vim; you need a lot of things
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
689 before it works. When your setup is OK, Vim should compile with just one
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
690 warning (about an argument to signal()).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
691
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
692 Make_bc5.mak is for those that have Borland C++ 5.0 or later. At the top of
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
693 the file, there are some variables you can change to make either a 32-bit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
694 Windows exe (GUI or console mode), or a 16-bit MS-DOS version.
39
410fa1a31baf updated for version 7.0023
vimboss
parents: 7
diff changeset
695 NOTE: multi-byte support is broken in the Borland libraries, not everything
410fa1a31baf updated for version 7.0023
vimboss
parents: 7
diff changeset
696 will work properly! Esp. handling multi-byte file names.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
697
2965
f2de38a019a2 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2951
diff changeset
698 If you get all kinds of strange error messages when compiling, try changing
f2de38a019a2 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2951
diff changeset
699 the file format from "unix" to "dos".
2951
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
700
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
701
7553
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
702 15. Installing after building from sources
2951
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
703 ==========================================
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
704
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
705 [provided by Michael Soyka]
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
706
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
707 After you've built the Vim binaries as described above, you're ready to
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
708 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
709 using Git, Mercurial or by downloading them as a unix tar file, you must
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
710 first create a "vim74" directory. If you instead downloaded the sources as
2951
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
711 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
712 correct directory structure.
2951
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
713
7553
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
714 A. Create a Vim "runtime" subdirectory named "vim74"
2951
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
715 -----------------------------------------------------
7456
2c5e813e8852 commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents: 6326
diff changeset
716 If you obtained your Vim sources as zip files, you can skip this step.
2951
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
717 Otherwise, continue reading.
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
718
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
719 Go to the directory that contains the Vim "src" and "runtime"
7553
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
720 directories and create a new subdirectory named "vim74".
7456
2c5e813e8852 commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents: 6326
diff changeset
721
7553
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
722 Copy the "runtime" files into "vim74":
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
723 copy runtime\* vim74
2951
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
724
7553
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
725 B. Copy the new binaries into the "vim74" directory
2951
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
726 ----------------------------------------------------
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
727 Regardless of how you installed the Vim sources, you need to copy the
7553
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
728 new binaries you created above into "vim74":
2951
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
729
7553
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
730 copy src\*.exe vim74
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
731 copy src\GvimExt\gvimext.dll vim74
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
732 copy src\xxd\xxd.exe vim74
2951
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
733
7553
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
734 C. Move the "vim74" directory into the Vim installation subdirectory
2951
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
735 ---------------------------------------------------------------------
7553
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
736 Move the "vim74" 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
737 to be installed. Typically, this subdirectory will be named "vim".
7553
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
738 If you already have a "vim74" 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
739 by running its uninstal.exe program.
2951
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
740
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
741 D. Install Vim
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
742 ---------------
7553
f0205ac9818f commit https://github.com/vim/vim/commit/30a89473ee64a276215a55e7fa99e008945022df
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
743 "cd" to your Vim installation subdirectory "vim\vim74" and run the
2951
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
744 "install.exe" program. It will ask you a number of questions about
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
745 how you would like to have your Vim setup. Among these are:
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
746 - You can tell it to write a "_vimrc" file with your preferences in the
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
747 parent directory.
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
748 - It can also install an "Edit with Vim" entry in the Windows Explorer
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
749 popup menu.
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
750 - You can have it create batch files, so that you can run Vim from the
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
751 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
752 PATH or add the directory to PATH using the Windows Control Panel.
2951
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
753 - Create entries for Vim on the desktop and in the Start menu.
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
754
57a7998e0fa8 updated for version 7.3.248
Bram Moolenaar <bram@vim.org>
parents: 2871
diff changeset
755 Happy Vimming!