comparison src/INSTALLpc.txt @ 7609:77a14f3bc18b v7.4.1104

commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 16 16:20:38 2016 +0100 patch 7.4.1104 Problem: Various problems building with MzScheme/Racket. Solution: Make it work with new versions of Racket. (Yukihiro Nakadaira, Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Sat, 16 Jan 2016 16:30:04 +0100
parents f0205ac9818f
children 792bc43e69a7
comparison
equal deleted inserted replaced
7608:161471eae904 7609:77a14f3bc18b
22 3. Cygwin 22 3. Cygwin
23 4. Borland 23 4. Borland
24 5. Cross compiling for Win32 from a Linux machine 24 5. Cross compiling for Win32 from a Linux machine
25 6. Building with Python support 25 6. Building with Python support
26 7. Building with Python3 support 26 7. Building with Python3 support
27 8. Building with MzScheme support 27 8. Building with MzScheme/Racket support
28 9. Building with Lua support 28 9. Building with Lua support
29 10. Building with Perl support 29 10. Building with Perl support
30 11. Building with Ruby support 30 11. Building with Ruby support
31 12. Building with Tcl support 31 12. Building with Tcl support
32 13. Windows 3.1 32 13. Windows 3.1
413 413
414 nmake -f Make_mvc.mak 414 nmake -f Make_mvc.mak
415 PYTHON3=C:\Python34 DYNAMIC_PYTHON3=yes PYTHON3_VER=34 415 PYTHON3=C:\Python34 DYNAMIC_PYTHON3=yes PYTHON3_VER=34
416 416
417 417
418 8. Building with MzScheme support 418 8. Building with MzScheme/Racket support
419 ================================= 419 ========================================
420
421 1) Building with MzScheme support
420 422
421 (written by Sergey Khorev <sergey.khorev@gmail.com>) 423 (written by Sergey Khorev <sergey.khorev@gmail.com>)
422 424
423 Vim with MzScheme (http://www.plt-scheme.org/software/mzscheme) support can 425 Vim with MzScheme (http://www.plt-scheme.org/software/mzscheme) support can
424 be built with either MSVC, or MinGW, or Cygwin. Supported versions are 205 and 426 be built with either MSVC, or MinGW, or Cygwin. Supported versions are 205 and
449 451
450 After a successful build, these dlls can be freely removed, leaving them in 452 After a successful build, these dlls can be freely removed, leaving them in
451 %WINDOWS%\System32 only. 453 %WINDOWS%\System32 only.
452 454
453 455
456 2) Building with Racket support
457
458 MzScheme and PLT Scheme names have been rebranded as Racket. Vim with Racket
459 (https://racket-lang.org/) support can be built with either MSVC or MinGW (or
460 Cygwin).
461
462 You need to set the following variables:
463
464 MZSCHEME: Where Racket is installed.
465 E.g. C:\Program Files (x86)\Racket
466 DYNAMIC_MZSCHEME: Whether dynamic linking is used. Usually, set to yes.
467 MZSCHEME_VER: Racket DLL version. E.g. 3m_9z0ds0 for Racket 6.3.
468 MZSCHEME_COLLECTS: (Optional) Path of the collects directory used at
469 runtime. Default: $(MZSCHEME)\collects
470 User can override this with the PLTCOLLECTS environment
471 variable.
472
473 E.g. When using MSVC (as one line):
474
475 nmake -f Make_mvc.mak
476 MZSCHEME="C:\Program Files (x86)\Racket" DYNAMIC_MZSCHEME=yes
477 MZSCHEME_VER=3m_9z0ds0
478
479 Or when using MinGW (as one line):
480
481 mingw32-make -f Make_ming.mak
482 MZSCHEME='C:/Program\ Files\ (x86)/Racket' DYNAMIC_MZSCHEME=yes
483 MZSCHEME_VER=3m_9z0ds0
484
485 Spaces should be escaped with '\'.
486
487
454 9. Building with Lua support 488 9. Building with Lua support
455 ============================ 489 ============================
456 490
457 Vim with Lua support can be built with either MSVC or MinGW (or Cygwin). 491 Vim with Lua support can be built with either MSVC or MinGW (or maybe Cygwin).
458 You can use binaries from LuaBinaries. 492 You can use binaries from LuaBinaries: http://luabinaries.sourceforge.net/
459 http://luabinaries.sourceforge.net/ 493 This also applies to when you get a Vim executable and don't build yourself,
494 do the part up to "Build".
460 495
461 1) Download and install LuaBinaries 496 1) Download and install LuaBinaries
497
462 Go to the Download page of LuaBinaries: 498 Go to the Download page of LuaBinaries:
463 http://luabinaries.sourceforge.net/download.html 499 http://luabinaries.sourceforge.net/download.html
464 500
465 Download lua-X.Y.Z_Win32_dllw4_lib.zip for x86 or 501 Download lua-X.Y.Z_Win32_dllw4_lib.zip for x86 or
466 lua-X.Y.Z_Win64_dllw4_lib.zip for x64. You can use them for both MSVC and 502 lua-X.Y.Z_Win64_dllw4_lib.zip for x64. You can use them both for MSVC and
467 MinGW. 503 MinGW.
468 504
469 Unpack it to a working directory. E.g. C:\projects\lua53. 505 Unpack it to a working directory. E.g. C:\projects\lua53.
470 Lua's header files will be installed under the include directory. 506 Lua's header files will be installed under the include directory.
471 507
508 Copy luaXY.dll to your Windows system directory. The system directory depends
509 on your Windows bitness and Vim bitness:
510 32-bit Vim on 32-bit Windows: C:\Windows\System32
511 32-bit Vim on 64-bit Windows: C:\Windows\SysWOW64
512 64-bit Vim on 64-bit Windows: C:\Windows\System32
513
514 Or another option is copying luaXY.dll to the directory where gvim.exe
515 (or vim.exe) is.
516
472 517
473 2) Build 518 2) Build
474 You need to set the following variables: 519
475 520 You need to set LUA, DYNAMIC_LUA and LUA_VER.
476 LUA: Where Lua is installed. E.g. C:\projects\lua53. 521
477 DYNAMIC_LUA: Whether dynamic linking is used. Usually, set to yes. 522 LUA: Where Lua's header files are installed. E.g. C:\projects\lua53.
478 LUA_VER: Lua version. E.g. 53 for Lua 5.3.X. 523 DYNAMIC_LUA: Whether dynamic linking is used. Set to yes.
524 LUA_VER: Lua version. E.g. 53 for Lua 5.3.X.
479 525
480 E.g. When using MSVC (as one line): 526 E.g. When using MSVC (as one line):
481 527
482 nmake -f Make_mvc.mak 528 nmake -f Make_mvc.mak
483 LUA=C:\projects\lua53 DYNAMIC_LUA=yes LUA_VER=53 529 LUA=C:\projects\lua53 DYNAMIC_LUA=yes LUA_VER=53
485 Or when using MinGW (as one line): 531 Or when using MinGW (as one line):
486 532
487 mingw32-make -f Make_mingw.mak 533 mingw32-make -f Make_mingw.mak
488 LUA=C:\projects\lua53 DYNAMIC_LUA=yes LUA_VER=53 534 LUA=C:\projects\lua53 DYNAMIC_LUA=yes LUA_VER=53
489 535
490 Or when using Cygwin (as one line): 536
537 Or when using Cygwin (as one line) (untested):
491 538
492 make -f Make_cyg.mak 539 make -f Make_cyg.mak
493 LUA=/cygdrive/c/projects/lua53 DYNAMIC_LUA=yes LUA_VER=53 540 LUA=/cygdrive/c/projects/lua53 DYNAMIC_LUA=yes LUA_VER=53
494 541
495 542