Sep*_*mus 36 windows mingw cmake clion
目前正在尝试使用MinGW在Windows上设置我的C开发环境,看起来CMAKE给了我以下错误:
sh.exe was found in your PATH, here:
C:/Program Files/Git/user/bin/sh.exe
For MinGW make to work correctly sh.exe must NOT be in your path.
Run cmake from a shill that does not have sh.exe in your PATH.
If you want to use a UNIX shell, then use MSYS Makefiles
Run Code Online (Sandbox Code Playgroud)
该错误正在CLION IDE中抛出.我不确定我是否需要更改CLion内部的设置或者什么.我查看了我的Windows路径,但没有看到任何对sh.exe的引用.
我的路径如下:
C:\Program Files (x86)\Razer Chroma SDK\bin;C:\Program Files\Razer Chroma SDK\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Nodist\bin;C:\Users\wesle\AppData\Local\Microsoft\WindowsApps;
Run Code Online (Sandbox Code Playgroud)
Eli*_*lia 65
对我来说,传递给cmake的这个简单参数已经奏效了-DCMAKE_SH="CMAKE_SH-NOTFOUND".
检查你真的没有sh.exe在你PATH打开一个Windows命令行和打字where sh.exe.如果您的路径中有此文件,该命令将返回其路径(然后您应该将其从您的路径中删除PATH)否则,如果找不到Windows,请尝试清理项目文件夹中某处的文件夹CMakeFiles和文件名CMakeCache.txt.