If you modify the deployment configuration or target contents of your QNX Apps and Media system, you can use command-line instructions to build an image to include your modifications.
Before you begin building your QNX Apps and Media target image, familiarize yourself with the available scripts and configuration files, then prepare your working environment, as described below in "Setting up."
The QNX SDK for Apps and Media installation process creates a workspace that contains the scripts and configuration files you'll use when you build your target image.
Scripts are under the following directories (assuming that you have already set $QNX_DEPLOYMENT_WORKSPACE as instructed in "Setting up"):
$QNX_DEPLOYMENT_WORKSPACE/infra/utils/scripts
The (optional) configuration files are in:
$QNX_DEPLOYMENT_WORKSPACE/infra/product/AnM/boards
At this location, under platform.variant, there are two important directories:
When you build a custom image, start with the following preliminary steps:
Copy to another location the directory and all the contents of:
base_dir/product_deployment/QSAM/1.1/deployment/
(where base_dir is the directory where you installed QNX SDP).
Set the QNX_QT environment variable to the architecture-specific path of your QNX Qt Development Framework installation. This environment variable tells the mksysimage script (which generates the target image) where the QNX Qt runtime is installed on your host.
For example, on a Linux host for an ARMLE-v7 target:
export QNX_QT=qt_base_dir/QNX-qt/Qt-5.3.1-armle-v7
On a Windows host for an x86 target:
set QNX_QT=qt_base_dir\QNX-qt\Qt-5.3.1-x86
where qt_base_dir is the directory where you installed the QNX Qt Development Framework.
Later, when you run mksysimage, redirect its output to a file and look for any warning and error messages about missing files. For example:
Warning: host file filename missing.
When you run mksysimage.sh (Linux) or mksysimage.bat (Windows) to generate a system image file (.img), you must set these options: