Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Cmake 克莱恩和明格_Cmake_Mingw_Clion - Fatal编程技术网

Cmake 克莱恩和明格

Cmake 克莱恩和明格,cmake,mingw,clion,Cmake,Mingw,Clion,我想尝试学习如何使用C语言。因此,我下载了CLion和MinGW作为工具链。当尝试安装编译器时,它会显示“test CMake run finished with errors”。 有人有过这个问题吗?我该怎么办?(在问题的最后——当我点击“更多”时,当它显示“错误”时,会写什么)。 或者,如果你知道为了使用C语言我还需要下载其他程序,我很乐意听你这么说。 提前谢谢 单击“更多”时会显示: 您只需要一个文本编辑器和一个。或者,也可以使用在线编译器,例如yeah I know I need a c

我想尝试学习如何使用C语言。因此,我下载了CLion和MinGW作为工具链。当尝试安装编译器时,它会显示“test CMake run finished with errors”。 有人有过这个问题吗?我该怎么办?(在问题的最后——当我点击“更多”时,当它显示“错误”时,会写什么)。 或者,如果你知道为了使用C语言我还需要下载其他程序,我很乐意听你这么说。 提前谢谢

单击“更多”时会显示:


您只需要一个文本编辑器和一个。或者,也可以使用在线编译器,例如yeah I know I need a c compiler,但我不知道为什么它不适合我……您是否尝试将项目移动到其他不包含异常符号(如非英语字母)的目录中?是否可以尝试从windows cmd:
c:/Program Files(x86)运行此命令/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/gcc.exe——版本
?如果它工作正常,我们会知道更多最简单的方法可能是在windows PC上的VM上安装Linux(Ubuntu?)。。。然后在那里安装你想要的任何东西。。。
-- The C compiler identification is GNU 8.1.0
-- The CXX compiler identification is GNU 8.1.0
-- Check for working C compiler: C:/Program Files (x86)/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/gcc.exe
-- Check for working C compiler: C:/Program Files (x86)/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/gcc.exe -- broken
CMake Error at C:/Program Files/JetBrains/CLion 2019.3.5/bin/cmake/win/share/cmake-3.15/Modules/CMakeTestCCompiler.cmake:60 (message):
  The C compiler

    "C:/Program Files (x86)/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/gcc.exe"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: C:/Users/׳ ׳•׳¢׳�/AppData/Local/Temp/cmake_check_environment/_build13533773436764788547/CMakeFiles/CMakeTmp

    Run Build Command(s):C:/PROGRA~2/MINGW-~1/I686-8~1.0-P/mingw32/bin/mingw32-make.exe cmTC_e4849/fast && C:/PROGRA~2/MINGW-~1/I686-8~1.0-P/mingw32/bin/mingw32-make.exe -f CMakeFiles\cmTC_e4849.dir\build.make CMakeFiles/cmTC_e4849.dir/build
    mingw32-make.exe[1]: Entering directory 'C:/Users/ג‰¡ֿƒג‰¥ֿ†/AppData/Local/Temp/cmake_check_environment/_build13533773436764788547/CMakeFiles/CMakeTmp'
    Building C object CMakeFiles/cmTC_e4849.dir/testCCompiler.c.obj
    C:\PROGRA~2\MINGW-~1\I686-8~1.0-P\mingw32\bin\gcc.exe    -o CMakeFiles\cmTC_e4849.dir\testCCompiler.c.obj   -c C:\Users\ג•«ֳ¡ג•«׳¥ג•«ֳ³ג•«ֲ¥\AppData\Local\Temp\cmake_check_environment\_build13533773436764788547\CMakeFiles\CMakeTmp\testCCompiler.c
    gcc.exe: error: C:\Users\ג•«ֳ¡ג•«׳¥ג•«ֳ³ג•«ֲ¥\AppData\Local\Temp\cmake_check_environment\_build13533773436764788547\CMakeFiles\CMakeTmp\testCCompiler.c: No such file or directory
    gcc.exe: fatal error: no input files
    compilation terminated.
    mingw32-make.exe[1]: *** [CMakeFiles\cmTC_e4849.dir\build.make:65: CMakeFiles/cmTC_e4849.dir/testCCompiler.c.obj] Error 1
    mingw32-make.exe[1]: Leaving directory 'C:/Users/ג‰¡ֿƒג‰¥ֿ†/AppData/Local/Temp/cmake_check_environment/_build13533773436764788547/CMakeFiles/CMakeTmp'
    mingw32-make.exe: *** [Makefile:120: cmTC_e4849/fast] Error 2

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:1 (project)

-- Configuring incomplete, errors occurred!
See also "C:/Users/׳ ׳•׳¢׳�/AppData/Local/Temp/cmake_check_environment/_build13533773436764788547/CMakeFiles/CMakeOutput.log".
See also "C:/Users/׳ ׳•׳¢׳�/AppData/Local/Temp/cmake_check_environment/_build13533773436764788547/CMakeFiles/CMakeError.log".

Error code: 1