QT einbinden

Alles was mit C/C++ unter NetBeans zu tun hat

Moderator: wegus

Antworten
Kamairo
Beiträge: 1
Registriert: 28.03.2012, 01:27

QT einbinden

Beitrag von Kamairo » 28.03.2012, 01:41

Hallöchen,

versuche seit gestern verzweifelt QT in Netbeans zum laufen zu bekommen.

Das habe ich gemacht:
-Netbeans 7.1.1 inkl. c/c++ modul installiert
-MSys installiert
-Das neuste QT SDK installiert
-"C:\msys\1.0\bin\;C:\QtSDK\mingw\bin\;C:\QtSDK\Desktop\Qt\4.8.0\msvc2010\bin\" an meine Umgebungsvariable Path angehangen
-in Netbeans unter Tools/Options eine neue Tool Collection angelegt mit Base Directory "C:\QtSDK\mingw\bin"
-QMake Command per Hand auf "C:\QtSDK\Desktop\Qt\4.8.0\msvc2010\bin\qmake.exe" gesetzt

Das allerdings alles nicht auf einmal, sondern nach und nach. Er hatte bei mir auch erst includes nicht gefunden, das scheint aber durchs setzen der Path Variablen behoben. Im Code an sich sind keine rot oder gelb markierten Fehler.
Ich weiß allerdings nicht, ob dies die richtige qmake.exe ist, weil das in der Anleitung auf der Netbeans Page anscheinend ne ältere QT Version oder nur die Libraries waren, wo die Pfade etwas anders heißen. Allerdings hab ich per Hand im QT Verzeichnis gesucht und eigentlich macht keine andere qmake.exe Sinn (die sind in Unterordnern von Symbian, Simulator etc).

Beim kompilieren vom HelloQTWorld Projekt (das Sample) bricht er dann ab:
"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE=/C/QtSDK/Desktop/Qt/4.8.0/msvc2010/bin/qmake.exe SUBPROJECTS= .build-conf
make[1]: Entering directory `/e/Multimedia/NetBeans_workspace/HelloQtWorld_1'
/C/QtSDK/Desktop/Qt/4.8.0/msvc2010/bin/qmake.exe VPATH=. -spec win32-g++ -o qttmp-Debug.mk nbproject/qt-Debug.pro
mv -f qttmp-Debug.mk nbproject/qt-Debug.mk
"/usr/bin/make" -f nbproject/qt-Debug.mk dist/Debug/MinGW_QT-Windows/HelloQtWorld_1.exe
make[2]: Entering directory `/e/Multimedia/NetBeans_workspace/HelloQtWorld_1'
g++ -mthreads -Wl,-subsystem,windows -o dist/Debug/MinGW_QT-Windows/HelloQtWorld_1.exe build/Debug/MinGW_QT-Windows/HelloForm.o build/Debug/MinGW_QT-Windows/newmain.o build/Debug/MinGW_QT-Windows/moc_HelloForm.o -L'c:/QtSDK/Desktop/Qt/4.8.0/msvc2010/lib' -lmingw32 -lqtmaind build/Debug/MinGW_QT-Windows/HelloQtWorld_1_resource_res.o -lQtGuid4 -lQtCored4
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /FAILIFMISMATCH:"_MSC_VER=1600" /FAILIFMISMATCH:"_ITERATOR_DEBUG_LEVEL=2" /DEFAULTLIB:"msvcprtd" /DEFAULTLIB:"MSVCRTD" /DEFAULTLIB:"OLDNAMES" ' unrecognized
c:/QtSDK/Desktop/Qt/4.8.0/msvc2010/lib/qtmaind.lib(tmp/obj/debug_shared/qtmain_win.obj):(.text[?realloc@?$QVector@PAD@@AAEXHH@Z]+0x19): undefined reference to `__security_cookie'
c:/QtSDK/Desktop/Qt/4.8.0/msvc2010/lib/qtmaind.lib(tmp/obj/debug_shared/qtmain_win.obj):(.text[?realloc@?$QVector@PAD@@AAEXHH@Z]+0x240): undefined reference to `_CxxThrowException@8'
c:/QtSDK/Desktop/Qt/4.8.0/msvc2010/lib/qtmaind.lib(tmp/obj/debug_shared/qtmain_win.obj):(.text[?realloc@?$QVector@PAD@@AAEXHH@Z]+0x3b1): undefined reference to `_CxxThrowException@8'
c:/QtSDK/Desktop/Qt/4.8.0/msvc2010/lib/qtmaind.lib(tmp/obj/debug_shared/qtmain_win.obj):(.text$x+0xd): undefined reference to `@__security_check_cookie@4'
c:/QtSDK/Desktop/Qt/4.8.0/msvc2010/lib/qtmaind.lib(tmp/obj/debug_shared/qtmain_win.obj):(.text$x+0x17): undefined reference to `__CxxFrameHandler3'
c:/QtSDK/Desktop/Qt/4.8.0/msvc2010/lib/qtmaind.lib(tmp/obj/debug_shared/qtmain_win.obj):(.data[??_R0?AVbad_alloc@std@@@8]+0x0): undefined reference to `??_7type_info@@6B@'
build/Debug/MinGW_QT-Windows/HelloForm.o: In function `HelloForm':
E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/HelloForm.cpp:33: undefined reference to `_imp___ZN7QDialogC2EP7QWidget6QFlagsIN2Qt10WindowTypeEE'
E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/HelloForm.cpp:35: undefined reference to `_imp___Z13qFlagLocationPKc'
E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/HelloForm.cpp:35: undefined reference to `_imp___Z13qFlagLocationPKc'
E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/HelloForm.cpp:35: undefined reference to `_imp___ZN7QObject7connectEPKS_PKcS1_S3_N2Qt14ConnectionTypeE'
E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/HelloForm.cpp:36: undefined reference to `_imp___ZN7QDialogD2Ev'
E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/HelloForm.cpp:33: undefined reference to `_imp___ZN7QDialogC2EP7QWidget6QFlagsIN2Qt10WindowTypeEE'
E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/HelloForm.cpp:35: undefined reference to `_imp___Z13qFlagLocationPKc'
E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/HelloForm.cpp:35: undefined reference to `_imp___Z13qFlagLocationPKc'
E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/HelloForm.cpp:35: undefined reference to `_imp___ZN7QObject7connectEPKS_PKcS1_S3_N2Qt14ConnectionTypeE'
E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/HelloForm.cpp:36: undefined reference to `_imp___ZN7QDialogD2Ev'
build/Debug/MinGW_QT-Windows/HelloForm.o: In function `~HelloForm':
E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/HelloForm.cpp:39: undefined reference to `_imp___ZN7QDialogD2Ev'
E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/HelloForm.cpp:39: undefined reference to `_imp___ZN7QDialogD2Ev'
E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/HelloForm.cpp:39: undefined reference to `_imp___ZN7QDialogD2Ev'
build/Debug/MinGW_QT-Windows/HelloForm.o:E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/HelloForm.cpp:42: undefined reference to `_imp___ZNK7QString7trimmedEv'
build/Debug/MinGW_QT-Windows/HelloForm.o:E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/HelloForm.cpp:43: undefined reference to `_imp___ZNK7QString7trimmedEv'
build/Debug/MinGW_QT-Windows/HelloForm.o:E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/HelloForm.cpp:43: undefined reference to `_imp___ZN9QLineEdit7setTextERK7QString'
build/Debug/MinGW_QT-Windows/HelloForm.o:E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/HelloForm.cpp:45: undefined reference to `_imp___ZN9QLineEdit5clearEv'
build/Debug/MinGW_QT-Windows/HelloForm.o:c:/QtSDK/Desktop/Qt/4.8.0/msvc2010/include/QtCore/qstring.h:274: undefined reference to `_imp___ZN7QString6appendERKS_'
build/Debug/MinGW_QT-Windows/HelloForm.o: In function `QString':
c:/QtSDK/Desktop/Qt/4.8.0/msvc2010/include/QtCore/qstring.h:726: undefined reference to `_imp___Z9qt_assertPKcS0_i'
c:/QtSDK/Desktop/Qt/4.8.0/msvc2010/include/QtCore/qstring.h:879: undefined reference to `_imp___ZN7QString11shared_nullE'
build/Debug/MinGW_QT-Windows/HelloForm.o: In function `~QString':
c:/QtSDK/Desktop/Qt/4.8.0/msvc2010/include/QtCore/qstring.h:880: undefined reference to `_imp___ZN7QString4freeEPNS_4DataE'
build/Debug/MinGW_QT-Windows/HelloForm.o: In function `ZplRK7QStringPKc':
c:/QtSDK/Desktop/Qt/4.8.0/msvc2010/include/QtCore/qstring.h:1029: undefined reference to `_imp___ZN7QString9fromAsciiEPKci'
build/Debug/MinGW_QT-Windows/HelloForm.o: In function `ZplPKcRK7QString':
c:/QtSDK/Desktop/Qt/4.8.0/msvc2010/include/QtCore/qstring.h:1031: undefined reference to `_imp___ZN7QString9fromAsciiEPKci'
build/Debug/MinGW_QT-Windows/HelloForm.o:c:/QtSDK/Desktop/Qt/4.8.0/msvc2010/include/QtGui/qwidget.h:1012: undefined reference to `_imp___ZN7QWidget6resizeERK5QSize'
build/Debug/MinGW_QT-Windows/HelloForm.o:E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/ui_HelloForm.h:33: undefined reference to `_imp___ZNK7QObject10objectNameEv'
build/Debug/MinGW_QT-Windows/HelloForm.o:E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/ui_HelloForm.h:34: undefined reference to `_imp___ZN7QString8fromUtf8EPKci'
build/Debug/MinGW_QT-Windows/HelloForm.o:E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/ui_HelloForm.h:34: undefined reference to `_imp___ZN7QObject13setObjectNameERK7QString'
build/Debug/MinGW_QT-Windows/HelloForm.o:E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/ui_HelloForm.h:36: undefined reference to `_imp___ZN9QLineEditC1EP7QWidget'
build/Debug/MinGW_QT-Windows/HelloForm.o:E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/ui_HelloForm.h:37: undefined reference to `_imp___ZN7QString8fromUtf8EPKci'
build/Debug/MinGW_QT-Windows/HelloForm.o:E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/ui_HelloForm.h:37: undefined reference to `_imp___ZN7QObject13setObjectNameERK7QString'
build/Debug/MinGW_QT-Windows/HelloForm.o:E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/ui_HelloForm.h:38: undefined reference to `_imp___ZN7QWidget11setGeometryERK5QRect'
build/Debug/MinGW_QT-Windows/HelloForm.o:E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/ui_HelloForm.h:39: undefined reference to `_imp___ZN6QLabelC1EP7QWidget6QFlagsIN2Qt10WindowTypeEE'
build/Debug/MinGW_QT-Windows/HelloForm.o:E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/ui_HelloForm.h:40: undefined reference to `_imp___ZN7QString8fromUtf8EPKci'
build/Debug/MinGW_QT-Windows/HelloForm.o:E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/ui_HelloForm.h:40: undefined reference to `_imp___ZN7QObject13setObjectNameERK7QString'
build/Debug/MinGW_QT-Windows/HelloForm.o:E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/ui_HelloForm.h:41: undefined reference to `_imp___ZN7QWidget11setGeometryERK5QRect'
build/Debug/MinGW_QT-Windows/HelloForm.o:E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/ui_HelloForm.h:42: undefined reference to `_imp___ZN9QLineEditC1EP7QWidget'
build/Debug/MinGW_QT-Windows/HelloForm.o:E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/ui_HelloForm.h:43: undefined reference to `_imp___ZN7QString8fromUtf8EPKci'
build/Debug/MinGW_QT-Windows/HelloForm.o:E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/ui_HelloForm.h:43: undefined reference to `_imp___ZN7QObject13setObjectNameERK7QString'
build/Debug/MinGW_QT-Windows/HelloForm.o:E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/ui_HelloForm.h:44: undefined reference to `_imp___ZN7QWidget10setEnabledEb'
build/Debug/MinGW_QT-Windows/HelloForm.o:E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/ui_HelloForm.h:45: undefined reference to `_imp___ZN7QWidget11setGeometryERK5QRect'
build/Debug/MinGW_QT-Windows/HelloForm.o:E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/ui_HelloForm.h:46: undefined reference to `_imp___ZN9QLineEdit8setFrameEb'
build/Debug/MinGW_QT-Windows/HelloForm.o:E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/ui_HelloForm.h:47: undefined reference to `_imp___ZN9QLineEdit11setReadOnlyEb'
build/Debug/MinGW_QT-Windows/HelloForm.o:E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/ui_HelloForm.h:51: undefined reference to `_imp___ZN11QMetaObject18connectSlotsByNameEP7QObject'
build/Debug/MinGW_QT-Windows/HelloForm.o:E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/ui_HelloForm.h:56: undefined reference to `_imp___ZN16QCoreApplication9translateEPKcS1_S1_NS_8EncodingE'
build/Debug/MinGW_QT-Windows/HelloForm.o:E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/ui_HelloForm.h:56: undefined reference to `_imp___ZN7QWidget14setWindowTitleERK7QString'
build/Debug/MinGW_QT-Windows/HelloForm.o:E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/ui_HelloForm.h:57: undefined reference to `_imp___ZN16QCoreApplication9translateEPKcS1_S1_NS_8EncodingE'
build/Debug/MinGW_QT-Windows/HelloForm.o:E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/ui_HelloForm.h:57: undefined reference to `_imp___ZN6QLabel7setTextERK7QString'
build/Debug/MinGW_QT-Windows/HelloForm.o:E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/ui_HelloForm.h:58: undefined reference to `_imp___ZN9QLineEdit7setTextERK7QString'
build/Debug/MinGW_QT-Windows/newmain.o: In function `Z5qMainiPPc':
E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/newmain.cpp:38: undefined reference to `_imp___ZN12QApplicationC1ERiPPci'
E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/newmain.cpp:43: undefined reference to `_imp___ZN12QApplication4execEv'
E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/newmain.cpp:43: undefined reference to `_imp___ZN12QApplicationD1Ev'
E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/newmain.cpp:43: undefined reference to `_imp___ZN12QApplicationD1Ev'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/moc_HelloForm.cpp:46: undefined reference to `_imp___ZNK11QMetaObject4castEP7QObject'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/moc_HelloForm.cpp:46: undefined reference to `_imp___Z9qt_assertPKcS0_i'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/moc_HelloForm.cpp:78: undefined reference to `_imp___ZN7QDialog11qt_metacastEPKc'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/moc_HelloForm.cpp:83: undefined reference to `_imp___ZN7QDialog11qt_metacallEN11QMetaObject4CallEiPPv'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o: In function `_static_initialization_and_destruction_0':
E:\Multimedia\NetBeans_workspace\HelloQtWorld_1/moc_HelloForm.cpp:62: undefined reference to `_imp___ZN7QDialog16staticMetaObjectE'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:c:/QtSDK/Desktop/Qt/4.8.0/msvc2010/include/QtCore/qscopedpointer.h:112: undefined reference to `_imp___Z9qt_assertPKcS0_i'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x1c): undefined reference to `QWidget::event(QEvent*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x20): undefined reference to `QDialog::eventFilter(QObject*, QEvent*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x24): undefined reference to `QObject::timerEvent(QTimerEvent*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x28): undefined reference to `QObject::childEvent(QChildEvent*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x2c): undefined reference to `QObject::customEvent(QEvent*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x30): undefined reference to `QObject::connectNotify(char const*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x34): undefined reference to `QObject::disconnectNotify(char const*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x38): undefined reference to `QWidget::devType() const'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x3c): undefined reference to `QDialog::setVisible(bool)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x40): undefined reference to `QDialog::sizeHint() const'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x44): undefined reference to `QDialog::minimumSizeHint() const'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x48): undefined reference to `QWidget::heightForWidth(int) const'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x4c): undefined reference to `QWidget::getDC() const'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x50): undefined reference to `QWidget::releaseDC(HDC__*) const'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x54): undefined reference to `QWidget::paintEngine() const'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x58): undefined reference to `QWidget::mousePressEvent(QMouseEvent*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x5c): undefined reference to `QWidget::mouseReleaseEvent(QMouseEvent*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x60): undefined reference to `QWidget::mouseDoubleClickEvent(QMouseEvent*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x64): undefined reference to `QWidget::mouseMoveEvent(QMouseEvent*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x68): undefined reference to `QWidget::wheelEvent(QWheelEvent*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x6c): undefined reference to `QDialog::keyPressEvent(QKeyEvent*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x70): undefined reference to `QWidget::keyReleaseEvent(QKeyEvent*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x74): undefined reference to `QWidget::focusInEvent(QFocusEvent*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x78): undefined reference to `QWidget::focusOutEvent(QFocusEvent*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x7c): undefined reference to `QWidget::enterEvent(QEvent*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x80): undefined reference to `QWidget::leaveEvent(QEvent*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x84): undefined reference to `QWidget::paintEvent(QPaintEvent*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x88): undefined reference to `QWidget::moveEvent(QMoveEvent*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x8c): undefined reference to `QDialog::resizeEvent(QResizeEvent*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x90): undefined reference to `QDialog::closeEvent(QCloseEvent*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x94): undefined reference to `QDialog::contextMenuEvent(QContextMenuEvent*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x98): undefined reference to `QWidget::tabletEvent(QTabletEvent*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x9c): undefined reference to `QWidget::actionEvent(QActionEvent*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xa0): undefined reference to `QWidget::dragEnterEvent(QDragEnterEvent*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xa4): undefined reference to `QWidget::dragMoveEvent(QDragMoveEvent*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xa8): undefined reference to `QWidget::dragLeaveEvent(QDragLeaveEvent*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xac): undefined reference to `QWidget::dropEvent(QDropEvent*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xb0): undefined reference to `QDialog::showEvent(QShowEvent*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xb4): undefined reference to `QWidget::hideEvent(QHideEvent*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xb8): undefined reference to `QWidget::winEvent(tagMSG*, long*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xbc): undefined reference to `QWidget::changeEvent(QEvent*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xc0): undefined reference to `QWidget::metric(QPaintDevice::PaintDeviceMetric) const'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xc4): undefined reference to `QWidget::inputMethodEvent(QInputMethodEvent*)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xc8): undefined reference to `QWidget::inputMethodQuery(Qt::InputMethodQuery) const'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xcc): undefined reference to `QWidget::focusNextPrevChild(bool)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xd0): undefined reference to `QWidget::styleChange(QStyle&)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xd4): undefined reference to `QWidget::enabledChange(bool)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xd8): undefined reference to `QWidget::paletteChange(QPalette const&)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xdc): undefined reference to `QWidget::fontChange(QFont const&)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xe0): undefined reference to `QWidget::windowActivationChange(bool)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xe4): undefined reference to `QWidget::languageChange()'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xe8): undefined reference to `QDialog::done(int)'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xec): undefined reference to `QDialog::accept()'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xf0): undefined reference to `QDialog::reject()'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x104): undefined reference to `non-virtual thunk to QWidget::devType() const'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x108): undefined reference to `non-virtual thunk to QWidget::paintEngine() const'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x10c): undefined reference to `non-virtual thunk to QWidget::getDC() const'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x110): undefined reference to `non-virtual thunk to QWidget::releaseDC(HDC__*) const'
build/Debug/MinGW_QT-Windows/moc_HelloForm.o:moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x114): undefined reference to `non-virtual thunk to QWidget::metric(QPaintDevice::PaintDeviceMetric) const'
make[2]: Leaving directory `/e/Multimedia/NetBeans_workspace/HelloQtWorld_1'
collect2: ld returned 1 exit status
make[1]: Leaving directory `/e/Multimedia/NetBeans_workspace/HelloQtWorld_1'
make[2]: *** [dist/Debug/MinGW_QT-Windows/HelloQtWorld_1.exe] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2


BUILD FAILED (exit value 2, total time: 9s)
edit: Hab auf meinem Notebook Ubuntu 11.10 laufen und dachte mir ich probier es da mal aus. Klappt alles einwandfrei unter Linux, kompiliert alles ordnungsgemäß und das Programm startet mit Netbeans.
Habe auf Windows mal das Qt SDK runtergschmissen und nur die Libraries + MinGW einzeln installiert. Jetzt habe ich wieder nen rot unterstrichenes #include <QtGui/QApplication> und er bricht ab mit:
"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE=/C/Qt/4.8.0/qmake/qmake.exe SUBPROJECTS= .build-conf
make[1]: Entering directory `/e/Multimedia/NetBeans_workspace/HelloQtWorld_1'
/C/Qt/4.8.0/qmake/qmake.exe VPATH=. -spec win32-g++ -o qttmp-Debug.mk nbproject/qt-Debug.pro
Could not find mkspecs for your QMAKESPEC(win32-g++) after trying:
C:/iwmake/build_mingw_opensource\mkspecs
Error processing project file: nbproject/qt-Debug.pro
make[1]: *** [nbproject/qt-Debug.mk] Error 3
make: *** [.build-impl] Error 2
make[1]: Leaving directory `/e/Multimedia/NetBeans_workspace/HelloQtWorld_1'


BUILD FAILED (exit value 2, total time: 1s)

Antworten