Qt wiki will be updated on October 12th 2023 starting at 11:30 AM (EEST) and the maintenance will last around 2-3 hours. During the maintenance the site will be unavailable.

Qt newbie-compile-Qt-sources

From Qt Wiki
Revision as of 16:53, 3 March 2015 by AutoSpider (talk | contribs) (Add "cleanup" tag)
Jump to navigation Jump to search
This article may require cleanup to meet the Qt Wiki's quality standards. Reason: Auto-imported from ExpressionEngine.
Please improve this article if you can. Remove the {{cleanup}} tag and add this page to Updated pages list after it's clean.

this page describes in details how to compile Qt sources. In fact, it is not hard if you follow the step accurately.

What are the advantages to compile Qt by myself ?

  • 1. if you are a newbie like me two weeks ago, then you will agree that already released executable files may creates slight problems and then, discouraged you will leave a powerfull framework like Qt. It is just because if Qt is compile with certain type of material, it will be available only for the type of material used for the compilation, ok and your personal computer is probably different to the one used to compile Qt sources.
  • 2.You will have Qt sources on your local hard drive. Only by looking the sources of Qt can you learn c++ deeply.

what do I need ?
*1 a recent c++ compiler like mingw 4.6 or 4.7 or more recent : visit mingw website [sourceforge.net]
*2 Qt sources available here [qt.io]
*3 Perl version 5.12 or later [1]
*4 Python version 2.7 or later [2]
*5 Ruby version 1.9.3 or later [3]

let’s go !

One thing to consider in the c/c++ developpement is the choice of the compiler. For my part i use mingw32 on windows 7.

First : start->search option ->“cmd”
if you use xp : start->run->“cmd”

  • “ “ means to be tape on keyboard
    in the cmd window, tape the following : “cd path to your qt-everywhere-src
    and then tape : “configure -prefix