How to install Gstreamer dev library for embedded linux environment(Apalis-TK1)

Hi,

I’m facing issues in cross compiling my application in eclipse using gcc linaro cross compiler. My application uses Gstreamer 1.0 dev library. I could not find the required header files (gst.h) in the rootfs/usr/include path.

I followed the steps provided in below link to set up embedded linux environment for Apalis-TK1:
https://developer.toradex.com/knowledge-base/how-to-setup-environment-for-embedded-linux-application-development

I’m able to build u-boot image and kernel using steps provided in below link:
https://developer.toradex.com/knowledge-base/build-u-boot-and-linux-kernel-from-source-code.

I’m not able to cross compile Gstreamer dev library to build my application. Can someone help me to resolve this problem?

Host PC : Ubuntu 16.04
cross compiler: gcc‐linaro (6.2.1 x86_64_arm‐linux‐gnueabihf)
IDE : Eclipse IDE for C/C++
BSP and low level drivers : Apalis‐TK1_LXDE‐Image with Angstrom linux

If you require further development headers or libraries in general you will have to following the alternative suggestion in above linked to developer website article:

Alternatively, if you did an OpenEmbedded build, you can use the toolchain generated as part of the build
by entering the following:

Thanks for your suggestion. Now I am able to use gstreamer1.0 dev with OpenEmbedded build as Gstreamer is part of OpenEmbedded build. I need to use libglfw3-dev library which is not part of OpenEmbedded build . Kindly suggest how to get the missing libraries and headers to cross compile my application.

While glfw is not part of any of our regular layers a quick search revealed that it can be found in meta-intel-realsense. So either you add resp. layer to your configuration or add/copy resp. recipe into one of your existing (or your custom) layer(s). Then you just add it to your image, build again and resp. dev stuff should automatically be added to your sysroot.

Thanks for the guidance and it worked. One more library libSOIL is not available in http://layers.openembedded.org/layerindex/branch/master/recipes/ where can I find this library or how to get that library? kindly suggest any method to get the missing library.

Sorry, but I never heard of any such libSOIL. You probably will have to come up with your own recipe for it I guess.

Thanks for your support. In general, how to create a new recipe if source code is available for any missing library? or how to build a library for open embedded environment if source is available?

hi madhu,
ask a new question, please.

Thanks for your support.

You are very welcome.

In general, how to create a new recipe if source code is available for any missing library? or how to build a library for open embedded environment if source is available?

Please have a look at the Yocto Project Development Tasks Manual which explains all of this and more in great detail.