If you have an account on Foundry27 you can do this:
svn checkout --username <userid> http://community.qnx.com/svn/repos/graphics/trunk
Alternately you can browse the full source tree. To compile the source you will need to checkout additional source from the BSP SVN -- hardware/devi and OS SVN – lib/compat, lib/login, lib/shutdown, lib/util.
# cd $QNX_TARGET/../.. # tar -xpf srcversion-patch-6.4.0.tar
On the top level (trunk/) do:
make hinstall
NOTE: You need to copy hardware/devi headers manually into your staging area:
NOTE: If you're attempting to build services/display with 6.4.1 libc headers, you'll require the following updated header Gfx_source/dispatch.h. It should be added to your stage directory under "/usr/include/sys/":
cp hardware/devi/private/sys/* <your_stage>/usr/include/sys cp hardware/devi/public/sys/* <your_stage>/usr/include/sys
This will put all required public and private headers into your staging area, and now you are ready to build apps, services and libs.
NOTE: Windows applications: apps/phindows and tools/appbuilder won't built on Nto, so you need to exclude them from the build. You can do this by using this handy script
Do the build:
make install
If you need to build for specific platforms rather than all, you can use export CPULIST=”…” to restrict builds to the specified platforms only before running make.
For example: export CPULIST=”x86” will build for x86 only. Please note that older PhAB applications may not obey this envar and will be build for all available platforms.
Even though each of the posted modules could be used as a sample, we recommend using the designated sample modules. These modules are concise examples of graphics capabilities:
Component | Location |
---|---|
EGL | apps/egl |
GF | apps/gf |
GLES | apps/gles |
Photon | apps/ph-samples |
Please post questions related to the source code on Graphics Source Code forum.