How to Cross Compile GStreamer for iMX8M Mini using Yocto

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

How to Cross Compile GStreamer for iMX8M Mini using Yocto

5,255件の閲覧回数
msingh1920
Contributor V

Hi Sir,

I am using iMX8M Mini and Yocto imx-linux-hardknott  imx-5.10.52 version.
But default GStreamer provided in iMX yocto does not support the GStreamer C application it only supports the command line. 

Hence I need to install and compile GStreamer using iMX yocto. 

To do that I did the following steps -

1) I added the following code to local.conf file -> 

 IMAGE_INSTALL_append += "gstreamer1.0-rtsp-server gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav"


LICENSE_FLAGS_WHITELIST = "commercial"


2) After that I compiled and build the SDK and flashed it to iMX board.


but when I try to compile a simple GStreamer hello world application on my imx8 Mini board then 
It gives me an error saying - 

fatal error: gst/gst.h: No such file or directory
#include <gst/gst.h>

 

It seems like even GStreamer is compiled successfully but the header files are missing on SDK.  

please suggest to me what I am missing and how can I cross-compile the GStreamer with iMX yocto

NOTE:-> 
I am doing the following steps to compile the iMX yocto -> 

DISTRO=fsl-imx-xwayland MACHINE=imx8mm-lpddr4-evk source imx-setup-release.sh -b build-xwayland

bitbake imx-image-full

 

Thanks

 

0 件の賞賛
返信
7 返答(返信)

5,236件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Maneesh

 

one can look at gstreamer tutorial from Gateworks:

http://trac.gateworks.com/wiki/Yocto/gstreamer

 

Best regards
igor

0 件の賞賛
返信

5,207件の閲覧回数
msingh1920
Contributor V

Hi @igorpadykov,

Any suggestions on how can I cross-compile GStreamer for iMX8 Mini yocto ? 

The default GStreamer provided in iMX yocto BSP only supports the command line it does not support GStreamer C code hence I need to cross-compile the gstremer for iMX8M Mini Yocto. 

 

I tried adding the following lines in iMX yocto local.conf file -> 

 IMAGE_INSTALL_append += "gstreamer1.0-rtsp-server gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav"


LICENSE_FLAGS_WHITELIST = "commercial"

 

But seems like GStreamer cross-compilation is not working because when I try to compile a simple GStreamer hello world application on my imx8 Mini board then 
It gives me an error saying - 

fatal error: gst/gst.h: No such file or directory
#include <gst/gst.h>

 

So any suggestion or step on how I can cross-compile the GStreamer for iMX Yocto? 

Thanks

0 件の賞賛
返信

5,189件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

may be suggested to post it on meta-fsl-arm mailing list, as this is general yocto issue
https://lists.yoctoproject.org/g/meta-freescale

 

Best regards
igor

0 件の賞賛
返信

5,117件の閲覧回数
msingh1920
Contributor V

Hi @igorpadykov ,

As suggested by you I posted my query on meta-freescale@lists.yoctoproject.org

group, unfortunately, I didn't receive any response from there. 

 

Can you help me with how can I cross-compile the gstremer  library for iMX8M Mini EVK. 

 

Thanks

 

 

0 件の賞賛
返信

5,182件の閲覧回数
msingh1920
Contributor V

Hi @igorpadykov 

Thanks for your reply. 

I will post it on https://lists.yoctoproject.org/g/meta-freescale

But can you tell me if I am doing the right changes or not?

 

To build GStreamer I am adding the following lines in iMX yocto local.conf file -> 

IMAGE_INSTALL_append += "gstreamer1.0-rtsp-server gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav"

 

Am I doing correctly? or do I need to do changes in any other files also? 

 

Thanks

 

 

0 件の賞賛
返信

5,170件の閲覧回数
igorpadykov
NXP Employee
NXP Employee
0 件の賞賛
返信

5,227件の閲覧回数
msingh1920
Contributor V

Hi @igorpadykov 

Thanks for your reply. 

I am able to test and run GStreamer plugging from the command line but I want to use GStreamer C code and Default GStreamer provided by iMX BSP doesn't support GStreamer C code 

Hence I need to cross-compile the GStreamer library for iMX BSP using Yocto. 

I am using -
EVK :- iMX8M Mini EVK
Yocto version :-  imx-linux-hardknott 
Version :- imx-5.10.52 version

 

To cross-compile GStreamer I am adding the following lines in local.conf file -> 

 IMAGE_INSTALL_append += "gstreamer1.0-rtsp-server gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav"


LICENSE_FLAGS_WHITELIST = "commercial"

 

But seems like GStreamer cross-compilation is not working because when I try to compile a simple GStreamer hello world application on my imx8 Mini board then 
It gives me an error saying - 

fatal error: gst/gst.h: No such file or directory
#include <gst/gst.h>

 

Can you suggest to me the steps to cross-compile the GStreamer for iMX Yocto ???  

 

Thanks,
Maneesh

0 件の賞賛
返信