- INTRODUCTION
- REQUIREMENTS
- CREATE A NEW PROJECT
- GPU EXAMPLE
- GSTREAMER EXAMPLE
1. INTRODUCTION:
The below steps show how to create different application examples using Elipse IDE.
2. REQUIREMENTS:
To demonstrate the steps, L3.14.28 BSP, fsl-image-qt5 image and i.MX6Q SABRE-SDP board were used.
3. CREATE A NEW PROJECT
Follow the section Creating a Hello World Project of this document Setting up the Eclipse IDE for Yocto Application Development
4. GPU EXAMPLE
For this project we use the source code found in the fsl-gpu-sdk that can be downloaded from:
https://www.freescale.com/webapp/Download?colCode=IMX6_GPU_SDK&location=null&Parent_nodeId=133763715...
- Follow section 3 and create a new project named gputest.
- From the IMX6_GPU_SDK choose one of the examples of GLES2.0 folder. In this case the 01_SimpleTriangle is chosen.
- Copy the .c and .h files to the src directory of the gputest project. The Project Explorer window should look like this:

- Add the needed files and libraries to compile and link in the Makefile.am file found in the ´src´ folder. The Makefile.am file should have the below content:
bin_PROGRAMS = gputest
gputest_SOURCES = gputest.c fsl_egl.c fslutil.c
AM_CFLAGS = @gputest_CFLAGS@
AM_LDFLAGS = @gputest_LIBS@ -lstdc++ -lm -lGLESv2 -lEGL -lX11 -ldl
CLEANFILES = *~
- Add the PATH to CFLAGS where the compiler will look for the headers at Project->Properties->Autotools->configure:
In this project there is no need to add extra PATHs for the headers.

- Apply the changes by clicking on Reconfigure Project.
- Build the project
- To test the file you can send the executable to the board with:
$ scp gputest root@<board_ip>:/home/root
$./gputest
You should get the next output in the display:

5. GSTREAMER EXAMPLE
For this project we use the source code found at Basic tutorial 1: Hello world! - GStreamer SDK documentation - GStreamer SDK documentation
- Follow section 3 and create a new project named Gstreamer.
- Copy the code of the basic tutorial to your Gstreamer.c file.
- Add the needed files and libraries to compile and link in the Makefile.am file found in the ´src´ folder. The Makefile.am file should have the below content:
bin_PROGRAMS = Gstreamer
Gstreamer_SOURCES = Gstreamer.c
AM_CFLAGS = @Gstreamer_CFLAGS@
AM_LDFLAGS = @Gstreamer_LIBS@ -lstdc++ -lVDK -lm -lGLESv2 -lGAL -lEGL -ldl -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0
CLEANFILES = *~
- Add the PATH to CFLAGS where the compiler will look for the headers at Project->Properties->Autotools->configure:
For this example the next lines are added
-I${Sysroot}/usr/include/gstreamer-1.0
-I${Sysroot}/usr/include/glib-2.0
-I${Sysroot}/usr/include/libxml2
-I${Sysroot}/usr/lib/glib-2.0/include

- Apply the changes by clicking on Reconfigure Project.
- Build the project
- To test the file you can send the executable to the board with:
$ scp Gstreamer root@<board_ip>:/home/root
- To execute the application on the board:
$./Gstreamer
The board should have internet access and the application should play the video found at http://docs.gstreamer.com/media/sintel_trailer-480p.webm