-
Notifications
You must be signed in to change notification settings - Fork 66
Installing on Windows 10 & SBCL using Cmder installed with Chocolatey & x64
I have switched over to this method and voided the messy approach of copying dll's all over the place:
-
Make sure and uninstall python, make, git and other elements that you'd rather have in MSYS anyway. MSYS works with windows programs but installs a linux toolchain and impossible to setup programs like SDL2 for compiling software.
-
choco install cmdermini
instead of full cmder. This will ensure that there no conflicts with executable bash commands. The regular CMDER installs git for windows and additional stuff that will conflict with MSYS exectuables. -
Update Path to include:
-
Make a task for msys2 in conemu settings. This is the way I settled on it, there are lots of ways to do this right and more ways to mess things up:
set CHERE_INVOKING=1 & set MSYSTEM=MINGW64 & set MSYS2_PATH_TYPE=inherit & C:\tools\msys64\usr\bin\sh.exe --login -i -new_console:d:"C:<type your startup directory here>":C:"C:\tools\msys64\msys2.ico"
-
The
MSYS2_PATH_TYPE=inherit
is the critical piece here that allows MSYS2 to access all the executables in the system PATH. This can cause issues though if you've installed duplicate programs via pacman and from somewhere else like chocolatey. I uninstalled all bash/gnu/unix windows programs and commands and now only use what I install from MSYS2. -
Use pacboy with the :x to quickly install x64 packages
-
pacboy -S emacs:x toolchain:x SDL2:x SDL2_gfx:x SDL2_image:x SDL2_ttf:x libffi:x
-
Go through all of this aside from the ZSH stuff, use what you like. Good stuff here:https://medium.com/@borekb/zsh-via-msys2-on-windows-3964a943b1ce
-
Read this for reference: https://zyzyz.github.io/en/2017/10/Integrate-MSYS2-into-Cmder/
1. Install Cmder using Chocolatey: https://chocolatey.org/packages/Cmder
2. Download and copy all the SDL, SDL_image and SDL_ttf DLL's to SBCL's .exe folder:
a. https://www.libsdl.org/download-2.0.php
b. https://www.libsdl.org/projects/SDL_image/
c. https://www.libsdl.org/projects/SDL_ttf/
4. Download and copy the precompiled libffi folders include and .libs to the mingw64:
a. Download the precompiled from here:
i. https://proj.goldencode.com/projects/p2j/wiki/Building_and_Installing_libffi_on_Windows
b. Copy the include and .libs folder here: