Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
wiki7085: Qt5.2.0BuildInstructionsForQNXSDKForAppsAndMedia1.0 (Version 11)

Qt 5.2.0 Build Instructions for QNX SDK for Apps and Media 1.0 #

Prerequisites:#

Windows users will need the GNUWin32 version of the patch utility to apply a required source patch. You can download the GNUWin32 patch utility from: http://gnuwin32.sourceforge.net/packages/patch.htm. For instructions on installing the utility, click "General Installation Instructions". Please note that the installation instructions below assume that you have installed the patch utility in a location in your PATH environment variable.

Linux Build Instructions#

1. Download the Qt source package from qt-project.org (qt-everywhere-opensource-src-5.2.0.tar.gz).

2. Extract the Qt source package into a folder suitable for large build operations:

# tar -xvzf qt-everywhere-opensource-src-5.2.0.tar.gz

3. Download the Qt 5.2.0 source patch for QNX from the File Releases folder on Foundry27.

4. To apply the Qt 5.2.0 source patch for QNX, type the following at the command line:

# cd qt-everywhere-opensource-src-5.2.0
# patch -p1 -i <path_to_patch>/QT5.2.0-src-patch.txt 

where <path_to_patch> is the path to the Qt 5.2.0 source patch for QNX.

5. Source the QNX SDP 6.6 environment:

# source /opt/qnx660/qnx660-env.sh

6. Run the configure script for Qt with the following arguments:

# ./configure -prefix /base/qt5-5.2 -release -nomake tests -no-gtkstyle -opengl es2 -egl -no-cups -no-xcb -no-eglfs -no-javascript-jit -no-gtkstyle -no-iconv -xplatform qnx-armv7le-qcc -skip qtserialport -skip qtwebkit

7. Accept the appropriate license (Commercial Edition or Open Source Edition).

8. Build the Qt binaries:

# make

9. Create and populate the Qt installation folder.

Note: For this command to succeed, you will need read/write permission to the /base/qt5-5.2 folder (if it exists) or the root file system (if /base does not exist).

# make install

Windows Build Instructions#

Note: The host binaries in the Qt development environment package provided by QNX were built using the MinGW compiler. Please ensure that the MinGW compiler and all of the Windows Build environment is configured in your system PATH before running the commands below.

1. Download the Qt source package from qt-project.org (qt-everywhere-opensource-src-5.2.0.zip).

2. Extract the Qt source package into a folder suitable for large build operations (e.g., C:\Users\<username>).

3. Download the Qt 5.2.0 source patch for QNX from the File Releases folder on Foundry27.

4. Open a Command Prompt and change to the folder where you extracted the source package.

5. Type the following commands at the prompt:

cd qt-everywhere-opensource-src-5.2.0
patch -p1 -i <path_to_patch>\Qt5.2.0-src-patch.txt

where <path_to_patch> is the path to the Qt 5.2.0 source patch for QNX.

6. Type the following command to set up the QNX SDP 6.6 environment:

C:\qnx660\qnx660-env.bat

7. Run the configure script for Qt with the following arguments:

configure  -release -nomake examples -nomake tests  -prefix C:\QtQNX\qt5-5.2 -platform win32-g++ -xplatform qnx-armv7le-qcc -opengl es2 -no-cups -no-iconv -skip qtserialport -skip qtwebkit -mp

8. Accept the appropriate license (Commercial Edition or Open Source Edition).

9. To build the Qt binaries, type the following command:

make

10. Create and populate the Qt installation folder.

Note: For this command to succeed, you will need read/write permission to the C:\QtQNX\qt5-5.2 folder (if it exists) or the C: drive (if C:\QtQNX\qt5-5.2 does not exist).

make install