Qt-5-Alpha-building-instructions: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
'''English''' [[Qt-5-Alpha-building-instructions Bulgarian|Български]]
'''English''' [[Qt-5-Alpha-building-instructions_Bulgarian|Български]]


=Qt 5 Alpha building instructions=
[[Category:Developing_with_Qt::Qt 5]]<br />h1. Qt 5 Alpha building instructions


First you need to download the Qt 5 Alpha release from [[Qt-5-Alpha|Qt 5 Alpha]]. See also [[Building Qt 5 from Git|Building_Qt_5_from_Git]] for additional information about package depencies and pitfalls.
First you need to download the Qt 5 Alpha release from [[Qt-5-Alpha]]. See also [[Building_Qt_5_from_Git]] for additional information about package depencies and pitfalls.


==Required build tools==
== Required build tools ==


* Perl 5.8 or later
* Perl 5.8 or later
Line 11: Line 11:
* C++ compiler supporting the C++98 standard
* C++ compiler supporting the C++98 standard


==Dependencies==
== Dependencies ==


* openssl is required to use <span class="caps">SSL</span> sockets or https, optional otherwise
* openssl is required to use SSL sockets or https, optional otherwise
* xcb or wayland required for linux see [https://qt.gitorious.org/qt/qtbase/blobs/master/src/plugins/platforms/xcb/README qtbase/src/plugins/platforms/xcb/README] ''[qt.gitorious.org]'' for xcb package list.
* xcb or wayland required for linux - see &quot;qtbase/src/plugins/platforms/xcb/README&amp;quot;:https://qt.gitorious.org/qt/qtbase/blobs/master/src/plugins/platforms/xcb/README for xcb package list.


==Suggested configurations==
== Suggested configurations ==


* To develop applications using Qt 5: -opensource -confirm-license -nomake tests -prefix $PWD/qtbase” (Unix) or -opensource -confirm-license -nomake tests -prefix %CD%\qtbase” (Windows)
* To develop applications using Qt 5: &quot;-opensource -confirm-license -nomake tests -prefix $PWD/qtbase&amp;quot; (Unix) or &quot;-opensource -confirm-license -nomake tests -prefix &amp;#37;CD&amp;amp;#37;&quot; (Windows)
* To develop Qt 5 itself or run unit tests: -opensource -confirm-license -developer-build”
* To develop Qt 5 itself or run unit tests: &quot;-opensource -confirm-license -developer-build&amp;quot;
* To make an optimised release build of Qt 5: -opensource -confirm-license -nomake tests -release -prefix $PWD/qtbase”
* To make an optimised release build of Qt 5: &quot;-opensource -confirm-license -nomake tests -release <s>prefix $PWD/qtbase&amp;quot;
<br />h2. Build steps</s> Linux XCB (Ubuntu 11.10)


==Build steps – Linux <span class="caps">XCB</span> (Ubuntu 11.10)==
# Install dependencies of Qt 4 &quot;sudo apt-get build-dep libqt4-dev&amp;quot;
 
# Install xcb dependencies &quot;sudo apt-get install libxcb1 libxcb1-dev libx11-xcb1 libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-image0 libxcb-image0-dev libxcb-shm0 libxcb-shm0-dev libxcb-icccm4 libxcb-icccm4-dev libxcb-sync0 libxcb-sync0-dev libxcb-xfixes0-dev libxrender-dev libxcb-shape0-dev&amp;quot;
# Install dependencies of Qt 4 “sudo apt-get build-dep libqt4-dev”
# Install xcb dependencies “sudo apt-get install libxcb1 libxcb1-dev libx11-xcb1 libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-image0 libxcb-image0-dev libxcb-shm0 libxcb-shm0-dev libxcb-icccm4 libxcb-icccm4-dev libxcb-sync0 libxcb-sync0-dev libxcb-xfixes0-dev libxrender-dev libxcb-shape0-dev”
# cd to the directory where you extracted the tarball and run ./configure (with the options suggested above)
# cd to the directory where you extracted the tarball and run ./configure (with the options suggested above)
# Run ./build” and wait for some time. If you have multiple cores, use ./build -j &lt;number of cores&gt; to speed up the build process
# Run &quot;./build&amp;quot; and wait for some time. If you have multiple cores, use ./build <s>j &lt;number of cores&amp;gt; to speed up the build process
<br />h2. Build steps</s> Linux XCB (Ubuntu 12.04)


==Build steps – Linux <span class="caps">XCB</span> (Ubuntu 12.04)==
# Install dependencies of Qt 4 &quot;sudo apt-get build-dep libqt4-dev&amp;quot;
 
# Install additional dependencies &quot;sudo apt-get install gperf bison&amp;quot; (needed to compile QtWebkit)
# Install dependencies of Qt 4 “sudo apt-get build-dep libqt4-dev”
# Install xcb dependencies &quot;sudo apt-get install libxcb1 libxcb1-dev libx11-xcb1 libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-image0 libxcb-image0-dev libxcb-shm0 libxcb-shm0-dev libxcb-icccm4 libxcb-icccm4-dev libxcb-sync0 libxcb-sync0-dev libxcb-xfixes0-dev libxrender-dev libxcb-shape0-dev&amp;quot;
# Install additional dependencies “sudo apt-get install gperf bison” (needed to compile QtWebkit)
# Install xcb dependencies “sudo apt-get install libxcb1 libxcb1-dev libx11-xcb1 libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-image0 libxcb-image0-dev libxcb-shm0 libxcb-shm0-dev libxcb-icccm4 libxcb-icccm4-dev libxcb-sync0 libxcb-sync0-dev libxcb-xfixes0-dev libxrender-dev libxcb-shape0-dev”
# cd to the directory where you extracted the tarball and run ./configure (with the options suggested above)
# cd to the directory where you extracted the tarball and run ./configure (with the options suggested above)
# Run ./build” and wait for some time. If you have multiple cores, use ./build -j &lt;number of cores&gt; to speed up the build process
# Run &quot;./build&amp;quot; and wait for some time. If you have multiple cores, use ./build <s>j &lt;number of cores&amp;gt; to speed up the build process
 
<br />h2. Build steps</s> Mac OSX (10.7, XCode 4.3)
==Build steps – Mac <span class="caps">OSX</span> (10.7, XCode 4.3)==


# Ensure that you have Perl, Python, Bison, Flex and gperf installed
# Ensure that you have Perl, Python, Bison, Flex and gperf installed
# cd to the directory where you extracted the tarball and run ./configure (with the options suggested above)
# cd to the directory where you extracted the tarball and run ./configure (with the options suggested above)
# If you are on 10.6 and/or using an older XCode, you might run into problems building QtWebKit in the alpha package. The best is then to simply delete the qtwebkit folder and qtwebkit.pri, and the build process will simply skip over modules with qtwebkit dependencies. Proper support for 10.6 and older XCodes will come in the Beta release.
# If you are on 10.6 and/or using an older XCode, you might run into problems building QtWebKit in the alpha package. The best is then to simply delete the qtwebkit folder and qtwebkit.pri, and the build process will simply skip over modules with qtwebkit dependencies. Proper support for 10.6 and older XCodes will come in the Beta release.
# Run ./build” and wait for some time. If you have multiple cores, use ./build -j &lt;number of cores&gt; to speed up the build process
# Run &quot;./build&amp;quot; and wait for some time. If you have multiple cores, use ./build <s>j &lt;number of cores&amp;gt; to speed up the build process
 
<br />h2. Build steps</s> Windows 7 / MSVC
==Build steps Windows 7 / <span class="caps">MSVC</span>==


# Install [http://strawberryperl.com/ Perl] ''[strawberryperl.com]'', [http://www.python.org/download/releases/3.2.2/ Python] ''[python.org]'', and [http://www.slproweb.com/products/Win32OpenSSL.html OpenSSL] ''[slproweb.com]'' if needed. Note that OpenSSL comes in Win32 and Win64 builds, you need to install the one you want to build for.
# Install &quot;Perl&amp;quot;:http://strawberryperl.com/, &quot;Python&amp;quot;:http://www.python.org/download/releases/3.2.2/, and &quot;OpenSSL&amp;quot;:http://www.slproweb.com/products/Win32OpenSSL.html if needed. Note that OpenSSL comes in Win32 and Win64 builds, you need to install the one you want to build for.
# Start an <span class="caps">MSVC</span> command prompt (Win32 or Win64)
# Start an MSVC command prompt (Win32 or Win64)
# Ensure perl, python and openssl are added to your <span class="caps">PATH</span>
# Ensure perl, python and openssl are added to your PATH
# Ensure openssl\include is added to the <span class="caps">INCLUDE</span> environment variable
# Ensure openssl\include is added to the INCLUDE environment variable
# Ensure openssl\lib is added to the <span class="caps">LIB</span> environment variable
# Ensure openssl\lib is added to the LIB environment variable
# cd to the directory where you unzipped the release and run configure with the options suggested above
# cd to the directory where you unzipped the release and run configure with the options suggested above
# Run “perl build” and wait for some time. If you have [ftp://ftp.qt.nokia.com/jom/jom_1_0_11.zip Jom] ''[ftp.qt.nokia.com]'' installed you make run “perl build -j &lt;number of cores&gt;” to speed up the build process. If you don’t have [ftp://ftp.qt.nokia.com/jom/ Jom] ''[ftp.qt.nokia.com]'', the build script will automatically set CL=/MP to ensure <span class="caps">MSVC</span> utilizes all available cores when batch building
===Categories:===
* [[:Category:Developing with Qt|Developing_with_Qt]]
** [[:Category:Developing with Qt::Qt-5|Qt 5]]

Revision as of 09:03, 24 February 2015

English Български
h1. Qt 5 Alpha building instructions

First you need to download the Qt 5 Alpha release from Qt-5-Alpha. See also Building_Qt_5_from_Git for additional information about package depencies and pitfalls.

Required build tools

  • Perl 5.8 or later
  • Python 2.7 or later
  • C++ compiler supporting the C++98 standard

Dependencies

Suggested configurations

  • To develop applications using Qt 5: "-opensource -confirm-license -nomake tests -prefix $PWD/qtbase&quot; (Unix) or "-opensource -confirm-license -nomake tests -prefix &#37;CD&amp;#37;" (Windows)
  • To develop Qt 5 itself or run unit tests: "-opensource -confirm-license -developer-build&quot;
  • To make an optimised release build of Qt 5: "-opensource -confirm-license -nomake tests -release prefix $PWD/qtbase&quot;


h2. Build steps
Linux XCB (Ubuntu 11.10)

  1. Install dependencies of Qt 4 "sudo apt-get build-dep libqt4-dev&quot;
  2. Install xcb dependencies "sudo apt-get install libxcb1 libxcb1-dev libx11-xcb1 libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-image0 libxcb-image0-dev libxcb-shm0 libxcb-shm0-dev libxcb-icccm4 libxcb-icccm4-dev libxcb-sync0 libxcb-sync0-dev libxcb-xfixes0-dev libxrender-dev libxcb-shape0-dev&quot;
  3. cd to the directory where you extracted the tarball and run ./configure (with the options suggested above)
  4. Run "./build&quot; and wait for some time. If you have multiple cores, use ./build j <number of cores&gt; to speed up the build process


h2. Build steps
Linux XCB (Ubuntu 12.04)

  1. Install dependencies of Qt 4 "sudo apt-get build-dep libqt4-dev&quot;
  2. Install additional dependencies "sudo apt-get install gperf bison&quot; (needed to compile QtWebkit)
  3. Install xcb dependencies "sudo apt-get install libxcb1 libxcb1-dev libx11-xcb1 libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-image0 libxcb-image0-dev libxcb-shm0 libxcb-shm0-dev libxcb-icccm4 libxcb-icccm4-dev libxcb-sync0 libxcb-sync0-dev libxcb-xfixes0-dev libxrender-dev libxcb-shape0-dev&quot;
  4. cd to the directory where you extracted the tarball and run ./configure (with the options suggested above)
  5. Run "./build&quot; and wait for some time. If you have multiple cores, use ./build j <number of cores&gt; to speed up the build process


h2. Build steps
Mac OSX (10.7, XCode 4.3)

  1. Ensure that you have Perl, Python, Bison, Flex and gperf installed
  2. cd to the directory where you extracted the tarball and run ./configure (with the options suggested above)
  3. If you are on 10.6 and/or using an older XCode, you might run into problems building QtWebKit in the alpha package. The best is then to simply delete the qtwebkit folder and qtwebkit.pri, and the build process will simply skip over modules with qtwebkit dependencies. Proper support for 10.6 and older XCodes will come in the Beta release.
  4. Run "./build&quot; and wait for some time. If you have multiple cores, use ./build j <number of cores&gt; to speed up the build process


h2. Build steps
Windows 7 / MSVC

  1. Install "Perl&quot;:http://strawberryperl.com/, "Python&quot;:http://www.python.org/download/releases/3.2.2/, and "OpenSSL&quot;:http://www.slproweb.com/products/Win32OpenSSL.html if needed. Note that OpenSSL comes in Win32 and Win64 builds, you need to install the one you want to build for.
  2. Start an MSVC command prompt (Win32 or Win64)
  3. Ensure perl, python and openssl are added to your PATH
  4. Ensure openssl\include is added to the INCLUDE environment variable
  5. Ensure openssl\lib is added to the LIB environment variable
  6. cd to the directory where you unzipped the release and run configure with the options suggested above