QNX Technical Articles
QNX® Software Development Platform 6.5.0 SP1 Graphics Sample Source Code Notes
Date of this edition: December 15, 2015
Before you install this archive, you should already have QNX Software Development Platform 6.5.0 SP1, Screen Graphics Subsystem for QNX SDP 6.5 SP1, and any recommended patches installed on your host.
Host OS: You can install this package on one of the following development hosts:
- Microsoft Windows 7 Professional 32- and 64-bit, Vista Business 32- and 64-bit, XP Professional SP3, or 2000 SP4
- Red Hat Enterprise Linux 5.4 Desktop 32- and 64-bit, Red Hat Fedora 12, Ubuntu Workstation 9.10, 11.04, and 12.04 32- and 64-bit, openSUSE 11
This guide includes:
- What's in this package?
- Installing this package
- Compiling the source for QNX Neutrino RTOS 6.5.0 SP1
- Technical support
What's in this package?
This package includes the source code that shows how you can use the Screen API. The source code is under source_directory/src/apps/screen/ where source_directory is where you extracted this package.
The binary that corresponds to each application is included as part of of your Screen Graphics Subsystem for QNX SDP 6.5 SP1 installation. You can find the binaries on your development host under $QNX_TARGET/cpu_arch/usr/bin/ where cpu_arch is the CPU architecture of your target. Note that not all binaries are available for all targets.
| Binary | Source code | Description |
|---|---|---|
| dpy-vsync | tutorials/dpy-vsync | Display software-rasterized content on multiple displays |
| events | tutorials/events | Create a window manager connection to Screen and dump the events received as output to the console |
| gles1-vsync | tutorials/gles1-vsync | Display hardware-rendered content using OpenGL ES 1.x |
| gles2-gears | demos/gles2-gears | Display hardware-rendered content using OpenGL ES 2.x |
| sharewin | demos/sharewin | Demonstrate content sharing between windows |
| sw-vsync | tutorials/sw-vsync | Display software-rasterized content |
| vcapture-demo | demos/vcapture-demo | Demonstrate camera and video content |
| win-vsync | tutorials/win-vsync | Display software-rasterized content using multiple windows in a hierarchy |
Installing this package
- Log into your myQNX account on our website, and then go to the Download area.
- Create a directory where you can download this package to.
- Go to the directory you just created, and download the src-screen-examples.tgz archive to your host environment.
- On Windows hosts, run cmd.exe; on Linux hosts, start a command shell.
-
Extract the Graphics sample source using the tar command:
tar -zxvf src-screen-examples.tgz
Compiling the source for QNX Neutrino RTOS 6.5.0 SP1
-
If you're not already there, go to the location where you extracted the source archive:
cd source_directory
where source_directory is where you've extracted the source code to.
-
Compile by running make:
make
The binary output from compiling the source is located under the directory of each of the respective applications.
Technical support
To obtain technical support for any QNX product, visit the Support area on our website (www.qnx.com). You'll find a wide range of support options, including community forums.