【问题标题】:Switch from Nmake into MinGW using cygwin使用 cygwin 从 Nmake 切换到 MinGW
【发布时间】:2012-05-22 13:41:50
【问题描述】:

如何使用 MingW 而不是 Nmake 使用 cmake ???

我在 Windows 7 x64 上安装了带有 Mingw、gcc、g++ 和 gdb 的 cygwin

当我尝试这个命令时:

cmake

我收到一个包含以下内容的长错误:

-- Building for: NMake Makefiles
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error: your RC compiler: "CMAKE_RC_COMPILER-NOTFOUND" was not found.   Ple
ase set CMAKE_RC_COMPILER to a valid compiler path or name.
-- Check for CL compiler version
-- Check for CL compiler version - failed
-- Check if this is a free VC compiler
-- Check if this is a free VC compiler - yes
-- Using FREE VC TOOLS, NO DEBUG available
-- Check for working C compiler: cl

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



CMake Error: your C compiler: "cl" was not found.   Please set CMAKE_C_COMPILER
to a valid compiler path or name.
CMake Error: your CXX compiler: "cl" was not found.   Please set CMAKE_CXX_COMPI
LER to a valid compiler path or name.
-- Configuring incomplete, errors occurred!

【问题讨论】:

    标签: c++ c cmake


    【解决方案1】:

    你应该选择

    MinGW 生成文件。

    如果gcc不在路径中,你应该选择

    指定本机编译器

    指向编译器二进制文件的路径。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-08-22
      • 1970-01-01
      • 2011-07-21
      • 1970-01-01
      • 2011-03-31
      • 2013-04-18
      相关资源
      最近更新 更多