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:
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 = *~
In this project there is no need to add extra PATHs for the headers.
$ 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
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 = *~
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
$ scp Gstreamer root@<board_ip>:/home/root
$./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
I have follow above tutorial, it was showing "Missing PROG dlltool", "Missing arm-poky-linux-gnueabi-mt", "Missing arm-poky-linux-gnueabi-dlltool", what could be error@alejandrolozano
How to create a shared libray or a static library using Eclipse IDE in the Yocto project.
I want to create those, but failed.
Hi all,
I am working with a SABRESD with an iMX6SX.
I am able to cross compile the gputest example in Eclipse and everything seems to be OK.
However, when I try to execute the resulting file from the target, I get the following error:
init: Assertion `eglNativeWindow' failed.
Aborted
Has anybody found a similar situation? I am using X11.
Thank you in advance for your collaboration.
Best regards,
Alvaro Martinez
I have been able to fix the problem.
I just had to add #define EGL_USE_X11 in fsl_egl.c and everything seems to work.
It is a very helpful post, thank you very much alejandro lozano!
BR