首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
社区首页 >问答首页 >cmake cygwin make.exe错误

cmake cygwin make.exe错误
EN

Stack Overflow用户
提问于 2012-11-05 00:11:09
回答 1查看 5.8K关注 0票数 6

我有一个关于CMake 2.8.9的问题。我使用GUI。我尝试制作一个makefile (ogre 1.8)。

因为我使用的是Windows7 x64,所以我将CygWin与gcc.exe、g++.exe和make.exe (位于bin目录中)一起使用。

当我尝试“配置”时,CMake记录了以下错误:

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
The C compiler identification is unknown
The CXX compiler identification is unknown
Check for working C compiler: G:/cygwin/bin/gcc.exe
Check for working C compiler: G:/cygwin/bin/gcc.exe -- broken
CMake Error at G:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
The C compiler "G:/cygwin/bin/gcc.exe" is not able to compile a simple test program.

It fails with the following output:

Change Dir: H:/Ogre/gcc18/CMakeFiles/CMakeTmp



Run Build Command:G:/cygwin/bin/make.exe "cmTryCompileExec2682355191/fast"

/usr/bin/make -f CMakeFiles\cmTryCompileExec2682355191.dir\build.make
CMakeFiles/cmTryCompileExec2682355191.dir/build

D e r B e f e h l " m T r y C o m p i l e E x e c 2 6 8 2 3 5 5 1 9 1 .  d i r " i s t e n t w e d e r f a l s c h g e s c h r i e b e n o d e r  k o n n t e   n i c h t   g e f u n d e n   w e r d e n . 

makeMakefile:116: recipe for target `cmTryCompileExec2682355191/fast' failed

: *** [cmTryCompileExec2682355191/fast] Error 1





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


Configuring incomplete, errors occurred!

鉴于D e r B e f e h l“m T r y C o m p i l e.......

表示“命令”mTryCompile……“拼写错误或找不到

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
$ make -version
GNU Make 3.82.90
Built for i686-pc-cygwin
Copyright (C) 2010  Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
gcc-Version 4.5.3 (GCC)

我的缓存如下所示:

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
//Path to a program.
CMAKE_AR:FILEPATH=G:/cygwin/bin/ar.exe

//Choose the type of build, options are: None(CMAKE_CXX_FLAGS or
// CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.
CMAKE_BUILD_TYPE:STRING=

//Enable/Disable color output during build.
CMAKE_COLOR_MAKEFILE:BOOL=ON

//CXX compiler.
CMAKE_CXX_COMPILER:FILEPATH=G:/cygwin/bin/g++.exe

//C compiler.
CMAKE_C_COMPILER:FILEPATH=G:/cygwin/bin/gcc.exe

//Flags used by the compiler during all build types.
CMAKE_C_FLAGS:STRING=

//Flags used by the compiler during debug builds.
CMAKE_C_FLAGS_DEBUG:STRING=

//Flags used by the compiler during release minsize builds.
CMAKE_C_FLAGS_MINSIZEREL:STRING=

//Flags used by the compiler during release builds (/MD /Ob1 /Oi
// /Ot /Oy /Gs will produce slightly less optimized but smaller
// files).
CMAKE_C_FLAGS_RELEASE:STRING=

//Flags used by the compiler during Release with Debug Info builds.
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=

//Flags used by the linker.
CMAKE_EXE_LINKER_FLAGS:STRING=' '

//Flags used by the linker during debug builds.
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize builds.
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during release builds.
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Install path prefix, prepended onto install directories.
CMAKE_INSTALL_PREFIX:PATH=C:/Program Files (x86)/OGRE

//Path to a program.
CMAKE_LINKER:FILEPATH=G:/cygwin/bin/ld.exe

//Path to a program.
CMAKE_MAKE_PROGRAM:FILEPATH=G:/cygwin/bin/make.exe

//Flags used by the linker during the creation of modules.
CMAKE_MODULE_LINKER_FLAGS:STRING=' '

//Flags used by the linker during debug builds.
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize builds.
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during release builds.
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Path to a program.
CMAKE_NM:FILEPATH=G:/cygwin/bin/nm.exe

//Path to a program.
CMAKE_OBJCOPY:FILEPATH=G:/cygwin/bin/objcopy.exe

//Path to a program.
CMAKE_OBJDUMP:FILEPATH=G:/cygwin/bin/objdump.exe

//Value Computed by CMake
CMAKE_PROJECT_NAME:STATIC=OGRE

//Path to a program.
CMAKE_RANLIB:FILEPATH=G:/cygwin/bin/ranlib.exe

//Path to a program.
CMAKE_SH:FILEPATH=G:/cygwin/bin/sh.exe

//Flags used by the linker during the creation of dll's.
CMAKE_SHARED_LINKER_FLAGS:STRING=' '

//Flags used by the linker during debug builds.
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize builds.
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during release builds.
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//If set, runtime paths are not added when installing shared libraries,
// but are added when building.
CMAKE_SKIP_INSTALL_RPATH:BOOL=OFF

//If set, runtime paths are not added when using shared libraries.
CMAKE_SKIP_RPATH:BOOL=OFF

//Path to a program.
CMAKE_STRIP:FILEPATH=G:/cygwin/bin/strip.exe

//If true, cmake will use relative paths in makefiles and projects.
CMAKE_USE_RELATIVE_PATHS:BOOL=ON

//If this value is on, makefiles will be generated without the
// .SILENT directive, and all commands will be echoed to the console
// during the make.  This is useful for debugging only. With Visual
// Studio IDE projects all commands are done without /nologo.
CMAKE_VERBOSE_MAKEFILE:BOOL=OFF

CYGWIN:BOOL=ON

//Value Computed by CMake
OGRE_BINARY_DIR:STATIC=H:/Ogre/gcc18

//Value Computed by CMake
OGRE_SOURCE_DIR:STATIC=H:/Ogre/ogre_src_v1-8-1/ogre_src_v1-8-1
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-11-05 07:43:12

在Cygwin下,你不能使用常规的Windows CMake安装。您必须使用Cygwin安装程序安装CMake的UNIX版本。

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/13224368

复制
相关文章
Windows下NDK环境的具体配置及Cygwin的安装
开发android ndk 的时候需要一个编译工具编译c程序,ndk需要linux下编译,所以win环境下提供Cygwin模拟linux编译C。下面介绍一下android-ndk-r14b下配置Cygwin的步骤:
前端皮皮
2020/11/26
2.1K0
Windows下NDK环境的具体配置及Cygwin的安装
1.到Cygwin的官方网站下载Cygwin的安装程序,地址是: X86、x64 2.运行下载的exe文件,选择包时,顶部选择“default”不变 3.搜索make,勾选make,cmake,emacs-cmake,libjepg 4. Shells这个二级目录选择“install” 5.下一步,开始安装 安装好后运行Cygwin,检查gcc,make工具是否安装 命令:gcc -v 命令:make -v 如果都可以正常云行那说明安装成功了
Python进阶者
2021/08/27
1.2K0
cygwin安装组件教程_cygwin常用命令
下载make包https://gnu-make.soft32.com/free-download/
全栈程序员站长
2022/11/07
2.1K0
cygwin安装组件教程_cygwin常用命令
Windows10下配置CMake+Make+Cpp环境
在 Linux 上使用 CMake+Make+Cpp 环境简直不要太轻松,大多数 Linux 发行版都自带 Make 和 GCC,因此只需用命令安装一下 CMake 后即可使用。但在 Windows 10 上却需要好好配置一番才能使用……
hotarugali
2022/09/27
2.7K0
2019-01-25 hera在windows下的编译
hera工程在linux下比较好编译,但是在windows下如果使用cmake生成vc的工程编译就各种错误,因此采用cygwin来编译
oracle3
2022/05/13
3100
Cygwin简单配置
上面链接是Cygwin是doc,自己看吧。我建议还是搞个Linux的机器或者虚拟机吧,但是我不喜欢虚拟机。当然了编译的方式很多的,选择适合自己的就行。
云深无际
2021/06/25
6550
Cygwin简单配置
Windows下MSYS2中编译OpenBLAS过程记录
10km
2018/01/03
5.5K0
Windows下MSYS2中编译OpenBLAS过程记录
详解 Windows 下 Eclipse CDT 配置 C/C++ 编译环境
其实 windows 下,C、C++ IDE 也不少,但许多IDE的 UI 和用户体验基本都停留在上个世纪,除了 eclipse CDT 和 visual studio,但后者现在是个巨无霸,安装文件都 3 个多G,而且这货安装容易删除难,但 eclipse CDT 就不一样了,绿色无污染,熟悉 java eclipse 的同学也能快速适应~ 1、Eclipse及CDT的安装 离线安装CDT 到Eclipse的官方网站http://www.eclipse.org上下载Eclipse。 CDT的全称是C/C+
用户1177713
2018/02/24
8.2K0
详解 Windows 下 Eclipse CDT 配置 C/C++ 编译环境
cygwin的163镜像(转)
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/109214.html原文链接:https://javaforall.cn
全栈程序员站长
2022/07/05
9880
Windows:安装cygwin教程[通俗易懂]
本篇文章参考这篇: cygwin安装 但自从博主写后,这个东西发生了一些变化, 因此,根据最新版的重新写了一遍。 我们可以到Cygwin的官方网站下载Cygwin的安装程序
全栈程序员站长
2022/07/22
3.7K0
Windows:安装cygwin教程[通俗易懂]
Cygwin环境下vim配置
vim是Linux发行版的标配编辑器。为什么还要使用cygwin?因为,不可能所有软件/开发都在linux下进行。许多的开发者还在windows下进行。而要使用命令行的便捷工具,于是就有了cygwin。官网看这里http://cygwin.com/
程序员小助手
2020/04/08
3.7K0
Android NDK 初步
将手机通过USB连接到电脑,adb shell进入手机根目录,执行cat /proc/cpuinfo
AnRFDev
2021/02/01
1K0
windows安装cygwin ssh
https://cloud.tencent.com/developer/video/77031
Windows技术交流
2022/01/28
3K0
Cygwin安装镜像选择
在谷歌查到,需要安装Cygwin,便立马按照文档的指示来下载安装,当安装Cygwin,需要选择下载镜像,列表中给出的镜像多是国外的,在大中国下载会很慢或报错。于是谷歌了各种方法,发现还是网易提供的镜像快、稳定。
努力在北京混出人样
2019/02/18
2K0
OpenJDK8 Windows编译
前言 Open JDK 是开源的JDK。通过对开源JDK的编译调试,我们可以深入了解JVM的运行原理。 以下是我的环境信息: 操作系统: Microsoft Windows 7 Professional x64 SP1 安装组件: 1、Windows Unix Toolkit>  CYGWIN x64,放在E:\hub\cygwin64目录下 2、C/C++ Compiler  > Visual Studio 2010 Professional (x86) - DVD (English),包括Windows
斯武丶风晴
2018/03/01
3.8K0
OpenJDK8 Windows编译
windows vscode 配置cmake 编译c/c++ 基础
1. 下载基础包; 2. 配置vscode; 3. cmake 基础################### 软件下载 ###################vscode:官方: https://code.visualstudio.com/Download其他下载: http://work.eisc.cn/ruanjian/windows/c/ruanjian/VSCodeUserSetup-x64-1.75.1.execmake:官方: https://cmake.org/downlo
eisc
2023/02/24
1.8K0
换换Cygwin的Terminal吧
17年最后一篇技术相关帖来介绍一下使用secureCRT等工具连接cygwin吧。
琉璃康康
2022/04/19
6710
换换Cygwin的Terminal吧
换换Cygwin的Terminal吧
17年最后一篇技术相关帖来介绍一下使用secureCRT等工具连接cygwin吧。 cygwin可以说是一个很好的在Windows上迅速模拟和学习Unix/Linux的工具了,不过其对应的Terminal却弊端重重,比如复制粘贴记log等等都不是很方便。 今天就介绍一下打开其ssh的功能后使用secureCRT等工具来使用cygwin。 1、安装openssh 一般来说很少有人在默认安装的时候会选择安装这个service,所以第一步就要先安装openssh了,当然如果安装cygwin的时候选择了全安装或者很
企鹅号小编
2018/01/12
1.3K0
换换Cygwin的Terminal吧
win10 安装 Cygwin
http://preshing.com/20141108/how-to-install-the-latest-gcc-on-windows/
bear_fish
2018/09/19
2.8K0
win10 安装 Cygwin
How to install cmake 3.2 on ubuntu 14.04? caffe安装错误的解决
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/haluoluo211/article/details/52818103
bear_fish
2018/09/19
9490

相似问题

从cygwin上的make.exe传递的长命令出现sh错误

10

为cygwin构建CMAKE

20

cygwin的CMAKE构建

12

无法使用cygwin运行cmake

20

CMAKE没有定义CYGWIN变量

11
添加站长 进交流群

领取专属 10元无门槛券

AI混元助手 在线答疑

扫码加入开发者社群
关注 腾讯云开发者公众号

洞察 腾讯核心技术

剖析业界实践案例

扫码关注腾讯云开发者公众号
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
查看详情【社区公告】 技术创作特训营有奖征文