如何获得Qt的创建者使用cygwin的make来构建? [英] How to get Qt-Creator to build using cygwin make?

查看:200
本文介绍了如何获得Qt的创建者使用cygwin的make来构建?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道如何Qt的造物主配置为使用Cygwin的制作来生成一个项目?也许这是一个简单的cygwin,错位Windows路径问题,但我不能让Qt的造物主查找/运行Cygwin的制作。我的制作住在的/ usr / bin中,这实际上是 C:\\ cygwin的\\ C的\\ usr \\ BIN 我的系统上。无论哪种方式,Qt的似乎无法使用所有明显的构建设置我能想到的它来寻找。

Does anyone know how to configure Qt-Creator to use cygwin's make to build a project? Maybe this is a simple cygwin-mangled Windows path problem, but I can't get Qt-Creator to find/run cygwin's make. My make lives in /usr/bin, which is actually c:\cygwin\c\usr\bin on my system. Either way, Qt can't seem to find it using all the obvious build settings I can think of.

感谢---

推荐答案

[这个答案使用的作品对我来说Qt Creator的2.0.93(测试版2.1),情况因人而异]

[This answer works for me using Qt Creator 2.0.93 (beta 2.1), YMMV]

我花了一些时间跟踪一个类似的问题:使用非MinGW的,非支持构建从Qt的链条。看来,Qt Creator中使用的基础上无论您使用的是让或自定义生成步骤构建步骤不同的环境中(参见项目视图)。我能够控制的实际进行的唯一方法调用,并且,更重要的是,它被从运行的路径是从使用的make构建步骤自定义生成步骤改变。一旦我这样做,PATH环境变量的设置(编译环境下)很荣幸,并选择了正确的化妆。

I spent some time tracking down a similar problem: using a non-mingw, non-"supported" build chain from Qt. It appears that Qt Creator uses different environments for build steps based on whether or not you are using a "Make" or "Custom" build step (see the Projects view). The only way I was able to control the actual make invoked and, more importantly, the path where it was run from was to change from using "make" build steps to a "custom" build step. Once I did that, the settings of the PATH environment variable (under build environment) were honored and the right make was chosen.

在换句话说,尝试做下列步骤操作:

In other words, try doing these steps:


  1. 为你的项目,包括您的cygwin的东西设置路径构建环境。

  2. 创建自定义生成步骤调用Cygwin的用适当的选项让(从旧的复制使打造步骤)。

  3. 删除旧的制造打造的一步。

这篇关于如何获得Qt的创建者使用cygwin的make来构建?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆