• 6488阅读
  • 2回复

qt新建的UI Application不能用啊,编译出错! [复制链接]

上一主题 下一主题
离线andywangjun
 
只看楼主 正序阅读 楼主  发表于: 2010-04-09
Running build steps for project two...
Starting: D:/Qt/2010.02.1/mingw/bin/mingw32-make.exe clean -w
mingw32-make: Entering directory `D:/workspace_qt/two'
D:/Qt/2010.02.1/mingw/bin/mingw32-make -f Makefile.Debug clean
mingw32-make[1]: Entering directory `D:/workspace_qt/two'
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:/workspace_qt/two'
D:/Qt/2010.02.1/mingw/bin/mingw32-make -f Makefile.Release clean
mingw32-make[1]: Entering directory `D:/workspace_qt/two'
del release\moc_mainwindow.cpp
del ui_mainwindow.h
找不到 D:\workspace_qt\two\release\moc_mainwindow.cpp
del release\main.o release\mainwindow.o release\moc_mainwindow.o
找不到 D:\workspace_qt\two\ui_mainwindow.h
mingw32-make[1]: Leaving directory `D:/workspace_qt/two'
mingw32-make: Leaving directory `D:/workspace_qt/two'
找不到 D:\workspace_qt\two\release\main.o
Exited with code 0.
Configuration unchanged, skipping QMake step.
Starting: D:/Qt/2010.02.1/mingw/bin/mingw32-make.exe -w
mingw32-make: Entering directory `D:/workspace_qt/two'
D:/Qt/2010.02.1/mingw/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `D:/workspace_qt/two'
d:\Qt\2010.02.1\qt\bin\uic.exe mainwindow.ui -o ui_mainwindow.h
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_WEBKIT_LIB -DQT_PHONON_LIB -DQT_MULTIMEDIA_LIB -DQT_DBUS_LIB -DQT_TESTLIB_LIB -DQT_SCRIPT_LIB -DQT_SCRIPTTOOLS_LIB -DQT_SVG_LIB -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -DQT_SQL_LIB -DQT_XMLPATTERNS_LIB -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\Qt\2010.02.1\qt\include\QtCore" -I"..\..\Qt\2010.02.1\qt\include\QtNetwork" -I"..\..\Qt\2010.02.1\qt\include\QtGui" -I"..\..\Qt\2010.02.1\qt\include\QtOpenGL" -I"..\..\Qt\2010.02.1\qt\include\QtXml" -I"..\..\Qt\2010.02.1\qt\include\QtXmlPatterns" -I"..\..\Qt\2010.02.1\qt\include\QtSql" -I"..\..\Qt\2010.02.1\qt\include\Qt3Support" -I"..\..\Qt\2010.02.1\qt\include\QtSvg" -I"..\..\Qt\2010.02.1\qt\include\QtScriptTools" -I"..\..\Qt\2010.02.1\qt\include\QtScript" -I"..\..\Qt\2010.02.1\qt\include\QtTest" -I"..\..\Qt\2010.02.1\qt\include\QtDBus" -I"..\..\Qt\2010.02.1\qt\include\QtMultimedia" -I"..\..\Qt\2010.02.1\qt\include\phonon" -I"..\..\Qt\2010.02.1\qt\include\QtWebKit" -I"..\..\Qt\2010.02.1\qt\include" -I"..\..\Qt\2010.02.1\qt\include\ActiveQt" -I"..\..\Qt\2010.02.1\qt\include\phonon_compat" -I"debug" -I"." -I"..\..\Qt\2010.02.1\qt\mkspecs\win32-g++" -o debug\main.o main.cpp
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_WEBKIT_LIB -DQT_PHONON_LIB -DQT_MULTIMEDIA_LIB -DQT_DBUS_LIB -DQT_TESTLIB_LIB -DQT_SCRIPT_LIB -DQT_SCRIPTTOOLS_LIB -DQT_SVG_LIB -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -DQT_SQL_LIB -DQT_XMLPATTERNS_LIB -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\Qt\2010.02.1\qt\include\QtCore" -I"..\..\Qt\2010.02.1\qt\include\QtNetwork" -I"..\..\Qt\2010.02.1\qt\include\QtGui" -I"..\..\Qt\2010.02.1\qt\include\QtOpenGL" -I"..\..\Qt\2010.02.1\qt\include\QtXml" -I"..\..\Qt\2010.02.1\qt\include\QtXmlPatterns" -I"..\..\Qt\2010.02.1\qt\include\QtSql" -I"..\..\Qt\2010.02.1\qt\include\Qt3Support" -I"..\..\Qt\2010.02.1\qt\include\QtSvg" -I"..\..\Qt\2010.02.1\qt\include\QtScriptTools" -I"..\..\Qt\2010.02.1\qt\include\QtScript" -I"..\..\Qt\2010.02.1\qt\include\QtTest" -I"..\..\Qt\2010.02.1\qt\include\QtDBus" -I"..\..\Qt\2010.02.1\qt\include\QtMultimedia" -I"..\..\Qt\2010.02.1\qt\include\phonon" -I"..\..\Qt\2010.02.1\qt\include\QtWebKit" -I"..\..\Qt\2010.02.1\qt\include" -I"..\..\Qt\2010.02.1\qt\include\ActiveQt" -I"..\..\Qt\2010.02.1\qt\include\phonon_compat" -I"debug" -I"." -I"..\..\Qt\2010.02.1\qt\mkspecs\win32-g++" -o debug\mainwindow.o mainwindow.cpp
D:/Qt/2010.02.1/qt/bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_WEBKIT_LIB -DQT_PHONON_LIB -DQT_MULTIMEDIA_LIB -DQT_DBUS_LIB -DQT_TESTLIB_LIB -DQT_SCRIPT_LIB -DQT_SCRIPTTOOLS_LIB -DQT_SVG_LIB -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -DQT_SQL_LIB -DQT_XMLPATTERNS_LIB -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\Qt\2010.02.1\qt\include\QtCore" -I"..\..\Qt\2010.02.1\qt\include\QtNetwork" -I"..\..\Qt\2010.02.1\qt\include\QtGui" -I"..\..\Qt\2010.02.1\qt\include\QtOpenGL" -I"..\..\Qt\2010.02.1\qt\include\QtXml" -I"..\..\Qt\2010.02.1\qt\include\QtXmlPatterns" -I"..\..\Qt\2010.02.1\qt\include\QtSql" -I"..\..\Qt\2010.02.1\qt\include\Qt3Support" -I"..\..\Qt\2010.02.1\qt\include\QtSvg" -I"..\..\Qt\2010.02.1\qt\include\QtScriptTools" -I"..\..\Qt\2010.02.1\qt\include\QtScript" -I"..\..\Qt\2010.02.1\qt\include\QtTest" -I"..\..\Qt\2010.02.1\qt\include\QtDBus" -I"..\..\Qt\2010.02.1\qt\include\QtMultimedia" -I"..\..\Qt\2010.02.1\qt\include\phonon" -I"..\..\Qt\2010.02.1\qt\include\QtWebKit" -I"..\..\Qt\2010.02.1\qt\include" -I"..\..\Qt\2010.02.1\qt\include\ActiveQt" -I"..\..\Qt\2010.02.1\qt\include\phonon_compat" -I"debug" -I"." -I"..\..\Qt\2010.02.1\qt\mkspecs\win32-g++" -D__GNUC__ -DWIN32 mainwindow.h -o debug\moc_mainwindow.cpp
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_WEBKIT_LIB -DQT_PHONON_LIB -DQT_MULTIMEDIA_LIB -DQT_DBUS_LIB -DQT_TESTLIB_LIB -DQT_SCRIPT_LIB -DQT_SCRIPTTOOLS_LIB -DQT_SVG_LIB -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -DQT_SQL_LIB -DQT_XMLPATTERNS_LIB -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\Qt\2010.02.1\qt\include\QtCore" -I"..\..\Qt\2010.02.1\qt\include\QtNetwork" -I"..\..\Qt\2010.02.1\qt\include\QtGui" -I"..\..\Qt\2010.02.1\qt\include\QtOpenGL" -I"..\..\Qt\2010.02.1\qt\include\QtXml" -I"..\..\Qt\2010.02.1\qt\include\QtXmlPatterns" -I"..\..\Qt\2010.02.1\qt\include\QtSql" -I"..\..\Qt\2010.02.1\qt\include\Qt3Support" -I"..\..\Qt\2010.02.1\qt\include\QtSvg" -I"..\..\Qt\2010.02.1\qt\include\QtScriptTools" -I"..\..\Qt\2010.02.1\qt\include\QtScript" -I"..\..\Qt\2010.02.1\qt\include\QtTest" -I"..\..\Qt\2010.02.1\qt\include\QtDBus" -I"..\..\Qt\2010.02.1\qt\include\QtMultimedia" -I"..\..\Qt\2010.02.1\qt\include\phonon" -I"..\..\Qt\2010.02.1\qt\include\QtWebKit" -I"..\..\Qt\2010.02.1\qt\include" -I"..\..\Qt\2010.02.1\qt\include\ActiveQt" -I"..\..\Qt\2010.02.1\qt\include\phonon_compat" -I"debug" -I"." -I"..\..\Qt\2010.02.1\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,console -o debug\two.exe debug/main.o debug/mainwindow.o debug/moc_mainwindow.o -L"d:\Qt\2010.02.1\qt\lib" -lopengl32 -lglu32 -lgdi32 -luser32 -lQtWebKitd4 -lphonond4 -lQtMultimediad4 -lQtDBusd -lQtTestd4 -lQtScriptd4 -lQtScriptToolsd4 -lQtSvgd4 -lQt3Supportd4 -lQtSqld4 -lQtXmlPatternsd4 -lQtXmld4 -lQtOpenGLd4 -lQtGuid4 -lQtNetworkd4 -lQtCored4
mingw32-make[1]: Leaving directory `D:/workspace_qt/two'
mingw32-make: Leaving directory `D:/workspace_qt/two'
d:/qt/2010.02.1/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot find -lQtDBusd
collect2: ld returned 1 exit status
mingw32-make[1]: *** [debug\two.exe] Error 1
mingw32-make: *** [debug] Error 2
Exited with code 2.
Error while building project two
When executing build step 'Make'
离线dbzhang800

只看该作者 2楼 发表于: 2010-04-09
引用第1楼浪漫天使于2010-04-09 08:06发表的  :
楼主要么就是系统时间有问题,六点都来了。。。
错误信息在下面,好好检查一下你的ui工程创建时是不是把所有的模块都勾上了?
d:/qt/2010.02.1/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot find -lQtDBusd


显然是启用了windows下并不存在的 Dubs 模块
离线浪漫天使
只看该作者 1楼 发表于: 2010-04-09
楼主要么就是系统时间有问题,六点都来了。。。
错误信息在下面,好好检查一下你的ui工程创建时是不是把所有的模块都勾上了?
d:/qt/2010.02.1/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot find -lQtDBusd
快速回复
限100 字节
 
上一个 下一个