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: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
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 ? <br /> *1 a recent c++ compiler like mingw 4.6 or 4.7 or more recent : visit [http://sourceforge.net/projects/mingw/ mingw website] ''[sourceforge.net]''<br /> *2 Qt sources available [http://qt.io/download here] ''[qt.io]''<br /> *3 Perl version 5.12 or later [http://www.activestate.com/activeperl/]<br /> *4 Python version 2.7 or later [http://www.activestate.com/activepython/]<br /> *5 Ruby version 1.9.3 or later [http://rubyinstaller.org/]
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-&gt;search option -&gt;“cmd”<br /> if you use xp : start-&gt;run-&gt;“cmd”
* “ “ means to be tape on keyboard<br /> in the cmd window, tape the following : “cd ''path to your qt-everywhere-src''”<br /> and then tape : “configure -prefix

Revision as of 14:00, 25 February 2015

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