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

From Qt Wiki
Jump to navigation Jump to search
(Decode HTML entity names)
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Outdated|reason=Qt 5 Alpha.}}
{{Cleanup | reason=Auto-imported from ExpressionEngine.}}
{{Cleanup | reason=Auto-imported from ExpressionEngine.}}


Line 20: Line 21:
== 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%" (Windows)
* To develop applications using Qt 5: "-opensource -confirm-license -nomake tests -prefix $PWD/qtbase" (Unix) or "-opensource -confirm-license -nomake tests -prefix %CD%" (Windows)
* To develop Qt 5 itself or run unit tests: "-opensource -confirm-license -developer-build"
* To develop Qt 5 itself or run unit tests: "-opensource -confirm-license -developer-build"
* 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: "-opensource -confirm-license -nomake tests -release -prefix $PWD/qtbase"
Line 37: Line 38:
# Run "./build" and wait for some time. If you have multiple cores, use ./build -j <number of cores> to speed up the build process
# Run "./build" and wait for some time. If you have multiple cores, use ./build -j <number of cores> to speed up the build process


== Build steps- Mac OSX (10.7, XCode 4.3) ==
== Build steps- macOS (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)

Latest revision as of 22:12, 14 June 2016

IMPORTANT: The content of this page is outdated. Reason: Qt 5 Alpha.
If you have checked or updated this page and found the content to be suitable, please remove this notice.
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.

English Български

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" (Unix) or "-opensource -confirm-license -nomake tests -prefix %CD%" (Windows)
  • To develop Qt 5 itself or run unit tests: "-opensource -confirm-license -developer-build"
  • To make an optimised release build of Qt 5: "-opensource -confirm-license -nomake tests -release -prefix $PWD/qtbase"

Build steps- Linux XCB (Ubuntu 11.10)

  1. Install dependencies of Qt 4 "sudo apt-get build-dep libqt4-dev"
  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"
  3. cd to the directory where you extracted the tarball and run ./configure (with the options suggested above)
  4. Run "./build" and wait for some time. If you have multiple cores, use ./build -j <number of cores> to speed up the build process

Build steps- Linux XCB (Ubuntu 12.04)

  1. Install dependencies of Qt 4 "sudo apt-get build-dep libqt4-dev"
  2. Install additional dependencies "sudo apt-get install gperf bison" (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"
  4. cd to the directory where you extracted the tarball and run ./configure (with the options suggested above)
  5. Run "./build" and wait for some time. If you have multiple cores, use ./build -j <number of cores> to speed up the build process

Build steps- macOS (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" and wait for some time. If you have multiple cores, use ./build -j <number of cores> to speed up the build process

Build steps- Windows 7 / MSVC

  1. Install Perl, Python, and OpenSSL 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