问题描述
在安装带有quicklisp的草图时,我无法解决由于缺少SDL DLL和FFI.H文件而导致的错误.针对该Windows 10特定的问题发布我的解决方案,也许还有其他解决方案.
I had trouble getting through errors for missing SDL DLL's and an FFI.H file while installing sketch with quicklisp. Posting my solution for this Windows 10 specific trouble, maybe there are other solutions too.
我最终在我的mingw64环境中使用Chocolatey和Cmder.
I ended up using Chocolatey and Cmder for my mingw64 environment.
推荐答案
最初完成技巧设置后,MSYS2是一个非常干净的构建环境.我已经切换到此方法,并避免了到处复制dll的麻烦方法:
After the initially trick setup, MSYS2 is an amazingly clean build environment. I have switched over to this method and avoided the messy approach of copying dll's all over the place:
- 确保并卸载想要在MSYS中使用的python,make,git和其他元素. MSYS可与Windows程序一起使用,但是会安装linux工具链,并且无法设置SDL2之类的程序来编译软件.
-
choco install cmdermini
而不是完整cmder.这将确保与可执行的bash命令没有冲突.常规CMDER为Windows安装git以及与MSYS可执行文件冲突的其他内容.
- 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.
更新路径以包括:
-
在conmumu设置中为msys2进行任务.这就是我选择的解决方法,有很多方法可以做到这一点,还有更多方法可以解决问题:
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:
设置CHERE_INVOKING = 1&设置MSYSTEM = MINGW64&设置MSYS2_PATH_TYPE =继承& C:\ tools \ msys64 \ usr \ bin \ sh.exe --login -i -new_console:d:"C:\":C:"C:\ tools \ msys64 \ msys2.ico"
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:\":C:"C:\tools\msys64\msys2.ico"
MSYS2_PATH_TYPE=inherit
在这里很关键,它允许MSYS2访问系统PATH中的所有可执行文件.但是,如果您通过pacman和其他类似Chocolatey的地方安装了重复程序,则可能会导致问题.我卸载了所有bash/gnu/unix Windows程序和命令,现在仅使用从MSYS2安装的内容.
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.
除了ZSH内容之外,请使用所有您喜欢的内容.好东西在这里: https://medium.com/@borekb/zsh-via-msys2-on-windows-3964a943b1ce
这篇关于在Windows 10中安装Common Lisp Sketch时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!