簡體   English   中英

使用cygwin從Nmake切換到MinGW

[英]Switch from Nmake into MinGW using cygwin

如何使用Mingake而不是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!

你應該選擇

MinGW Makefile。

如果gcc不在路徑中,則應選擇

指定本機編譯器

指向編譯器二進制文件的路徑。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM