To include your apps in the
appsmedia-sample image on a target
device, you'll need to modify the buildfile you used to generate the
final
appsmedia-sample image.
Note:
If you're using a Windows host, run the commands in the bash shell.
To include apps in an image:
-
Change directory to
/src/hardware/support/appsmedia-sample in the location
where you extracted the BSP.
In this location, you'll notice the following two buildfiles:
- appsmedia-sample-board.build
- appsmedia-sample-common.build
-
In an editor on the host machine, open the file
appsmedia-sample-common.build.
-
Locate the section named Browser Related.
This section is where you'll include information about your specific app.
-
Add the following information about your app into the Browser Related
section of the appsmedia-sample-common.build file:
[search={directory_containing_barfile}]
/appinstall/myapp.bar=myapp.bar
where directory_containing_barfile is the path to the
directory that contains the .bar file for your app. You can
use environment variables like ${QNX_TARGET} in the search path
specification.
-
Change to the /images directory.
-
Run the following command:
-
To generate a new image that includes your app(s), run the following
command:
To install an app to a target device each time the image boots:
The app will be installed each time the image boots. You can then run the app from the
command line or from a script. For more information about launching apps, see
"Launching an app on the target" in the
Application and Window Management guide.