Yocto Application Development Using Eclipse IDE

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Yocto Application Development Using Eclipse IDE

Yocto Application Development Using Eclipse IDE

  1. INTRODUCTION
  2. REQUIREMENTS
  3. CREATE A NEW PROJECT
  4. GPU EXAMPLE
  5. 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:

          pastedImage_14.png

  •    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.

pastedImage_1.png

  • 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:

pastedImage_1.png

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

     pastedImage_5.png

  • 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

ラベル(5)
コメント

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

評価なし
バージョン履歴
最終更新日:
‎07-28-2015 12:44 PM
更新者: