C++ 为CMake编译MinGW时出错

C++ 为CMake编译MinGW时出错,c++,makefile,cmake,build-error,C++,Makefile,Cmake,Build Error,在我之前的MiniGW问题上取得突破后,我遇到了另一个问题。这与我的理解大相径庭。从我所看到的情况来看,一切都很顺利,我对cmake的理解还不够透彻,不知道问题出在哪里 这是错误日志 ||=== Build: Icarus in Icarus (compiler: GNU GCC Compiler) ===| CMakeFiles\Makefile2|60|recipe for target 'CMakeFiles/Icarus.dir/all' failed| CMakeFiles\Makef

在我之前的MiniGW问题上取得突破后,我遇到了另一个问题。这与我的理解大相径庭。从我所看到的情况来看,一切都很顺利,我对cmake的理解还不够透彻,不知道问题出在哪里

这是错误日志

||=== Build: Icarus in Icarus (compiler: GNU GCC Compiler) ===|
CMakeFiles\Makefile2|60|recipe for target 'CMakeFiles/Icarus.dir/all' failed|
CMakeFiles\Makefile2|72|recipe for target 'CMakeFiles/Icarus.dir/rule' failed|
D:\Projects\SVN\Icarus\build\Makefile|110|recipe for target 'Icarus' failed|
||=== Build failed: 3 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|
下面是它指向的makefile中的行

# Build rule for target.
Icarus: cmake_check_build_system
    $(MAKE) -f CMakeFiles/Makefile2 Icarus
.PHONY : Icarus
这是它在makefile2中指向的第一部分

CMakeFiles/Icarus.dir/all:
    $(MAKE) -f CMakeFiles/Icarus.dir/build.make CMakeFiles/Icarus.dir/depend
    $(MAKE) -f CMakeFiles/Icarus.dir/build.make CMakeFiles/Icarus.dir/build
    $(CMAKE_COMMAND) -E cmake_progress_report D:/Projects/SVN/Icarus/build/CMakeFiles  
    @echo "Built target Icarus"
.PHONY : CMakeFiles/Icarus.dir/all
最后是最后一节

# Build rule for subdir invocation for target.
CMakeFiles/Icarus.dir/rule: cmake_check_build_system
    $(CMAKE_COMMAND) -E cmake_progress_start D:/Projects/SVN/Icarus/build/CMakeFiles 31
    $(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/Icarus.dir/all
    $(CMAKE_COMMAND) -E cmake_progress_start D:/Projects/SVN/Icarus/build/CMakeFiles 0
.PHONY : CMakeFiles/Icarus.dir/rule
希望这些信息足以修复错误

从中编辑有关错误的信息

Running command: c:/MinGW/bin/make.exe -f "D:/Projects/SVN/Icarus/build/Makefile"  VERBOSE=1 Icarus
"c:/Program Files (x86)/CMake/bin/cmake.exe" -HD:/Projects/SVN/Icarus -BD:/Projects/SVN/Icarus/build --check-build-system CMakeFiles/Makefile.cmake 0
c:/MinGW/bin/make.exe -f CMakeFiles/Makefile2 Icarus
make.exe[1]: Entering directory 'D:/Projects/SVN/Icarus/build'
"c:/Program Files (x86)/CMake/bin/cmake.exe" -HD:/Projects/SVN/Icarus -BD:/Projects/SVN/Icarus/build --check-build-system CMakeFiles/Makefile.cmake 0
"c:/Program Files (x86)/CMake/bin/cmake.exe" -E cmake_progress_start D:/Projects/SVN/Icarus/build/CMakeFiles 31
c:/MinGW/bin/make.exe -f CMakeFiles/Makefile2 CMakeFiles/Icarus.dir/all
make.exe[2]: Entering directory 'D:/Projects/SVN/Icarus/build'
c:/MinGW/bin/make.exe -f CMakeFiles/Icarus.dir/build.make CMakeFiles/Icarus.dir/depend
make.exe[3]: Entering directory 'D:/Projects/SVN/Icarus/build'
"C:\Program Files (x86)\CMake\bin\cmake.exe" -E cmake_depends "MinGW Makefiles" D:\Projects\SVN\Icarus D:\Projects\SVN\Icarus D:\Projects\SVN\Icarus\build D:\Projects\SVN\Icarus\build D:\Projects\SVN\Icarus\build\CMakeFiles\Icarus.dir\DependInfo.cmake --color=
make.exe[3]: Leaving directory 'D:/Projects/SVN/Icarus/build'

希望这些信息足以修复错误。我说怀疑。错误消息是,目标XXX的配方失败了,但没有给出原因的线索。@drescherjm这是它能给我的最好结果。在错误日志中,没有比这更重要的内容吗?@drescherjm将其编辑到postStill中,仍然没有任何帮助识别问题的信息。也许使用这个库的人有这个问题。