@@ -232,14 +232,25 @@ or you can use 'MinGW-w64' compiler.
232232
233233 http://mingw-w64.sourceforge.net/
234234
235+ Or a compiler provided on msys2:
236+
237+ https://msys2.github.io/
238+
235239Once you have downloaded the compiler binaries, unpack them on your hard disk
236240somewhere, and put them on your PATH. If you are on Win95/98 you can edit
237241your AUTOEXEC.BAT file with a line like:
238242
239243 set PATH=C:\MinGW\bin;%PATH%
240244
241245or on NT/2000/XP, go to the Control Panel, (Performance and Maintenance),
242- System, Advanced, and edit the environment from there.
246+ System, Advanced, and edit the environment from there. If you use msys2
247+ compilers, set your installed paths:
248+
249+ C:\msys2\mingw32\bin
250+
251+ for 32bit. And 64bit:
252+
253+ C:\msys2\mingw64\bin
243254
244255Test if gcc is on your path. From a CMD (or COMMAND on '95/98) window:
245256
@@ -341,21 +352,32 @@ Building with the mingw32 compiler, and the ActiveState ActivePython:
341352
342353After installing the ActivePython, you will have to create a 'mingw32'
343354'libpython20.a' to link with:
344- cd $PYTHON/libs
345- pexports python20.dll > python20.def
346- dlltool -d python20.def -l libpython20.a
355+ cd $PYTHON/libs
356+ pexports python20.dll > python20.def
357+ dlltool -d python20.def -l libpython20.a
347358
348359Once that is done, edit the 'Make_ming.mak' so the PYTHON variable points to
349360the root of the Python installation (C:\Python20, for example). If you are
350361cross-compiling on Linux with the mingw32 setup, you need to also convert all
351362the 'Include' files to *unix* line-endings. This bash command will do it
352363easily:
353- for fil in *.h ; do vim -e -c 'set ff=unix|w|q' $fil
364+ for fil in *.h ; do vim -e -c 'set ff=unix|w|q' $fil
354365
355366Now just do:
356- make -f Make_ming.mak gvim.exe
367+ make -f Make_ming.mak gvim.exe
368+
369+ And if you use msys2 to build python support (as one line):
357370
358- and you will end up with a Python-enabled, Win32 version. Enjoy!
371+ mingw32-make -f Make_ming.mak PYTHON=c:/msys64/mingw64
372+ PYTHON_HOME=c:/msys64/mingw64
373+ PYTHONINC=-Ic:/msys64/mingw64/include/python2.7
374+ DYNAMIC_PYTHON=yes
375+ PYTHON_VER=27
376+ DYNAMIC_PYTHON_DLL=libpython2.7.dll
377+ ARCH=x86-64
378+ STATIC_STDCPLUS=yes
379+
380+ You will end up with a Python-enabled, Win32 version. Enjoy!
359381
360382
3613837. Building with MzScheme support
@@ -464,19 +486,19 @@ the file format from "unix" to "dos".
464486
465487After you've built the Vim binaries as described above, you're ready to
466488install Vim on your system. However, if you've obtained the Vim sources
467- using Mercurial or by downloading them as a unix tar file, you must first
489+ using Mercurial or by downloading them as a unix tar file, you must first
468490create a "vim73" directory. If you instead downloaded the sources as
469491zip files, you can skip this setup as the zip archives already have the
470- correct directory structure.
492+ correct directory structure.
471493
472494 A. Create a Vim "runtime" subdirectory named "vim73"
473495 -----------------------------------------------------
474- If you obtained your Vim sources as zip files, you can skip this step.
496+ If you obtained your Vim sources as zip files, you can skip this step.
475497 Otherwise, continue reading.
476498
477499 Go to the directory that contains the Vim "src" and "runtime"
478- directories and create a new subdirectory named "vim73".
479-
500+ directories and create a new subdirectory named "vim73".
501+
480502 Copy the "runtime" files into "vim73":
481503 copy runtime\* vim73
482504
@@ -492,9 +514,9 @@ correct directory structure.
492514 C. Move the "vim73" directory into the Vim installation subdirectory
493515 ---------------------------------------------------------------------
494516 Move the "vim73" subdirectory into the subdirectory where you want Vim
495- to be installed. Typically, this subdirectory will be named "vim".
517+ to be installed. Typically, this subdirectory will be named "vim".
496518 If you already have a "vim73" subdirectory in "vim", delete it first
497- by running its uninstal.exe program.
519+ by running its uninstal.exe program.
498520
499521 D. Install Vim
500522 ---------------
@@ -507,7 +529,7 @@ correct directory structure.
507529 popup menu.
508530 - You can have it create batch files, so that you can run Vim from the
509531 console or in a shell. You can select one of the directories in your
510- PATH or add the directory to PATH using the Windows Control Panel.
532+ PATH or add the directory to PATH using the Windows Control Panel.
511533 - Create entries for Vim on the desktop and in the Start menu.
512534
513535Happy Vimming!
0 commit comments