您的计算机中缺少 CMAKE libintl-8.dll

新手上路,请多包涵

我一直在寻找解决方案,老实说,我被困住了。

截屏

我正在尝试安装 Box2D,正如您从文件路径中看到的那样。

无论如何,这个提示在以下之前出现了几次:

截屏

 The CXX compiler identification is unknown
Check for working CXX compiler: C:/MinGW/bin/g++.exe
Check for working CXX compiler: C:/MinGW/bin/g++.exe -- broken
CMake Error at C:/Program Files/CMake/share/cmake-3.6/Modules/CMakeTestCXXCompiler.cmake:54 (message):
  The C++ compiler "C:/MinGW/bin/g++.exe" is not able to compile a simple
  test program.

  It fails with the following output:

   Change Dir: C:/Users/alexm/Documents/Box2D/Build/CMakeFiles/CMakeTmp

  Run Build Command:"C:/MinGW/bin/mingw32-make.exe" "cmTC_31089/fast"

  C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTC_31089.dir\build.make
  CMakeFiles/cmTC_31089.dir/build

  mingw32-make.exe[1]: Entering directory
  'C:/Users/alexm/Documents/Box2D/Build/CMakeFiles/CMakeTmp'

  Building CXX object CMakeFiles/cmTC_31089.dir/testCXXCompiler.cxx.obj

  C:\MinGW\bin\g++.exe -o CMakeFiles\cmTC_31089.dir\testCXXCompiler.cxx.obj
  -c
  C:\Users\alexm\Documents\Box2D\Build\CMakeFiles\CMakeTmp\testCXXCompiler.cxx

  CMakeFiles\cmTC_31089.dir\build.make:64: recipe for target
  'CMakeFiles/cmTC_31089.dir/testCXXCompiler.cxx.obj' failed

  mingw32-make.exe[1]: ***
  [CMakeFiles/cmTC_31089.dir/testCXXCompiler.cxx.obj] Error 1

  mingw32-make.exe[1]: Leaving directory
  'C:/Users/alexm/Documents/Box2D/Build/CMakeFiles/CMakeTmp'

  Makefile:125: recipe for target 'cmTC_31089/fast' failed

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

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

Configuring incomplete, errors occurred!
See also "C:/Users/alexm/Documents/Box2D/Build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/alexm/Documents/Box2D/Build/CMakeFiles/CMakeError.log".

所以,有错误。我正在尝试使用 MinGW 将它安装在 code::blocks 上,我目前安装了 2 个 MinGW 副本,一个位于 code::blocks 文件夹中,另一个位于我的根驱动器中,我将 MinGW 单独安装到解决这个问题。

这是我第一次使用 CMake,我正试图让它与我的 sfml 项目一起使用 C++ 中的 code::blocks。

抱歉,如果我错过了什么,如果您发现任何您需要的信息,请不要犹豫发表评论!

原文由 genfy 发布,翻译遵循 CC BY-SA 4.0 许可协议

阅读 762
1 个回答

转到系统变量并添加

C:\Program Files (x86)\CodeBlocks\MinGW\bin

走向你的道路

原文由 Ahmed Ramzy 发布,翻译遵循 CC BY-SA 3.0 许可协议

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题