QNX Technical Articles
QNX® SDK for Apps and Media 1.1—QNX Qt 5.3.1 Development Framework for Linux: Installation Note
Electronic edition published: Tuesday, June 2, 2015
This package contains the Qt runtime engine for development in a Linux host environment.
- QNX Software Development Platform 6.6
- QNX SDK for Apps and Media 1.1
Host OS
You can install this package on one of the following development hosts:
- Red Hat Enterprise Linux 6 64-bit
- Ubuntu Workstation LTS 12.04 32- and 64-bit
Installing the QNX QT Development Framework
To install the QNX QT Development Framework:
- Log in to your myQNX account on our website, then go to the Download area.
- Download the package qt-5.3.1-datestamp.bin. The package is a .bin script.
- Verify that the checksum of the package matches the one given in the Download area.
- Run chmod to make the script executable. For example:
chmod a+x qt-5.3.1-201503051558.bin
- Run the script at the system prompt. For example:
./qt-5.3.1-201503051558.bin
- Follow the instructions on your screen.
Installing Qt Creator
Qt Creator is the IDE that you use to develop Qt apps. The IDE includes a code editor, visual debugger, and integrated UI layout and forms designer. This release supports apps written with version 3.2.1 or higher of Qt Creator.
To install Qt Creator:
- Go to http://www.qt.io/download-open-source/#section-2 and click Show All Downloads.
- Scroll down to the Qt Creator section.
- Download the appropriate package for your host system and follow the associated instructions to install it.
Samples
The QNX SDK for Apps and Media includes a number of sample Qt projects to help you get started quickly. This sample source code is in base_directory/source/appsmedia_qt_source_v1_1.zip, where base_directory is where you installed the QNX SDK for Apps and Media.
Building Qt applications from the command line
To build Qt applications on the command line:
- Set up the environment by typing the following at the command prompt:
source base_directory/qnx660-env.sh
where base_directory is where you installed QNX SDP 6.6.
- Change to your Qt project's directory.
- Run qmake to generate your project's make files.
qt_install_directory/target_arch/bin/qmake project.pro
where qt_install_directory is where you installed the Qt Development Framework, and target_arch is the subdirectory that matches your target board's architecture.
- Run make to compile and link your project:
make
Uninstalling
To uninstall QNX Qt 5.3.1 Development Framework:
- In a command shell, change to the directory where you installed Qt 5.3.1.
- Type the following at the command prompt:
./install/qt/5.3.1/uninstaller
- Follow the instructions on your screen.
Note: The uninstaller doesn't remove the directory where you installed Qt.
Where to go for more information
For more information, see the Qt Developer's Guide in the QNX Momentics IDE's help system (Help > Help Contents). The documentation is also available on our website: http://www.qnx.com/developers/docs/.