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

时间:2016-08-08 16:57:08

标签: c++ mingw codeblocks

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

Screenshot

我正在尝试安装Box2D,正如您可以通过文件路径看到的那样。

无论如何,此提示会出现以下几次:

Screenshot

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,我正在尝试使用C ++中的code :: blocks来处理我的sfml项目。

如果我遗漏了任何内容,请道歉,如果您发现任何需要的信息,请不要犹豫,发表评论!

4 个答案:

答案 0 :(得分:6)

转到系统变量并添加

  

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

到你的路径

答案 1 :(得分:1)

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

答案 2 :(得分:1)

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

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

它对我有用。

答案 3 :(得分:0)

我遇到了同样的问题,我尝试了下面提出的每个解决方案,但对我不起作用,然后我意识到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