Hi guys and Ladies. Really want to learn QT. But why so hard to get going.
Installed QT 4.6.2 binary, open source. Next -> Next -> Next etc on my Windows XP.
Start Creator. Choose sample "Application". Choose Build.
Now shouldn't this just work out of the box. Oh no. I get all the errors described below (shortened).
I really don't want to proceed if I can't resolve this issue which shouldn't be there in the first place (think its important to get a good start, things can soon enough get difficult).
Been sweeping the net for a couple of hours now without getting anything.
Somebody got some pointers in the right direction please. Don't want to quit just yet, but I feel it's up hill right now. Please please.
(already added som dirs to global path).
B.R. Ohlfsen
Running build steps for project application...
Configuration unchanged, skipping QMake step.
Starting: C:/Qt/2010_02_1/mingw/bin/mingw32-make.exe -w
mingw32-make: Entering directory `C:/Qt/2010_02_1/qt/examples/mainwindows/application'
C:/Qt/2010_02_1/mingw/bin/mingw32-make -f Makefile.Debug all
mingw32-make[1]: Entering directory `C:/Qt/2010_02_1/qt/examples/mainwindows/application'
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows -o debug\application.exe tmp/obj/debug_shared/main.o tmp/obj/debug_shared/mainwindow.o tmp/obj/debug_shared/moc_mainwindow.o tmp/obj/debug_shared/qrc_application.o -L"c:\Qt\2010_02_1\qt\lib" -L"c:\Programmer\SQLXML 4.0\bin\" -L"c:\Qt\2010_02_1\qt\lib" -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4
mingw32-make[1]: Leaving directory `C:/Qt/2010_02_1/qt/examples/mainwindows/application'
mingw32-make: Leaving directory `C:/Qt/2010_02_1/qt/examples/mainwindows/application'
tmp/obj/debug_shared/main.o: In function `Z5qMainiPPc':
C:\Qt\2010_02_1\qt\examples\mainwindows\applicatio n/main.cpp:51: undefined reference to `_imp___ZN12QApplicationC1ERiPPci'
C:\Qt\2010_02_1\qt\examples\mainwindows\applicatio n/main.cpp:52: undefined reference to `_imp___ZN16QCoreApplication19setOrganizationNameE RK7QString'
C:\Qt\2010_02_1\qt\examples\mainwindows\applicatio n/main.cpp:53: undefined reference to `_imp___ZN16QCoreApplication18setApplicationNameER K7QString'
C:\Qt\2010_02_1\qt\examples\mainwindows\applicatio n/main.cpp:56: undefined reference to `_imp___ZN12QApplication4execEv'
C:\Qt\2010_02_1\qt\examples\mainwindows\applicatio n/main.cpp:56: undefined reference to `_imp___ZN12QApplicationD1Ev'
C:\Qt\2010_02_1\qt\examples\mainwindows\applicatio n/main.cpp:56: undefined reference to `_imp___ZN12QApplicationD1Ev'
tmp/obj/debug_shared/main.o: In function `QString':
C:\Qt\2010_02_1\qt\examples\mainwindows\applicatio n/../../../include/QtCore/../../src/corelib/tools/qstring.h:413: undefined reference to `_imp___ZN7QString16fromAscii_helperEPKci'
tmp/obj/debug_shared/main.o: In function `~QString':
C:\Qt\2010_02_1\qt\examples\mainwindows\applicatio n/../../../include/QtCore/../../src/corelib/tools/qstring.h:869: undefined reference to `_imp___ZN7QString4freeEPNS_4DataE'
tmp/obj/debug_shared/main.o: In function `~MainWindow':
C:\Qt\2010_02_1\qt\examples\mainwindows\applicatio n/mainwindow.h:55: undefined reference to `_imp___ZN11QMainWindowD2Ev'
C:\Qt\2010_02_1\qt\examples\mainwindows\applicatio n/mainwindow.h:55: undefined reference to `_imp___ZN11QMainWindowD2Ev'
tmp/obj/debug_shared/mainwindow.o: In function `MainWindow':
C:\Qt\2010_02_1\qt\examples\mainwindows\applicatio n/mainwindow.cpp:49: undefined reference to `_imp___ZN11QMainWindowC2EP7QWidget6QFlagsIN2Qt10W indowTypeEE'
C:\Qt\2010_02_1\qt\examples\mainwindows\applicatio n/mainwindow.cpp:52: undefined reference to `_imp___ZN14QPlainTextEditC1EP7QWidget'
C:\Qt\2010_02_1\qt\examples\mainwindows\applicatio n/mainwindow.cpp:53: undefined reference to `_imp___ZN11QMainWindow16setCentralWidgetEP7QWidge t'
C:\Qt\2010_02_1\qt\examples\mainwindows\applicatio n/mainwindow.cpp:63: undefined reference to `_imp___Z13qFlagLocationPKc'
C:\Qt\2010_02_1\qt\examples\mainwindows\applicatio n/mainwindow.cpp:63: undefined reference to `_imp___Z13qFlagLocationPKc'
C:\Qt\2010_02_1\qt\examples\mainwindows\applicatio n/mainwindow.cpp:63: undefined reference to `_imp___ZNK14QPlainTextEdit8documentEv'
C:\Qt\2010_02_1\qt\examples\mainwindows\applicatio n/mainwindow.cpp:63: undefined reference to `_imp___ZN7QObject7connectEPKS_PKcS1_S3_N2Qt14Conn ectionTypeE'
undefined reference to `QWidget::changeEvent(QEvent*)'
tmp/obj/debug_shared/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10 MainWindow[vtable for MainWindow]+0xc0): undefined reference to `QWidget::metric(QPaintDevice::PaintDeviceMetric) const'
tmp/obj/debug_shared/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10 MainWindow[vtable for MainWindow]+0xc4): undefined reference to `QWidget::inputMethodEvent(QInputMethodEvent*)'
tmp/obj/debug_shared/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10 MainWindow[vtable for MainWindow]+0xc8): undefined reference to `QWidget::inputMethodQuery(Qt::InputMethodQuery) const'
tmp/obj/debug_shared/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10 MainWindow[vtable for MainWindow]+0xcc): undefined reference to `QWidget::focusNextPrevChild(bool)'
tmp/obj/debug_shared/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10 MainWindow[vtable for MainWindow]+0xd0): undefined reference to `QWidget::styleChange(QStyle&)'
tmp/obj/debug_shared/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10 MainWindow[vtable for MainWindow]+0xd4): undefined reference to `QWidget::enabledChange(bool)'
tmp/obj/debug_shared/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10 MainWindow[vtable for MainWindow]+0xd8): undefined reference to `QWidget::paletteChange(QPalette const&)'
tmp/obj/debug_shared/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10 MainWindow[vtable for MainWindow]+0xdc): undefined reference to `QWidget::fontChange(QFont const&)'
tmp/obj/debug_shared/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10 MainWindow[vtable for MainWindow]+0xe0): undefined reference to `QWidget::windowActivationChange(bool)'
tmp/obj/debug_shared/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10 MainWindow[vtable for MainWindow]+0xe4): undefined reference to `QWidget::languageChange()'
tmp/obj/debug_shared/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10 MainWindow[vtable for MainWindow]+0xe8): undefined reference to `QMainWindow::createPopupMenu()'
tmp/obj/debug_shared/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10 MainWindow[vtable for MainWindow]+0xfc): undefined reference to `non-virtual thunk to QWidget::devType() const'
tmp/obj/debug_shared/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10 MainWindow[vtable for MainWindow]+0x100): undefined reference to `non-virtual thunk to QWidget::paintEngine() const'
tmp/obj/debug_shared/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10 MainWindow[vtable for MainWindow]+0x104): undefined reference to `non-virtual thunk to QWidget::getDC() const'
tmp/obj/debug_shared/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10 MainWindow[vtable for MainWindow]+0x108): undefined reference to `non-virtual thunk to QWidget::releaseDC(HDC__*) const'
tmp/obj/debug_shared/moc_mainwindow.o:moc_mainwindow.cpp:(.rdata$_ZTV10 MainWindow[vtable for MainWindow]+0x10c): undefined reference to `non-virtual thunk to QWidget::metric(QPaintDevice::PaintDeviceMetric) const'
tmp/obj/debug_shared/moc_mainwindow.o: In function `~MainWindow':
C:\Qt\2010_02_1\qt\examples\mainwindows\applicatio n/tmp/moc/debug_shared//../../../mainwindow.h:55: undefined reference to `_imp___ZN11QMainWindowD2Ev'
C:\Qt\2010_02_1\qt\examples\mainwindows\applicatio n/tmp/moc/debug_shared//../../../mainwindow.h:55: undefined reference to `_imp___ZN11QMainWindowD2Ev'
tmp/obj/debug_shared/qrc_application.o: In function `Z26qInitResources_applicationv':
C:\Qt\2010_02_1\qt\examples\mainwindows\applicatio n/tmp/rcc/debug_shared/qrc_application.cpp:636: undefined reference to `_imp___Z21qRegisterResourceDataiPKhS0_S0_'
tmp/obj/debug_shared/qrc_application.o: In function `Z29qCleanupResources_applicationv':
C:\Qt\2010_02_1\qt\examples\mainwindows\applicatio n/tmp/rcc/debug_shared/qrc_application.cpp:645: undefined reference to `_imp___Z23qUnregisterResourceDataiPKhS0_S0_'
c:/qt/2010_02_1/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../libmingw32.a(main.o):main.c:(.text+0x104): undefined reference to `WinMain@16'
collect2: ld returned 1 exit status
mingw32-make[1]: *** [debug\application.exe] Error 1
mingw32-make: *** [debug-all] Error 2
Exited with code 2.
Error while building project application
When executing build step 'Make'
Bookmarks