Results 1 to 15 of 15

Thread: Installing Qt 4.4 for Morons?

  1. #1
    Join Date
    Oct 2008
    Posts
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Installing Qt 4.4 for Morons?

    I sware I've tried every guide I can find on how to install Qt 4.4 OpenSource.
    I just simply can't figure out how to properly install it!

    Does anyone have a "tried and true" method for installing Qt 4.4 (+ Eclipse / Visual Studio 2003, whichever's fine.) on Windows XP SP3? Could you walk me through it please?

    I've been looking at Qt, and it seems like a really powerful framework, I just can't get it to install...

    I'm going to try this guide...
    http://wiki.qtcentre.org/index.php?t...Simple_Project
    Last edited by chris062689; 9th October 2008 at 08:17.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Installing Qt 4.4 for Morons?

    The easiest thing to do is to download the version for MinGW that has an installer and run it. Afterwards you are immediately ready to go. If you want to integrate your installation with some IDE, install the Eclipse integration. Note that this is optional, the framework will work without Eclipse - you can even use notepad to develop your applications.

  3. #3
    Join Date
    Oct 2008
    Posts
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Installing Qt 4.4 for Morons?

    Well, following that guide I'm stuck at the configure part.


    Qt Code:
    1. Setting environment for using Microsoft Visual Studio 2008 x86 tools.
    2.  
    3. C:\Program Files\Microsoft Visual Studio 9.0\VC>cd C:\qt
    4.  
    5. C:\qt>configure
    6.  
    7. This is the Qt for Windows Open Source Edition.
    8.  
    9. You are licensed to use this software under the terms of
    10. the GNU General Public License (GPL) version 2 or 3.
    11.  
    12. Type '2' to view the GNU General Public License version 2 (GPLv2).
    13. Type '3' to view the GNU General Public License version 3 (GPLv3).
    14. Type 'y' to accept this license offer.
    15. Type 'n' to decline this license offer.
    16.  
    17. Do you accept the terms of the license?
    18. y
    19. Setting Direct3D to NO, since the proper Direct3D SDK was not detected.
    20. Make sure you have the Direct3D SDK installed, and that you have run
    21. the <path to SDK>\Utilities\Bin\dx_setenv.cmd script.
    22. The D3D SDK library path *needs* to appear before the Platform SDK library
    23. path in your LIB environment variable.
    24. Environment:
    25. INCLUDE=
    26. C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE
    27. C:\Program Files\Microsoft SDKs\Windows\v6.0A\include
    28.  
    29. LIB=
    30. C:\Program Files\Microsoft Visual Studio 9.0\VC\LIB
    31. C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib
    32.  
    33. PATH=
    34. C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE
    35. C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
    36. C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools
    37. C:\WINDOWS\Microsoft.NET\Framework\v3.5
    38. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
    39. C:\Program Files\Microsoft Visual Studio 9.0\VC\VCPackages
    40. C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin
    41. C:\WINDOWS\system32
    42. C:\WINDOWS
    43. C:\WINDOWS\System32\Wbem
    44. You are licensed to use this software under the terms of the GNU GPL version 2 o
    45. r 3.
    46. See C:/qt/LICENSE.GPL2
    47. or C:/qt/LICENSE.GPL3
    48.  
    49. Configuration:
    50. dist-config
    51. large-config
    52. medium-config
    53. minimal-config
    54. small-config
    55. full-config
    56. build_all
    57. debug
    58. Qt Configuration:
    59. release
    60. debug
    61. zlib
    62. png
    63. accessibility
    64. qt3support
    65. opengl
    66. ipv6
    67. xmlpatterns
    68. phonon
    69. phonon-backend
    70. webkit
    71. svg
    72. minimal-config
    73. small-config
    74. medium-config
    75. large-config
    76. full-config
    77.  
    78. QMAKESPEC...................win32-msvc2008 (detected)
    79. Architecture................windows
    80. Maketool....................nmake
    81. Debug symbols...............yes
    82. Accessibility support.......yes
    83. STL support.................yes
    84. Exception support...........yes
    85. RTTI support................yes
    86. MMX support.................yes
    87. 3DNOW support...............yes
    88. SSE support.................yes
    89. SSE2 support................yes
    90. IWMMXT support..............no
    91. OpenGL support..............yes
    92. Direct3D support............no
    93. OpenSSL support.............no
    94. QtDBus support..............no
    95. QtXmlPatterns support.......yes
    96. Phonon support..............yes
    97. WebKit support..............yes
    98. Qt3 compatibility...........yes
    99.  
    100. Third Party Libraries:
    101. ZLIB support............qt
    102. GIF support.............plugin
    103. TIFF support............plugin
    104. JPEG support............plugin
    105. PNG support.............qt
    106. MNG support.............plugin
    107.  
    108. Styles:
    109. Windows.................yes
    110. Windows XP..............yes
    111. Windows Vista...........yes
    112. Plastique...............yes
    113. Cleanlooks..............yes
    114. Motif...................yes
    115. CDE.....................yes
    116. Windows CE..............no
    117. Windows Mobile..........no
    118.  
    119. Sql Drivers:
    120. ODBC....................no
    121. MySQL...................no
    122. OCI.....................no
    123. PostgreSQL..............no
    124. TDS.....................no
    125. DB2.....................no
    126. SQLite..................plugin (qt)
    127. SQLite2.................no
    128. InterBase...............no
    129.  
    130. Sources are in..............C:\qt
    131. Build is done in............C:\qt
    132. Install prefix..............C:\qt
    133. Headers installed to........C:\qt\include
    134. Libraries installed to......C:\qt\lib
    135. Plugins installed to........C:\qt\plugins
    136. Binaries installed to.......C:\qt\bin
    137. Docs installed to...........C:\qt\doc
    138. Data installed to...........C:\qt
    139. Translations installed to...C:\qt\translations
    140. Examples installed to.......C:\qt\examples
    141. Demos installed to..........C:\qt\demos
    142.  
    143. Creating qmake...
    144.  
    145. Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
    146. Copyright (C) Microsoft Corporation. All rights reserved.
    147.  
    148. Creating makefiles in src...
    149. Generating Visual Studio project files...
    150. Could not find mkspecs for your QMAKESPEC(win32-msvc2008) after trying:
    151. C:\Qt4-shared\mkspecs
    152. Error processing project file: C:/qt/projects.pro
    153. Qmake failed, return code 3
    154.  
    155. Generating Makefiles...
    156. Could not find mkspecs for your QMAKESPEC(win32-msvc2008) after trying:
    157. C:\Qt4-shared\mkspecs
    158. Error processing project file: C:/qt/projects.pro
    159. Qmake failed, return code 3
    160.  
    161.  
    162. C:\qt>
    To copy to clipboard, switch view to plain text mode 

  4. #4
    Join Date
    Oct 2008
    Posts
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Installing Qt 4.4 for Morons?

    After looking around, it appears that Microsoft Visual Studio C++ Express isn't supported?

    Is MSVS 2005 Express supported?
    Is there a way I can use MSVS 2008 Express with Qt?

    I'll just do it with MSVS 2005 Express...
    I followed this guide: http://53prime.com/?p=87
    I'll report back if it works!
    [EDIT: Nope, msvs 2005 express isn't supported either?!]
    Last edited by chris062689; 9th October 2008 at 10:26.

  5. #5
    Join Date
    Oct 2008
    Posts
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Installing Qt 4.4 for Morons?

    Does anyone have a good tutorial on how to install Eclipse, Qt, Mingw?
    I guess I'll just use Eclipse. I really don't care as long as I can use Qt!

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Installing Qt 4.4 for Morons?

    As far as I know msvc-2008 is supported... I can see support for it in both the commercial and open source editions. If you use prefix in Windows, you have to manually copy the mkspecs directory or issue make install_mkspecs before building Qt. There is something wrong with the compilation process and qmake looks for the specs in a wrong directory.

  7. #7
    Join Date
    Oct 2008
    Posts
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Installing Qt 4.4 for Morons?

    Trying Eclipse... this is giving me a migraine.

    (After I ran configure, I ran mingw32make, this is what happened)
    Qt Code:
    1. [tons of code here]
    2. Could Not Find C:\Qt\4.4.3\qmake\project.o
    3. del qmake
    4. Could Not Find C:\Qt\4.4.3\qmake\qmake
    5. mingw32-make[1]: Leaving directory `C:/Qt/4.4.3/qmake'
    6. mingw32-make: *** No rule to make target `configure'. Stop.
    7.  
    8. C:\Qt\4.4.3>make
    9. cd \src\winmain\ && c:\Qt\4.4.3\bin\qmake.exe winmain.pro -win32 -o Makefile
    10. Cannot find file: winmain.pro.
    11. mingw32-make: *** [\src\winmain\Makefile] Error 2
    12.  
    13. C:\Qt\4.4.3>
    To copy to clipboard, switch view to plain text mode 

    I think I'm getting closer, but what's wrong?
    Last edited by chris062689; 9th October 2008 at 22:16.

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Installing Qt 4.4 for Morons?

    Ok, but why are you trying to build Qt if you already have it built for MinGW? Don't try to make things harder than they are.

  9. #9
    Join Date
    Oct 2008
    Posts
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Installing Qt 4.4 for Morons?

    When I try to compile a program using g++, it comes back with errors...
    So I assumed I needed to compile it..

    OK, what steps do you suggest doing to install Qt / Eclipse?

  10. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Installing Qt 4.4 for Morons?

    I already wrote that few posts earlier. Install the binary package and you're ready to go. If you want eclipse integration, install the integration package and again you should be ready to go. Just make sure proper environment variables are defined. You can do that by using the "Qt command prompt" entry from the start menu.

  11. #11
    Join Date
    Oct 2008
    Posts
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Installing Qt 4.4 for Morons?

    What?
    I tried installing that binary package, and then tried compiling my Hello World program with "g++", it came back with errors

    C:\Documents and Settings\Administrator\My Documents\QtExamples\helloworld>g++ h
    elloworld.cpp
    helloworld.cpp:1:25: QApplication: No such file or directory
    helloworld.cpp:2:24: QPushButton: No such file or directory
    helloworld.cpp: In function `int main(int, char**)':
    helloworld.cpp:6: error: `QApplication' was not declared in this scope
    helloworld.cpp:6: error: expected `;' before "app"
    helloworld.cpp:8: error: `QPushButton' was not declared in this scope
    helloworld.cpp:8: error: expected `;' before "hello"
    helloworld.cpp:9: error: `hello' was not declared in this scope
    helloworld.cpp:12: error: `app' was not declared in this scope
    helloworld.cpp:13:3: warning: no newline at end of file

    Qt Code:
    1. #include <QApplication>
    2. #include <QPushButton>
    3.  
    4. int main(int argc, char *argv[])
    5. {
    6. QApplication app(argc, argv);
    7.  
    8. QPushButton hello("Hello world!");
    9. hello.resize(100, 30);
    10.  
    11. hello.show();
    12. return app.exec();
    13. }
    To copy to clipboard, switch view to plain text mode 

    I'm so confused what I'm SUPPOSED to do and what I'm NOT SUPPOSED to do..

  12. #12
    Join Date
    Oct 2008
    Posts
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Installing Qt 4.4 for Morons?

    /sheds a tear.
    I *finally* compiled my own program!

    But.. it took so many steps...

    Qt Code:
    1. C:\MyQT\helloworld>dir
    2. Volume in drive C has no label.
    3.  
    4. Directory of C:\MyQT\helloworld
    5.  
    6. 10/10/2008 05:12 AM <DIR> .
    7. 10/10/2008 05:12 AM <DIR> ..
    8. 10/10/2008 04:38 AM 249 helloworld.cpp
    9. 1 File(s) 249 bytes
    10. 2 Dir(s) 217,473,863,680 bytes free
    11.  
    12. C:\MyQT\helloworld>qmake -project
    13.  
    14. C:\MyQT\helloworld>qmake
    15.  
    16. C:\MyQT\helloworld>make
    17. mingw32-make -f Makefile.Debug
    18. mingw32-make[1]: Entering directory `C:/MyQT/helloworld'
    19. g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -
    20. DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..
    21. \Qt\4.4.3\include\QtCore" -I"..\..\Qt\4.4.3\include\QtCore" -I"..\..\Qt\4.4.3\in
    22. clude\QtGui" -I"..\..\Qt\4.4.3\include\QtGui" -I"..\..\Qt\4.4.3\include" -I"." -
    23. I"c:\Qt\4.4.3\include\ActiveQt" -I"debug" -I"." -I"..\..\Qt\4.4.3\mkspecs\win32-
    24. g++" -o debug\helloworld.o helloworld.cpp
    25. helloworld.cpp:13:3: warning: no newline at end of file
    26. g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
    27. oc -mthreads -Wl -Wl,-subsystem,windows -o debug\helloworld.exe debug/helloworld
    28. .o -L"c:\Qt\4.4.3\lib" -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4
    29. mingw32-make[1]: Leaving directory `C:/MyQT/helloworld'
    30.  
    31. C:\MyQT\helloworld>
    To copy to clipboard, switch view to plain text mode 

    Is there anyway I can.. condense that?
    How exactly do I integrate it with Eclipse now?

    Wait.. why does it only work when I execute it from the QT command line?
    Why can't I run it in Windows Explorer?

    This application has failed to start because mingw10.dll was not found.
    Last edited by chris062689; 10th October 2008 at 10:28.

  13. #13
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Installing Qt 4.4 for Morons?

    Quote Originally Posted by chris062689 View Post
    I *finally* compiled my own program!
    Congatulations. Reading the docs often pays back

    Is there anyway I can.. condense that?
    You rarely need to call qmake again, so when you change something and want to recompile, you only call make.

    How exactly do I integrate it with Eclipse now?
    You might start with downloading the Qt Eclipse integration available from Trolltech site.

    Wait.. why does it only work when I execute it from the QT command line?
    Why can't I run it in Windows Explorer?

    This application has failed to start because mingw10.dll was not found.
    I think you already know the answer

  14. #14
    Join Date
    Oct 2008
    Posts
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Installing Qt 4.4 for Morons?

    Quote Originally Posted by wysota View Post
    I think you already know the answer
    You sir, do not know how to read the Topic Title.
    Re: Installing Qt 4.4 for Morons?

    Why can't I run them without the Qt Command Prompt?

  15. #15
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Installing Qt 4.4 for Morons?

    It would help if you actually started reading some docs instead of trying things blind...

    The command prompt sets paths and environment variables to both Qt and MinGW. Without it you need to make sure your system can find all the libraries when running an application. In that case the runtime of MinGW that is probably not sitting where it should (in a global system library path like C:\Windows\System or a local library path like the directory containing the binary you are trying to execute). This is all basic stuff concerning programming. You should really try to learn your deployment environment (Windows operating system in your case) before doing any software development on your own.

Similar Threads

  1. problem with Qt/ Windows--pls help
    By swamyonline in forum Installation and Deployment
    Replies: 8
    Last Post: 7th July 2008, 20:39
  2. installing and Qt3 and Qt4 in a single machine
    By joseph in forum Installation and Deployment
    Replies: 1
    Last Post: 20th June 2007, 13:58
  3. Problems installing QT4 on PPC Mac (Tiger)
    By f.stendike in forum Installation and Deployment
    Replies: 0
    Last Post: 21st November 2006, 15:17
  4. Installing on Solaris...PLEASE HELP!
    By Rayven in forum Installation and Deployment
    Replies: 3
    Last Post: 27th July 2006, 17:33
  5. Installing Qt 4.1 (open source) on Windows XP
    By katrina in forum Installation and Deployment
    Replies: 8
    Last Post: 19th February 2006, 12:26

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.