crossplatform.ru

Здравствуйте, гость ( Вход | Регистрация )

 
Ответить в данную темуНачать новую тему
> Проблема при сборке.
ddd
  опции профиля:
сообщение 24.3.2011, 14:43
Сообщение #1


Новичок


Группа: Новичок
Сообщений: 4
Регистрация: 24.3.2011
Пользователь №: 2536

Спасибо сказали: 0 раз(а)




Репутация:   0  


Привет! Помогите понять почему не собирается проект.

ide : Qt creator 2.1.0
qt : 4.7.2
ос : windows xp

при сборке простого гуи приложения в консоль сборки выдает вот это :

Выполняется сборка проекта main...
Настройки не изменились, этап qmake пропускается.
Запускается "H:\Qt\qtcreator-2.1.0\mingw\bin\mingw32-make.exe" -w
mingw32-make: Entering directory `H:/Qt/qtcreator-2.1.0/main-build-desktop'
H:/Qt/qtcreator-2.1.0/mingw/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `H:/Qt/qtcreator-2.1.0/main-build-desktop'
h:\Qt\4.7.2\bin\uic.exe ..\main\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_HAVE_MMX -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\4.7.2\include\QtCore" -I"..\..\4.7.2\include\QtGui" -I"..\..\4.7.2\include" -I"..\..\4.7.2\include\ActiveQt" -I"debug" -I"." -I"..\main" -I"." -I"..\..\4.7.2\mkspecs\win32-g++" -o debug\main.o ..\main\main.cpp
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\4.7.2\include\QtCore" -I"..\..\4.7.2\include\QtGui" -I"..\..\4.7.2\include" -I"..\..\4.7.2\include\ActiveQt" -I"debug" -I"." -I"..\main" -I"." -I"..\..\4.7.2\mkspecs\win32-g++" -o debug\mainwindow.o ..\main\mainwindow.cpp
H:\Qt\4.7.2\bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\4.7.2\include\QtCore" -I"..\..\4.7.2\include\QtGui" -I"..\..\4.7.2\include" -I"..\..\4.7.2\include\ActiveQt" -I"debug" -I"." -I"..\main" -I"." -I"..\..\4.7.2\mkspecs\win32-g++" -D__GNUC__ -DWIN32 ..\main\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_HAVE_MMX -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\4.7.2\include\QtCore" -I"..\..\4.7.2\include\QtGui" -I"..\..\4.7.2\include" -I"..\..\4.7.2\include\ActiveQt" -I"debug" -I"." -I"..\main" -I"." -I"..\..\4.7.2\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\main.exe debug/main.o debug/mainwindow.o debug/moc_mainwindow.o  -L"h:\Qt\4.7.2\lib" -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4
mingw32-make[1]: Leaving directory `H:/Qt/qtcreator-2.1.0/main-build-desktop'
mingw32-make: Leaving directory `H:/Qt/qtcreator-2.1.0/main-build-desktop'
Warning: .drectve `/manifestdependency:"type='win32' name='Microsoft.VC90.DebugCRT' version='9.0.21022.8' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"msvcprtd" /manifestdependency:"type='win32' name='Microsoft.VC90.DebugCRT' version='9.0.21022.8' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'" /DEFAULTLIB:"MSVCRTD" /DEFAULTLIB:"OLDNAMES" ' unrecognized
h:\Qt\4.7.2\lib/qtmaind.lib(tmp/obj/debug_shared/qtmain_win.obj):(.text[?realloc@?$QVector@PAD@@AAEXHH@Z]+0x19): undefined reference to `__security_cookie'
h:\Qt\4.7.2\lib/qtmaind.lib(tmp/obj/debug_shared/qtmain_win.obj):(.text[?realloc@?$QVector@PAD@@AAEXHH@Z]+0x240): undefined reference to `_CxxThrowException@8'
h:\Qt\4.7.2\lib/qtmaind.lib(tmp/obj/debug_shared/qtmain_win.obj):(.text[?realloc@?$QVector@PAD@@AAEXHH@Z]+0x3b1): undefined reference to `_CxxThrowException@8'
h:\Qt\4.7.2\lib/qtmaind.lib(tmp/obj/debug_shared/qtmain_win.obj):(.text$x+0xd): undefined reference to `@__security_check_cookie@4'
h:\Qt\4.7.2\lib/qtmaind.lib(tmp/obj/debug_shared/qtmain_win.obj):(.text$x+0x17): undefined reference to `__CxxFrameHandler3'
h:\Qt\4.7.2\lib/qtmaind.lib(tmp/obj/debug_shared/qtmain_win.obj):(.data[??_R0?AVbad_alloc@std@@@8]+0x0): undefined reference to `??_7type_info@@6B@'
debug/main.o: In function `Z5qMainiPPc':
H:\Qt\qtcreator-2.1.0\main-build-desktop/../main/main.cpp:6: undefined reference to `_imp___ZN12QApplicationC1ERiPPci'
H:\Qt\qtcreator-2.1.0\main-build-desktop/../main/main.cpp:10: undefined reference to `_imp___ZN12QApplication4execEv'
H:\Qt\qtcreator-2.1.0\main-build-desktop/../main/main.cpp:10: undefined reference to `_imp___ZN12QApplicationD1Ev'
H:\Qt\qtcreator-2.1.0\main-build-desktop/../main/main.cpp:10: undefined reference to `_imp___ZN12QApplicationD1Ev'
debug/mainwindow.o: In function `MainWindow':
H:\Qt\qtcreator-2.1.0\main-build-desktop/../main/mainwindow.cpp:6: undefined reference to `_imp___ZN11QMainWindowC2EP7QWidget6QFlagsIN2Qt10WindowTypeEE'
H:\Qt\qtcreator-2.1.0\main-build-desktop/../main/mainwindow.cpp:9: undefined reference to `_imp___ZN11QMainWindowD2Ev'
H:\Qt\qtcreator-2.1.0\main-build-desktop/../main/mainwindow.cpp:6: undefined reference to `_imp___ZN11QMainWindowC2EP7QWidget6QFlagsIN2Qt10WindowTypeEE'
H:\Qt\qtcreator-2.1.0\main-build-desktop/../main/mainwindow.cpp:9: undefined reference to `_imp___ZN11QMainWindowD2Ev'
debug/mainwindow.o: In function `~MainWindow':
H:\Qt\qtcreator-2.1.0\main-build-desktop/../main/mainwindow.cpp:14: undefined reference to `_imp___ZN11QMainWindowD2Ev'
H:\Qt\qtcreator-2.1.0\main-build-desktop/../main/mainwindow.cpp:14: undefined reference to `_imp___ZN11QMainWindowD2Ev'
H:\Qt\qtcreator-2.1.0\main-build-desktop/../main/mainwindow.cpp:14: undefined reference to `_imp___ZN11QMainWindowD2Ev'
debug/mainwindow.o: In function `~QString':
H:\Qt\qtcreator-2.1.0\main-build-desktop/../../4.7.2/include/QtCore/../../src/corelib/tools/qstring.h:883: undefined reference to `_imp___ZN7QString4freeEPNS_4DataE'
debug/mainwindow.o:H:\Qt\qtcreator-2.1.0\main-build-desktop/../../4.7.2/include/QtGui/../../src/gui/kernel/qwidget.h:1001: undefined reference to `_imp___ZN7QWidget6resizeERK5QSize'
debug/mainwindow.o:H:\Qt\qtcreator-2.1.0\main-build-desktop/./ui_mainwindow.h:36: undefined reference to `_imp___ZNK7QObject10objectNameEv'
debug/mainwindow.o:H:\Qt\qtcreator-2.1.0\main-build-desktop/./ui_mainwindow.h:37: undefined reference to `_imp___ZN7QString8fromUtf8EPKci'
debug/mainwindow.o:H:\Qt\qtcreator-2.1.0\main-build-desktop/./ui_mainwindow.h:37: undefined reference to `_imp___ZN7QObject13setObjectNameERK7QString'
debug/mainwindow.o:H:\Qt\qtcreator-2.1.0\main-build-desktop/./ui_mainwindow.h:39: undefined reference to `_imp___ZN8QMenuBarC1EP7QWidget'
debug/mainwindow.o:H:\Qt\qtcreator-2.1.0\main-build-desktop/./ui_mainwindow.h:40: undefined reference to `_imp___ZN7QString8fromUtf8EPKci'
debug/mainwindow.o:H:\Qt\qtcreator-2.1.0\main-build-desktop/./ui_mainwindow.h:40: undefined reference to `_imp___ZN7QObject13setObjectNameERK7QString'
debug/mainwindow.o:H:\Qt\qtcreator-2.1.0\main-build-desktop/./ui_mainwindow.h:41: undefined reference to `_imp___ZN11QMainWindow10setMenuBarEP8QMenuBar'
debug/mainwindow.o:H:\Qt\qtcreator-2.1.0\main-build-desktop/./ui_mainwindow.h:42: undefined reference to `_imp___ZN8QToolBarC1EP7QWidget'
debug/mainwindow.o:H:\Qt\qtcreator-2.1.0\main-build-desktop/./ui_mainwindow.h:43: undefined reference to `_imp___ZN7QString8fromUtf8EPKci'
debug/mainwindow.o:H:\Qt\qtcreator-2.1.0\main-build-desktop/./ui_mainwindow.h:43: undefined reference to `_imp___ZN7QObject13setObjectNameERK7QString'
debug/mainwindow.o:H:\Qt\qtcreator-2.1.0\main-build-desktop/./ui_mainwindow.h:44: undefined reference to `_imp___ZN11QMainWindow10addToolBarEP8QToolBar'
debug/mainwindow.o:H:\Qt\qtcreator-2.1.0\main-build-desktop/./ui_mainwindow.h:45: undefined reference to `_imp___ZN7QWidgetC1EPS_6QFlagsIN2Qt10WindowTypeEE'
debug/mainwindow.o:H:\Qt\qtcreator-2.1.0\main-build-desktop/./ui_mainwindow.h:46: undefined reference to `_imp___ZN7QString8fromUtf8EPKci'
debug/mainwindow.o:H:\Qt\qtcreator-2.1.0\main-build-desktop/./ui_mainwindow.h:46: undefined reference to `_imp___ZN7QObject13setObjectNameERK7QString'
debug/mainwindow.o:H:\Qt\qtcreator-2.1.0\main-build-desktop/./ui_mainwindow.h:47: undefined reference to `_imp___ZN11QMainWindow16setCentralWidgetEP7QWidget'
debug/mainwindow.o:H:\Qt\qtcreator-2.1.0\main-build-desktop/./ui_mainwindow.h:48: undefined reference to `_imp___ZN10QStatusBarC1EP7QWidget'
debug/mainwindow.o:H:\Qt\qtcreator-2.1.0\main-build-desktop/./ui_mainwindow.h:49: undefined reference to `_imp___ZN7QString8fromUtf8EPKci'
debug/mainwindow.o:H:\Qt\qtcreator-2.1.0\main-build-desktop/./ui_mainwindow.h:49: undefined reference to `_imp___ZN7QObject13setObjectNameERK7QString'
debug/mainwindow.o:H:\Qt\qtcreator-2.1.0\main-build-desktop/./ui_mainwindow.h:50: undefined reference to `_imp___ZN11QMainWindow12setStatusBarEP10QStatusBar'
debug/mainwindow.o:H:\Qt\qtcreator-2.1.0\main-build-desktop/./ui_mainwindow.h:54: undefined reference to `_imp___ZN11QMetaObject18connectSlotsByNameEP7QObject'
debug/mainwindow.o:H:\Qt\qtcreator-2.1.0\main-build-desktop/./ui_mainwindow.h:59: undefined reference to `_imp___ZN16QCoreApplication9translateEPKcS1_S1_NS_8EncodingE'
debug/mainwindow.o:H:\Qt\qtcreator-2.1.0\main-build-desktop/./ui_mainwindow.h:59: undefined reference to `_imp___ZN7QWidget14setWindowTitleERK7QString'
debug/moc_mainwindow.o:H:\Qt\qtcreator-2.1.0\main-build-desktop/debug/moc_mainwindow.cpp:59: undefined reference to `_imp___ZN11QMainWindow11qt_metacastEPKc'
debug/moc_mainwindow.o:H:\Qt\qtcreator-2.1.0\main-build-desktop/debug/moc_mainwindow.cpp:64: undefined reference to `_imp___ZN11QMainWindow11qt_metacallEN11QMetaObject4CallEiPPv'
debug/moc_mainwindow.o: In function `_static_initialization_and_destruction_0':
H:\Qt\qtcreator-2.1.0\main-build-desktop/debug/moc_mainwindow.cpp:43: undefined reference to `_imp___ZN11QMainWindow16staticMetaObjectE'
debug/moc_mainwindow.o:H:\Qt\qtcreator-2.1.0\main-build-desktop/../../4.7.2/include/QtCore/../../src/corelib/tools/qscopedpointer.h:112: undefined reference to `_imp___Z9qt_assertPKcS0_i'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x1c): undefined reference to `QMainWindow::event(QEvent*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x20): undefined reference to `QObject::eventFilter(QObject*, QEvent*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x24): undefined reference to `QObject::timerEvent(QTimerEvent*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x28): undefined reference to `QObject::childEvent(QChildEvent*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x2c): undefined reference to `QObject::customEvent(QEvent*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x30): undefined reference to `QObject::connectNotify(char const*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x34): undefined reference to `QObject::disconnectNotify(char const*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x38): undefined reference to `QWidget::devType() const'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x3c): undefined reference to `QWidget::setVisible(bool)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x40): undefined reference to `QWidget::sizeHint() const'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x44): undefined reference to `QWidget::minimumSizeHint() const'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x48): undefined reference to `QWidget::heightForWidth(int) const'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x4c): undefined reference to `QWidget::getDC() const'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x50): undefined reference to `QWidget::releaseDC(HDC__*) const'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x54): undefined reference to `QWidget::paintEngine() const'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x58): undefined reference to `QWidget::mousePressEvent(QMouseEvent*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x5c): undefined reference to `QWidget::mouseReleaseEvent(QMouseEvent*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x60): undefined reference to `QWidget::mouseDoubleClickEvent(QMouseEvent*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x64): undefined reference to `QWidget::mouseMoveEvent(QMouseEvent*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x68): undefined reference to `QWidget::wheelEvent(QWheelEvent*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x6c): undefined reference to `QWidget::keyPressEvent(QKeyEvent*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x70): undefined reference to `QWidget::keyReleaseEvent(QKeyEvent*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x74): undefined reference to `QWidget::focusInEvent(QFocusEvent*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x78): undefined reference to `QWidget::focusOutEvent(QFocusEvent*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x7c): undefined reference to `QWidget::enterEvent(QEvent*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x80): undefined reference to `QWidget::leaveEvent(QEvent*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x84): undefined reference to `QWidget::paintEvent(QPaintEvent*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x88): undefined reference to `QWidget::moveEvent(QMoveEvent*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x8c): undefined reference to `QWidget::resizeEvent(QResizeEvent*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x90): undefined reference to `QWidget::closeEvent(QCloseEvent*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x94): undefined reference to `QMainWindow::contextMenuEvent(QContextMenuEvent*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x98): undefined reference to `QWidget::tabletEvent(QTabletEvent*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x9c): undefined reference to `QWidget::actionEvent(QActionEvent*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0xa0): undefined reference to `QWidget::dragEnterEvent(QDragEnterEvent*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0xa4): undefined reference to `QWidget::dragMoveEvent(QDragMoveEvent*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0xa8): undefined reference to `QWidget::dragLeaveEvent(QDragLeaveEvent*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0xac): undefined reference to `QWidget::dropEvent(QDropEvent*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0xb0): undefined reference to `QWidget::showEvent(QShowEvent*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0xb4): undefined reference to `QWidget::hideEvent(QHideEvent*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0xb8): undefined reference to `QWidget::winEvent(tagMSG*, long*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0xbc): undefined reference to `QWidget::changeEvent(QEvent*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0xc0): undefined reference to `QWidget::metric(QPaintDevice::PaintDeviceMetric) const'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0xc4): undefined reference to `QWidget::inputMethodEvent(QInputMethodEvent*)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0xc8): undefined reference to `QWidget::inputMethodQuery(Qt::InputMethodQuery) const'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0xcc): undefined reference to `QWidget::focusNextPrevChild(bool)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0xd0): undefined reference to `QWidget::styleChange(QStyle&)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0xd4): undefined reference to `QWidget::enabledChange(bool)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0xd8): undefined reference to `QWidget::paletteChange(QPalette const&)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0xdc): undefined reference to `QWidget::fontChange(QFont const&)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0xe0): undefined reference to `QWidget::windowActivationChange(bool)'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0xe4): undefined reference to `QWidget::languageChange()'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0xe8): undefined reference to `QMainWindow::createPopupMenu()'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0xfc): undefined reference to `non-virtual thunk to QWidget::devType() const'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x100): undefined reference to `non-virtual thunk to QWidget::paintEngine() const'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x104): undefined reference to `non-virtual thunk to QWidget::getDC() const'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x108): undefined reference to `non-virtual thunk to QWidget::releaseDC(HDC__*) const'
debug/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10MainWindow[vtable for MainWindow]+0x10c): undefined reference to `non-virtual thunk to QWidget::metric(QPaintDevice::PaintDeviceMetric) const'
collect2: ld returned 1 exit status
mingw32-make[1]: *** [debug\main.exe] Error 1
mingw32-make: *** [debug] Error 2
Процесс "H:\Qt\qtcreator-2.1.0\mingw\bin\mingw32-make.exe" завершился с кодом 2.
Возникла ошибка при сборке проекта main (цель: Настольный компьютер)
Во время выполнения сборки на этапе "Сборка"




никак не пойму из-за чего. переменные окружения прописаны в виндовс до qt и до mingw. Надеюсь на помощь.
Перейти в начало страницы
 
Быстрая цитата+Цитировать сообщение
RazrFalcon
  опции профиля:
сообщение 24.3.2011, 14:49
Сообщение #2


Zombie Mod
*****

Группа: Участник
Сообщений: 1654
Регистрация: 24.5.2010
Из: Харьков
Пользователь №: 1752

Спасибо сказали: 64 раз(а)




Репутация:   212  


А весь проект как выглядит? Покажите исходники.
В .pro есть такая стока
QT += core gui
?
Перейти в начало страницы
 
Быстрая цитата+Цитировать сообщение
ddd
  опции профиля:
сообщение 24.3.2011, 14:57
Сообщение #3


Новичок


Группа: Новичок
Сообщений: 4
Регистрация: 24.3.2011
Пользователь №: 2536

Спасибо сказали: 0 раз(а)




Репутация:   0  


вот файл про main.pro

Раскрывающийся текст

#-------------------------------------------------
#
# Project created by QtCreator 2011-03-24T16:35:32
#
#-------------------------------------------------

QT += core gui

TARGET = main
TEMPLATE = app


SOURCES += main.cpp\
mainwindow.cpp

HEADERS += mainwindow.h

FORMS += mainwindow.ui


mainwindow.h

Раскрывающийся текст

#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
Q_OBJECT

public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();

private:
Ui::MainWindow *ui;
};

#endif // MAINWINDOW_H



main.cpp

Раскрывающийся текст

#include <QtGui/QApplication>
#include "mainwindow.h"

int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();

return a.exec();
}




mainwindow.cpp

Раскрывающийся текст

#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
}

MainWindow::~MainWindow()
{
delete ui;
}

Перейти в начало страницы
 
Быстрая цитата+Цитировать сообщение
xls
  опции профиля:
сообщение 24.3.2011, 15:27
Сообщение #4


Студент
*

Группа: Участник
Сообщений: 44
Регистрация: 6.9.2010
Пользователь №: 2013

Спасибо сказали: 7 раз(а)




Репутация:   2  


А какой именно qt 4.7.2 ? Не VS-ный случайно?
Перейти в начало страницы
 
Быстрая цитата+Цитировать сообщение
RazrFalcon
  опции профиля:
сообщение 24.3.2011, 15:32
Сообщение #5


Zombie Mod
*****

Группа: Участник
Сообщений: 1654
Регистрация: 24.5.2010
Из: Харьков
Пользователь №: 1752

Спасибо сказали: 64 раз(а)




Репутация:   212  


Вы SDK ставили?
Перейти в начало страницы
 
Быстрая цитата+Цитировать сообщение
ddd
  опции профиля:
сообщение 24.3.2011, 15:38
Сообщение #6


Новичок


Группа: Новичок
Сообщений: 4
Регистрация: 24.3.2011
Пользователь №: 2536

Спасибо сказали: 0 раз(а)




Репутация:   0  


сдк не ставил.

скачал и поставил

qt-creator-win-opensource-2.1.0

и qt-win-opensource-4.7.2-vs2008

Перейти в начало страницы
 
Быстрая цитата+Цитировать сообщение
RazrFalcon
  опции профиля:
сообщение 24.3.2011, 15:41
Сообщение #7


Zombie Mod
*****

Группа: Участник
Сообщений: 1654
Регистрация: 24.5.2010
Из: Харьков
Пользователь №: 1752

Спасибо сказали: 64 раз(а)




Репутация:   212  


с SDK было бы проще.
qt-win-opensource-4.7.2-vs2008 - нужен для работы в студии, а не в креаторе.
Перейти в начало страницы
 
Быстрая цитата+Цитировать сообщение
ddd
  опции профиля:
сообщение 24.3.2011, 15:46
Сообщение #8


Новичок


Группа: Новичок
Сообщений: 4
Регистрация: 24.3.2011
Пользователь №: 2536

Спасибо сказали: 0 раз(а)




Репутация:   0  


ок. ссылкой можете поделиться qt для qtcretor и mingw ?
Перейти в начало страницы
 
Быстрая цитата+Цитировать сообщение
ufna
  опции профиля:
сообщение 24.3.2011, 16:14
Сообщение #9


Активный участник
***

Группа: Участник
Сообщений: 362
Регистрация: 24.5.2008
Из: Курган/СПб
Пользователь №: 182

Спасибо сказали: 29 раз(а)




Репутация:   5  


MinGW версия на сайте qt
Перейти в начало страницы
 
Быстрая цитата+Цитировать сообщение
Phoenix_nsk
  опции профиля:
сообщение 24.3.2011, 16:18
Сообщение #10


Студент
*

Группа: Участник
Сообщений: 57
Регистрация: 12.3.2011
Пользователь №: 2491

Спасибо сказали: 0 раз(а)




Репутация:   0  


LGPL выбираем и дальше всё что нужно.
Перейти в начало страницы
 
Быстрая цитата+Цитировать сообщение

Быстрый ответОтветить в данную темуНачать новую тему
Теги
Нет тегов для показа


1 чел. читают эту тему (гостей: 1, скрытых пользователей: 0)
Пользователей: 0




RSS Текстовая версия Сейчас: 29.3.2024, 1:43