Results 1 to 2 of 2

Thread: How to install QT 4.6.3 under Windows 7

  1. #1
    Join Date
    Aug 2010
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Exclamation How to install QT 4.6.3 under Windows 7

    Hi, I downloaded QT from nokia.qt.com(the version 4.6.3) and at first, I didn't configure it(because I didn't knew it had to be done), added the environment vars and everything worked fine. Then I wanted to try Phonon, so I googled it, and tried configuring it and everything, and since then, everything went downhill, I get lots of errors trying to compile files that I had compiled and runned before. I uninstalled and re-installed QT, configured it in different ways and now I dont seem to get it work. It opens QT Creator and everything, but the code(if Im doing pure code) doesn't compile.

    Trying to compile this simple code:
    Qt Code:
    1. #include <QtGui>
    2.  
    3. int main(int argc, char *argv[])
    4. {
    5. QApplication app(argc, argv);
    6. QLabel label("Hello, world!");
    7. label.show();
    8. return app.exec();
    9. }
    To copy to clipboard, switch view to plain text mode 

    here's what I get:

    Qt Code:
    1. make -f Makefile.Debug all
    2. make[1]: Entering directory `C:/Qt/4.6.3/qt/pa'
    3. g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -
    4. DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\in
    5. clude\QtCore" -I"..\include\QtGui" -I"..\include" -I"." -I"..\include\ActiveQt"
    6. -I"tmp\moc\debug_shared" -I"c:\Program Files (x86)\Microsoft DirectX SDK (June 2
    7. 010)\Include" -I"c:\Program Files\Microsoft SDKs\Windows\v7.1\Include" -I"c:\Pro
    8. gram Files\Microsoft SDKs\Windows\v6.1\Include" -I"c:\Program Files (x86)\Glade\
    9. include" -I"..\mkspecs\win32-g++" -o tmp\obj\debug_shared\main.o main.cpp
    10. main.cpp:9:2: warning: no newline at end of file
    11. g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
    12. oc -mthreads -Wl -Wl,-subsystem,windows -o debug\pa.exe tmp/obj/debug_shared/mai
    13. n.o -L"c:\Qt\4.6.3\qt\lib" -L"c:\Program Files\Microsoft SDKs\Windows\v6.1\Lib"
    14. -L"c:\Program Files\Microsoft SDKs\Windows\v7.1\Lib" -L"c:\Program Files (x86)\
    15. Microsoft DirectX SDK (June 2010)\Lib" -L"c:\Qt\4.6.3\qt\lib" -lmingw32 -lqtmain
    16. d -lQtGuid4 -lQtCored4
    17. c:\Qt\4.6.3\qt\lib/libqtmaind.a(qtmain_win.o)(.text+0x64):../../include/QtCore/.
    18. ./../src/corelib/tools/qvector.h:410: undefined reference to `_Unwind_Resume'
    19. c:\Qt\4.6.3\qt\lib/libqtmaind.a(qtmain_win.o)(.text+0x12a):C:\qt-greenhouse\Trol
    20. ltech\Code_less_create_more\Trolltech\Code_less_create_more\Troll\4.6\qt\src\win
    21. main/qtmain_win.cpp:135: undefined reference to `_Unwind_Resume'
    22. c:\Qt\4.6.3\qt\lib/libqtmaind.a(qtmain_win.o)(.text$_ZN7QVectorIPcE7reallocEii[Q
    23. Vector<char*>::realloc(int, int)]+0x1a1):../../include/QtCore/../../src/corelib/
    24. tools/qvector.h:482: undefined reference to `_Unwind_Resume'
    25. c:\Qt\4.6.3\qt\lib/libqtmaind.a(qtmain_win.o)(.text$_ZN7QVectorIPcE7reallocEii[Q
    26. Vector<char*>::realloc(int, int)]+0x1dc):../../include/QtCore/../../src/corelib/
    27. tools/qvector.h:483: undefined reference to `_Unwind_Resume'
    28. c:\Qt\4.6.3\qt\lib/libqtmaind.a(qtmain_win.o)(.eh_frame+0x12): In function `Z4qM
    29. inIiERKT_S2_S2_':
    30. ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:95: undefined refer
    31. ence to `__gxx_personality_v0'
    32. collect2: ld returned 1 exit status
    33. make[1]: *** [debug\pa.exe] Error 1
    34. make[1]: Leaving directory `C:/Qt/4.6.3/qt/pa'
    35. make: *** [debug-all] Error 2
    To copy to clipboard, switch view to plain text mode 

    And here are my environment variables:

    Include .- C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include;C:\Program Files\Microsoft SDKs\Windows\v7.1\Include;C:\Program Files\Microsoft SDKs\Windows\v6.1\Include;C:\Program Files (x86)\Glade\include

    Lib .- C:\Program Files\Microsoft SDKs\Windows\v6.1\Lib;;C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib;C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Lib

    Path .- C:\Program Files (x86)\java\jre6\bin;C:\MinGW;C:\Qt\4.6.3\qt\bin;C: \Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin;C:\Program Files (x86)\Dev-Cpp\bin;C:\Program Files (x86)\Glade\bin

    QMAKESPEC .- win32-g++

    and QTDIR.- C:\Qt\4.6.3

    Can anybody point me as to what I did wrong? Thanks for taking the time to read this and trying to help

  2. #2
    Join Date
    May 2009
    Location
    Vienna
    Posts
    91
    Thanks
    18
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to install QT 4.6.3 under Windows 7

    Hello,
    i'm under linux but the main problem seems to be :qtmain_win.cpp:135: undefined reference to `_Unwind_Resume' and 483: undefined reference to `_Unwind_Resume'

    google tells:
    http://www.google.at/#hl=de&source=h...5c23fd84fa28c9

    or:
    http://www.qtforum.org/article/29890...g-problem.html

    good Luck,
    greetz A.

Similar Threads

  1. how to install qt in windows xp sp3
    By mohanakrishnan in forum Newbie
    Replies: 4
    Last Post: 27th October 2009, 11:17
  2. Install QT 4.5 on windows
    By hosseinyounesi in forum Installation and Deployment
    Replies: 4
    Last Post: 20th April 2009, 06:33
  3. Problem install qwt on windows
    By kid17 in forum Qwt
    Replies: 5
    Last Post: 3rd December 2008, 12:19
  4. to install Qt4 in Windows
    By SudaNix in forum Installation and Deployment
    Replies: 1
    Last Post: 6th December 2006, 09:00
  5. Help to install Qt in Windows Xp
    By joseph in forum General Discussion
    Replies: 2
    Last Post: 15th November 2006, 09:40

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.