简体   繁体   English

使用cygwin从Nmake切换到MinGW

[英]Switch from Nmake into MinGW using cygwin

How to use the MingW instead of the Nmake using cmake ??? 如何使用Mingake而不是Nmake使用cmake ???

I have cygwin installed with Mingw, gcc, g++, and gdb installed on Windows 7 x64 我在Windows 7 x64上安装了Mingw,gcc,g ++和gdb的cygwin

when I try this command : 当我尝试此命令时:

cmake

I get a long error containing this: 我收到一个包含以下内容的长错误:

-- 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!

You should choose 你应该选择

MinGW Makefiles. MinGW Makefile。

If gcc is not in path, you should choose 如果gcc不在路径中,则应选择

Specify native compilers 指定本机编译器

to point paths to compiler binaries. 指向编译器二进制文件的路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM