• 9556阅读
  • 2回复

我的qt creator无法运行项目的 [复制链接]

上一主题 下一主题
离线brucewuu
 

只看楼主 倒序阅读 楼主  发表于: 2010-08-20
关键词: 编译mocproGUI
下面是项目的编译报错,window下的qt  creator

Running build steps for project helloworld...
Starting: "C:/Qt/2010.04/mingw/bin/mingw32-make.exe" clean -w
mingw32-make: Entering directory `D:/QT projects/helloworld-build-desktop'
C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile.Debug clean
mingw32-make[1]: Entering directory `D:/QT projects/helloworld-build-desktop'
del debug\moc_mainwindow.cpp
del ui_mainwindow.h
del debug\main.o debug\mainwindow.o debug\moc_mainwindow.o
mingw32-make[1]: Leaving directory `D:/QT projects/helloworld-build-desktop'
C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile.Release clean
mingw32-make[1]: Entering directory `D:/QT projects/helloworld-build-desktop'
del release\moc_mainwindow.cpp
找不到 D:\QT projects\helloworld-build-desktop\release\moc_mainwindow.cpp
del ui_mainwindow.h
del release\main.o release\mainwindow.o release\moc_mainwindow.o
mingw32-make[1]: Leaving directory `D:/QT projects/helloworld-build-desktop'
mingw32-make: Leaving directory `D:/QT projects/helloworld-build-desktop'
找不到 D:\QT projects\helloworld-build-desktop\ui_mainwindow.h
找不到 D:\QT projects\helloworld-build-desktop\release\main.o
The process "C:/Qt/2010.04/mingw/bin/mingw32-make.exe" exited normally.
Configuration unchanged, skipping qmake step.
Starting: "C:/Qt/2010.04/mingw/bin/mingw32-make.exe" -w
mingw32-make: Entering directory `D:/QT projects/helloworld-build-desktop'
C:/Qt/2010.04/mingw/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `D:/QT projects/helloworld-build-desktop'
c:\Qt\2010.04\qt\bin\uic.exe ..\helloworld\mainwindow.ui -o ui_mainwindow.h
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"c:\Qt\2010.04\qt\include\QtCore" -I"c:\Qt\2010.04\qt\include\QtGui" -I"c:\Qt\2010.04\qt\include" -I"c:\Qt\2010.04\qt\include\ActiveQt" -I"debug" -I"." -I"..\helloworld" -I"." -I"c:\Qt\2010.04\qt\mkspecs\win32-g++" -o debug\main.o ..\helloworld\main.cpp
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"c:\Qt\2010.04\qt\include\QtCore" -I"c:\Qt\2010.04\qt\include\QtGui" -I"c:\Qt\2010.04\qt\include" -I"c:\Qt\2010.04\qt\include\ActiveQt" -I"debug" -I"." -I"..\helloworld" -I"." -I"c:\Qt\2010.04\qt\mkspecs\win32-g++" -o debug\mainwindow.o ..\helloworld\mainwindow.cpp
C:\Qt\2010.04\qt\bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"c:\Qt\2010.04\qt\include\QtCore" -I"c:\Qt\2010.04\qt\include\QtGui" -I"c:\Qt\2010.04\qt\include" -I"c:\Qt\2010.04\qt\include\ActiveQt" -I"debug" -I"." -I"..\helloworld" -I"." -I"c:\Qt\2010.04\qt\mkspecs\win32-g++" -D__GNUC__ -DWIN32 ..\helloworld\mainwindow.h -o debug\moc_mainwindow.cpp
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"c:\Qt\2010.04\qt\include\QtCore" -I"c:\Qt\2010.04\qt\include\QtGui" -I"c:\Qt\2010.04\qt\include" -I"c:\Qt\2010.04\qt\include\ActiveQt" -I"debug" -I"." -I"..\helloworld" -I"." -I"c:\Qt\2010.04\qt\mkspecs\win32-g++" -o debug\moc_mainwindow.o debug\moc_mainwindow.cpp
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows -o debug\helloworld.exe debug/main.o debug/mainwindow.o debug/moc_mainwindow.o -L"c:\Qt\2010.04\qt\lib" -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4
mingw32-make[1]: Leaving directory `D:/QT projects/helloworld-build-desktop'
mingw32-make: Leaving directory `D:/QT projects/helloworld-build-desktop'
The process "C:/Qt/2010.04/mingw/bin/mingw32-make.exe" exited normally.


请大家帮帮我 ?


离线dbzhang800

只看该作者 1楼 发表于: 2010-08-20
出错就把出错信息贴出来,你贴个不出错的有什么用呢,而且还这么详细。
离线gcp543706787

只看该作者 2楼 发表于: 2010-08-21
你尝试下把原来编译出来的helloworld-build-desktop文件夹删除。全部从新编译试试看
快速回复
限100 字节
 
上一个 下一个