1

我正在尝试使用 CMake 和 MinGw 在我的 Windows 64 位系统中构建流体合成器 2.1.1,但遇到以下错误:

The C compiler identification is unknown
Check for working C compiler: C:/Program Files (x86)/CodeBlocks/MinGW/bin/gcc.exe
Check for working C compiler: C:/Program Files (x86)/CodeBlocks/MinGW/bin/gcc.exe - broken
CMake Error at C:/Program Files/CMake/share/cmake-3.17/Modules/CMakeTestCCompiler.cmake:60 (message):
  The C compiler

    "C:/Program Files (x86)/CodeBlocks/MinGW/bin/gcc.exe"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: C:/fluidsynth-2.1.1/build/CMakeFiles/CMakeTmp

    Run Build Command(s):C:/PROGRA~2/CODEBL~1/MinGW/bin/mingw32-make.exe cmTC_b4b73/fast && C:/PROGRA~2/CODEBL~1/MinGW/bin/mingw32-make.exe  -f CMakeFiles\cmTC_b4b73.dir\build.make CMakeFiles/cmTC_b4b73.dir/build

    mingw32-make.exe[1]: Entering directory 'C:/fluidsynth-2.1.1/build/CMakeFiles/CMakeTmp'

    Building C object CMakeFiles/cmTC_b4b73.dir/testCCompiler.c.obj

    C:\PROGRA~2\CODEBL~1\MinGW\bin\gcc.exe    -o CMakeFiles\cmTC_b4b73.dir\testCCompiler.c.obj   -c C:\fluidsynth-2.1.1\build\CMakeFiles\CMakeTmp\testCCompiler.c

    CMakeFiles\cmTC_b4b73.dir\build.make:84: recipe for target 'CMakeFiles/cmTC_b4b73.dir/testCCompiler.c.obj' failed

    mingw32-make.exe[1]: *** [CMakeFiles/cmTC_b4b73.dir/testCCompiler.c.obj] Error 1

    mingw32-make.exe[1]: Leaving directory 'C:/fluidsynth-2.1.1/build/CMakeFiles/CMakeTmp'

    Makefile:140: recipe for target 'cmTC_b4b73/fast' failed

    mingw32-make.exe: *** [cmTC_b4b73/fast] Error 2

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


Configuring incomplete, errors occurred!
See also "C:/fluidsynth-2.1.1/build/CMakeFiles/CMakeOutput.log".
See also "C:/fluidsynth-2.1.1/build/CMakeFiles/CMakeError.log".

请帮我找出哪里出了问题。

我还禁用了我的防病毒软件

4

0 回答 0