Patch 8.1.0128
Problem:Building with MinGW does not work out-of-the-box.
Solution: Add instructions for MSYS2. Set default WINVER. Add batch files
to set $PATH for MSYS2.
Files: src/Make_cyg_ming.mak, src/INSTALLpc.txt, src/msys32.bat,
src/msys64.bat, Filelist
*** ../vim-8.1.0127/src/Make_cyg_ming.mak 2018-06-19 18:58:04.006489842
+0200
--- src/Make_cyg_ming.mak 2018-06-30 15:56:42.425768825 +0200
***
*** 75,83
# Set to yes to enable OLE support.
OLE=no
! # Set the default $(WINVER) to make it work with WinXP.
ifndef WINVER
! WINVER = 0x0501
endif
# Set to yes to enable Cscope support.
--- 75,84
# Set to yes to enable OLE support.
OLE=no
! # Set the default $(WINVER). Use 0x0501 to make it work with WinXP.
ifndef WINVER
! # WINVER = 0x0501
! WINVER = 0x0600
endif
# Set to yes to enable Cscope support.
*** ../vim-8.1.0127/src/INSTALLpc.txt 2017-12-14 13:07:27.0 +0100
--- src/INSTALLpc.txt 2018-06-30 16:08:36.949674031 +0200
***
*** 22,44
Contents:
1. Microsoft Visual C++
! 2. Using MinGW
! 3. Cygwin
! 4. Borland
! 5. Cross compiling for Win32 from a Linux machine
! 6. Building with Python support
! 7. Building with Python3 support
! 8. Building with Racket or MzScheme support
! 9. Building with Lua support
! 10. Building with Perl support
! 11. Building with Ruby support
! 12. Building with Tcl support
! 13. Building with Terminal support
! 14. Building with DirectX (DirectWrite) support
! 15. Windows 3.1
! 16. MS-DOS
! 17. Installing after building from sources
The currently recommended way (that means it has been verified to work) is
--- 22,45
Contents:
1. Microsoft Visual C++
! 2. Using MSYS2 with MinGW
! 3. Using MinGW
! 4. Cygwin
! 5. Borland
! 6. Cross compiling for Win32 from a Linux machine
! 7. Building with Python support
! 8. Building with Python3 support
! 9. Building with Racket or MzScheme support
! 10. Building with Lua support
! 11. Building with Perl support
! 12. Building with Ruby support
! 13. Building with Tcl support
! 14. Building with Terminal support
! 15. Building with DirectX (DirectWrite) support
! 16. Windows 3.1
! 17. MS-DOS
! 18. Installing after building from sources
The currently recommended way (that means it has been verified to work) is
***
*** 261,268
http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/default.aspx
! 2. MinGW
(written by Ron Aaron: )
--- 262,348
http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/default.aspx
+ 2. MSYS2 with MinGW
+ ===
! 2.1. Setup the basic msys2 environment
!
! Go to the official page of MSYS2: https://www.msys2.org
! Download an installer:
!
! * msys2-x86_64-MMDD.exe for 64-bit Windows
! (Even if you want to build 32-bit Vim)
! * msys2-i686-MMDD.exe for 32-bit Windows
!
! Execute the installer and follow the instructions to update basic packages.
! At the end keep the checkbox checked to run msys2 now. If needed, you can
! open the window from the start menu, MSYS2 64 bit / MSYS2 MSYS
!
! Execute:
! $ pacman -Syu
!
! And restart MSYS2 window (select "MSYS2 MSYS" icon from the Start Menu).
! Then execute:
! $ pacman -Su
!
! If pacman complains that `catgets` and `libcatgets` conflict with another
! package, select `y` to remove them.
!
!
! 2.2. Install additional packages for building Vim
!
! The following package groups are required for building Vim:
!
! * base-devel
! * mingw-w64-i686-toolchain (for building 32-bit Vim)
! * mingw-w64-x86_64-toolchain (for building 64-bit Vim)
!
! Use the following command to install them:
!
! $ pacman -S base-devel mingw-w64-i686-toolchain mingw-w64-x86_64-toolchain
!
! Or you can use the `pacboy` command to avoid long package names:
!
! $ pacboy -S base-devel: toolchain:m
!
! (See `pacboy help` for the help.)
!
!
! 2.3. Keep the build environment up-to-date
!
! After you have installed the build environment, you may want to keep it
! up-to-date (E.g. always use the latest GCC).
! In that case, you just need to execute the command:
! $ pacman -Syu
!
!
! # Build Vim
!
! Select one of the following icon from the Start Menu:
!
! * MSYS2 MinGW 32-bit (To build 32-bit versions of Vim)
! * MSYS2 MinGW 64-bit (To build 64-bit versions of Vim)
!
! Go to the source directory of Vim, then execute the make command. E.g.:
!
! make -f Make_ming.mak
! make -f Make_ming.mak GUI=no
! make -f Make_ming.mak GUI=no DEBUG=yes
!
! NOTE: you can't execute the vim.exe in the MSYS console, open a normal Windows
! console for that. You need to set $PATH to be able to build there, e.g.:
!
! set PATH=c:\msys64\mingw32\bin;c:\msys64\usr\bin;%PATH%
!
! This command is in msys32.bat. Or or the 64 bit compiler use msys64.bat:
!
! set PATH=c:\msys64\mingw64\bin