进程qmake.exe退出与代码2 - 第一次与Qt和Qt Creator [英] The process qmake.exe exited with code 2 - first time with Qt and Qt Creator

查看:2665
本文介绍了进程qmake.exe退出与代码2 - 第一次与Qt和Qt Creator的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

已下载Qt和Qt Creator。在Qt Creator中,我可以运行示例程序。创建新项目 - Qt空项目。添加了来自 Qt网站的第一个代码示例的新cpp文件。当我按运行,生成或重建我有这个输出

Downloaded Qt and Qt Creator. In Qt Creator I can run example programs. Created new project - Qt empty project. Added new cpp-file with code example from Qt site - first one. When I press "Run", "Build" or "Rebuild" I've got this output

01:41:24: Running steps for project First...
01:41:24: Starting: "C:\Qt\4.8.4\bin\qmake.exe" "C:\Documents and Settings\Олексій\Qt Projects\First\First.pro" -r -spec win32-msvc2008 "CONFIG+=declarative_debug"
Cannot find file: c:\Documents and Settings\Олексій\Qt Projects\First\First.pro.
01:41:24: The process "C:\Qt\4.8.4\bin\qmake.exe" exited with code 2.
Error while building/deploying project First (kit: Desktop)
When executing step 'qmake'

但是有这样的文件,它包含

But there IS such file, it contains

SOURCES +=  Main.cpp

有什么问题?我没有google解决方案

What is wrong? I didn't google the solution yet

推荐答案

NP Hate;)

使用以前版本的Qt我在项目路径中的空格有问题(请注意,它安装到C:\Qt:而不是程序文件)。尝试将您的项目从文档和设置一些其他位置和重命名Qt项目到例如Qt_Projects。据我记得在文档中提到,以避免在项目路径中的空格。

With previous versions of Qt I had problems with spaces in project paths (Note that it installs itself to "C:\Qt: and not to "Program Files"). Try to move your project from "Documents and Settings" to some other location and rename "Qt Projects" to for example "Qt_Projects". As far as I remember it was mentioned in the docs to avoid spaces in project paths.

也会小心使用西里尔字符

I would also be carefull with Cyrillic characters

这篇关于进程qmake.exe退出与代码2 - 第一次与Qt和Qt Creator的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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