【问题标题】:CMAKE libintl-8.dll is missing from your computer您的计算机中缺少 CMAKE libintl-8.dll
【发布时间】:2016-08-08 16:57:07
【问题描述】:

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

我正在尝试安装 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。

抱歉,如果我遗漏了什么,如果您发现任何您需要的信息,请随时发表评论!

【问题讨论】:

  • 我会开始调查第一个错误。我的意思是您的计算机中缺少libintl-8.dll?查看C:/MinGW/bin的路径
  • 你被卡住了吗?您没有将 libintl 放入 google 并选择数百个点击中的任何一个?
  • 在两个MinGW目录下(code::blocks安装目录和MinGW根目录下)
  • 那么 C:\MinGW\bin 是你的 windows PATH 环境变量的一部分吗?
  • 对迟到的回复表示歉意,这实际上是问题之一。由于某种原因,我的 PATH 有目录 C:\MinGW\。

标签: c++ mingw codeblocks


【解决方案1】:

转到系统变量并添加

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

去你的路

【讨论】:

    【解决方案2】:

    你下载libintl-8.dll并复制到C:\MinGW\bin

    https://www.dll-files.com/libintl-8.dll.html

    它对我有用。

    【讨论】:

      【解决方案3】:

      您应该以管理员身份运行 Cmake。我有同样的问题,为我工作

      【讨论】:

        【解决方案4】:

        我遇到了同样的问题,我尝试了下面提出的所有解决方案,但对我不起作用,然后我意识到 CMake 使用 C:\Program Files (x86)\CodeBlocks\MinGW\mingw32\bin而不是 C:\Program Files (x86)\CodeBlocks\MinGW\bin 所以我将“dll”文件复制到该文件夹​​。如果这对您不起作用,请尝试将 C:\Program Files (x86)\CodeBlocks\MinGW\mingw32\bin 添加到您的路径中。

        【讨论】:

          【解决方案5】:

          我遇到了同样的问题。 我正在运行 cmake 以赢得 7, 当我取消勾选它时,它就开始工作了。

          【讨论】:

          • 正如目前所写,您的答案尚不清楚。请edit 添加其他详细信息,以帮助其他人了解这如何解决所提出的问题。你可以找到更多关于如何写好答案的信息in the help center
          猜你喜欢
          • 2017-11-09
          • 2014-04-17
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2016-09-02
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多