• 全部
  • 问答

安装了qt后编译的第一个工程就出错,如何配置?

社会栋梁 2010-07-07 11:04:25
Running build steps for project untitled1...
Starting: "E:/Qt/2010.04/mingw/bin/mingw32-make.exe" clean -w
mingw32-make: Entering directory `C:/Documents and Settings/Administrator/桌面/untitled1-build-desktop'
mingw32-make: Leaving directory `C:/Documents and Settings/Administrator/桌面/untitled1-build-desktop'
mingw32-make: *** No rule to make target `clean'. Stop.
The process "E:/Qt/2010.04/mingw/bin/mingw32-make.exe" exited with code %2.
Starting: "e:/qt/2010.04/qt/bin/qmake.exe" C:/Documents and Settings/Administrator/桌面/untitled1/untitled1.pro -r -spec win32-g++
Cannot find file: c:\Documents and Settings\Administrator\桌面\untitled1\untitled1.pro.
The process "e:/qt/2010.04/qt/bin/qmake.exe" exited with code %2.
Error while building project untitled1 (target: Desktop)
When executing build step 'qmake'
...全文
533 点赞 收藏 16
写回复
16 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
wangguang246 2010-07-10
把工程copy到D盘,路径中不要有空格和中文
回复
onpduo 2010-07-10
跟VC冲突了,或说vc上不是有qt的插件吗
回复
中才德创 2010-07-09
不要有中文路径.
回复
wwp3321 2010-07-08
我也出现同样问题,似乎是和vc6的冲突了
回复
社会栋梁 2010-07-08
up。。。
回复
社会栋梁 2010-07-08
我是qtcreator
qmake和mingw设置是
e:\qt\2010.04\qt\bin\qmake.exe
e:\Qt\2010.04\mingw

都没有问题啊
回复
巴依老爷 2010-07-08
把环境变量中的vc部分去掉,加上mingw的环境,这样试试
你是用命令行还是qtcreator?
qtcreator的话应该是安装后就设定好的,tools->options->qt4->qt version
确认qmake,mingw都设置正确,qt creator能正确识别你的mingw环境。
回复
社会栋梁 2010-07-08
[Quote=引用 9 楼 darkdong 的回复:]
环境变量乱套了,使用mingw编译时包含到vc的头文件,所以出错,应该指向mingw自己的include
[/Quote]

如何解决呢?
回复
巴依老爷 2010-07-08
环境变量乱套了,使用mingw编译时包含到vc的头文件,所以出错,应该指向mingw自己的include
回复
社会栋梁 2010-07-08
是不是和vs6冲突什么的?
回复
社会栋梁 2010-07-07
我移动到了f:\
又出现了
Running build steps for project systray...
Configuration unchanged, skipping qmake step.
Starting: "E:/Qt/2010.04/mingw/bin/mingw32-make.exe" -w
mingw32-make: Entering directory `E:/Qt/2010.04/qt/examples/desktop/systray-build-desktop'
E:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile.Debug all
mingw32-make[1]: Entering directory `E:/Qt/2010.04/qt/examples/desktop/systray-build-desktop'
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_SVG_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\include\QtCore" -I"..\..\..\include\QtGui" -I"..\..\..\include\QtXml" -I"..\..\..\include\QtSvg" -I"..\..\..\include" -I"..\..\..\include\ActiveQt" -I"tmp\moc\debug_shared" -I"..\systray" -I"e:\Program Files\Microsoft Visual Studio\VC98\atl\include" -I"e:\Program Files\Microsoft Visual Studio\VC98\mfc\include" -I"e:\Program Files\Microsoft Visual Studio\VC98\include" -I"." -I"..\..\..\mkspecs\win32-g++" -o tmp\obj\debug_shared\main.o ..\systray\main.cpp
In file included from e:\Program Files\Microsoft Visual Studio\VC98\include/yvals.h:4,
from e:\Program Files\Microsoft Visual Studio\VC98\include/xstddef:10,
...
from e:\Program Files\Microsoft Visual Studio\VC98\include/string:9,
from ..\..\..\include/QtCore/../../src/corelib/tools/qstring.h:60,
from ..\..\..\include/QtCore/qstring.h:1,
from ..\..\..\include/QtCore/../../src/corelib/kernel/qobject.h:48,
from ..\..\..\include/QtCore/qobject.h:1,
from ..\..\..\include/QtCore/../../src/corelib/animation/qabstractanimation.h:45,
from ..\..\..\include/QtCore/qabstractanimation.h:1,
from ..\..\..\include/QtCore/QtCore:3,
from ..\..\..\include\QtGui/QtGui:3,
from ..\systray\main.cpp:42:
....
回复
socoola 2010-07-07
Cannot find file: c: \Documents and Settings\Administrator\桌面\untitled1\untitled1.pro.

说明文件不识别,楼上的正解
回复
巴依老爷 2010-07-07
路径中不要有空格,中文。
回复
社会栋梁 2010-07-07
我是楼主,都试了,还是不行。。。
回复
guozhixin 2010-07-07
先clean project,再Rebulid project,试一试
回复
chuidiaoweng 2010-07-07
重新生成makefile,试试
回复
发帖
Qt
创建于2009-11-04

1.3w+

社区成员

Qt 是一个跨平台应用程序框架。通过使用 Qt,您可以一次性开发应用程序和用户界面,然后将其部署到多个桌面和嵌入式操作系统,而无需重复编写源代码。
申请成为版主
帖子事件
创建了帖子
2010-07-07 11:04
社区公告
暂无公告