Skip to content

Installing on Windows 10 & SBCL using Cmder installed with Chocolatey & x64

originalsurfmex edited this page Nov 14, 2018 · 6 revisions

After the initially trick setup, MSYS2 is an amazingly clean build environment.

I have switched over to this method and voided the messy approach of copying dll's all over the place:

  1. 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.

  2. 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.

  3. Update Path to include:

enter image description here

  1. 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"

  2. 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.

  3. Use pacboy with the :x to quickly install x64 packages

  4. pacboy -S emacs:x toolchain:x SDL2:x SDL2_gfx:x SDL2_image:x SDL2_ttf:x libffi:x

  5. 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

  6. Read this for reference: https://zyzyz.github.io/en/2017/10/Integrate-MSYS2-into-Cmder/




This is the other option for using full Cmder and not MSYS2:

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/

example of dlls in folder

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:

example and path of ffi folders into mingw64

Clone this wiki locally