Some Embedded Linux sample code can be found in the Samples folder of our file download server:
For a cross toolchain see Build U-Boot and Linux Kernel from Source Code.
A make file project which compiles the scribble-simple.c from http://developer.gnome.org/gtk-tutorial.
Download gtk_scribble_V2.zip from our Samples page.
Makefile.ExtToolchain_Rootfs is a makefile suitable for use with an external cross toolchain and the rootfs contained in our image.
Set OECORE_TARGET_SYSROOT and CROSS_COMPILE to your needs.
Makefile.OE_Sysroot is a makefile suitable if you have built openembedded yourself. It uses the OpenEmbedded built cross toolchain, headers and target libraries.
Set OECORE_NATIVE_SYSROOT, OECORE_TARGET_SYSROOT and CROSS_COMPILE to your needs.
Make a symlink 'Makefile' pointed to the flavour you want to use. e.g.
ln -s Makefile.ExtToolchain_Rootfs Makefile
In the Project Explorer:
- right click and chose import
- General/Existing Projects into Workspace
- Browse for the archive file gtk_scribble.zip
- Finish
In the Make Targets View you get make targets to compile for ARM and for x86.
'all' for x86 Linux,
'all.arm' for the Colibri T20.
unzip the archive
for x86 Linux:
make CROSS_COMPILE= all
for Colibri T20:
make all
The sample programs from NVIDIA are available for download from our Samples page. These samples are only meant for the Tegra 2 and Tegra 3 Modules.
You can cross-compile and add the samples to a Linux image using OpenEmbedded.
It might be useful to build from source when developing an application.
ARM provides an OpenGL ES emulator that maps OpenGL ES API calls to the OpenGL API, and it can be found here. It comes without samples, but you can also download the ARM Mali SDK for Linux, that is shipped with samples and can be built to run by the emulator but also on top of devices that support OpenGL ES and X11.
It might be useful to build from source when developing an application.
NXP/Freescale provides GPU SDKs shipped with OpenGL ES and OpenVG samples. You can build the samples from it for use on top of X11.
There are two versions of the GPU SDK, and both of them are available here, being:
At the time of writing, The old SDK revision is 1.0.0 (dated 01/25/2013) and the new SDK revision is 2.3 (dated 02/23/2016).
The old SDK has OpenGL ES 1.1 and 2.0, and OpenVG samples. It is a Makefile based project with X11 and framebuffer support. Below are provided instructions on how to build the samples for X11.
The new SDK has OpenGL ES 2.0 and 3.0, and OpenVG samples. It has its Makefiles generated by Python scripts and supports Android SDK+NDK, Ubuntu, Windows and Yocto builds, being the latter possible for X11, framebuffer and Wayland. Below are provided instructions on how to build the samples for X11, using OpenEmbedded/Yocto.