<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Unable to cross-compile gstreamer application in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Unable-to-cross-compile-gstreamer-application/m-p/1202089#M166757</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am working on IMX8MQEVK board, using&amp;nbsp;&lt;SPAN&gt;Linux BSP&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;L4.14.98_2.0.0. I&lt;/SPAN&gt;&amp;nbsp;wanted to cross-compile gstreamer application from linux host system. Since native&amp;nbsp;&lt;EM&gt;aarch64-linux-gnu-gcc&amp;nbsp;&lt;/EM&gt;is unable to find gstreamer-1.0 libraries, I decided build the SDK with required libraries using bitbake&amp;nbsp;fsl-image-validation-imx -c populate_sdk. I added the meta-gstreamer1.0 layer from sumo branch to source and in bblayer.conf file and as instructed in linux users giude, added following code to local.conf:&lt;/P&gt;&lt;P&gt;&amp;nbsp;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"&lt;BR /&gt;LICENSE_FLAGS_WHITELIST = "commercial"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The sdk was built succesfully and I installed it to /opt/fsl-image destination but now when I used&amp;nbsp; aarch64-poky-linux-gcc app.c -o app_arm `pkg-config --cflags --libs gstreamer-1.0`, I get the following error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;In file included from /opt/fsl-imx-wayland/4.14-sumo/sysroots/x86_64-pokysdk-linux/usr/lib/aarch64-poky-linux/gcc/aarch64-poky-linux/7.3.0/include-fixed/syslimits.h:7:0,&lt;BR /&gt;from /opt/fsl-imx-wayland/4.14-sumo/sysroots/x86_64-pokysdk-linux/usr/lib/aarch64-poky-linux/gcc/aarch64-poky-linux/7.3.0/include-fixed/limits.h:34,&lt;BR /&gt;from /opt/fsl-imx-wayland/4.14-sumo/sysroots/aarch64-poky-linux/usr/lib/glib-2.0/include/glibconfig.h:11,&lt;BR /&gt;from /opt/fsl-imx-wayland/4.14-sumo/sysroots/aarch64-poky-linux/usr/include/glib-2.0/glib/gtypes.h:32,&lt;BR /&gt;from /opt/fsl-imx-wayland/4.14-sumo/sysroots/aarch64-poky-linux/usr/include/glib-2.0/glib/galloca.h:32,&lt;BR /&gt;from /opt/fsl-imx-wayland/4.14-sumo/sysroots/aarch64-poky-linux/usr/include/glib-2.0/glib.h:30,&lt;BR /&gt;from /opt/fsl-imx-wayland/4.14-sumo/sysroots/aarch64-poky-linux/usr/include/gstreamer-1.0/gst/gst.h:27,&lt;BR /&gt;from basic_tut1.c:1:&lt;BR /&gt;/opt/fsl-imx-wayland/4.14-sumo/sysroots/x86_64-pokysdk-linux/usr/lib/aarch64-poky-linux/gcc/aarch64-poky-linux/7.3.0/include-fixed/limits.h:194:61: error: no include path in which to search for limits.h&lt;BR /&gt;#include_next &amp;lt;limits.h&amp;gt; /* recurse down to the real one */&lt;BR /&gt;^&lt;BR /&gt;In file included from /opt/fsl-imx-wayland/4.14-sumo/sysroots/aarch64-poky-linux/usr/include/glib-2.0/glib/galloca.h:32:0,&lt;BR /&gt;from /opt/fsl-imx-wayland/4.14-sumo/sysroots/aarch64-poky-linux/usr/include/glib-2.0/glib.h:30,&lt;BR /&gt;from /opt/fsl-imx-wayland/4.14-sumo/sysroots/aarch64-poky-linux/usr/include/gstreamer-1.0/gst/gst.h:27,&lt;BR /&gt;from basic_tut1.c:1:&lt;BR /&gt;/opt/fsl-imx-wayland/4.14-sumo/sysroots/aarch64-poky-linux/usr/include/glib-2.0/glib/gtypes.h:35:10: fatal error: time.h: No such file or directory&lt;BR /&gt;#include &amp;lt;time.h&amp;gt;&lt;BR /&gt;^~~~~~~~&lt;BR /&gt;compilation terminated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried rebuilding the SDK, the same error repeated. I will also try it with warrior branch since zeus branch gives error with gstreamer. Meanwhile Please help me resolve the issue or provide an alternative to allow cross-compliation of gstreamer applications from x86_64 host to arm64&amp;nbsp;target imx8mqevk machine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Mon, 21 Dec 2020 01:23:51 GMT</pubDate>
    <dc:creator>gurpartap</dc:creator>
    <dc:date>2020-12-21T01:23:51Z</dc:date>
    <item>
      <title>Unable to cross-compile gstreamer application</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Unable-to-cross-compile-gstreamer-application/m-p/1202089#M166757</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am working on IMX8MQEVK board, using&amp;nbsp;&lt;SPAN&gt;Linux BSP&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;L4.14.98_2.0.0. I&lt;/SPAN&gt;&amp;nbsp;wanted to cross-compile gstreamer application from linux host system. Since native&amp;nbsp;&lt;EM&gt;aarch64-linux-gnu-gcc&amp;nbsp;&lt;/EM&gt;is unable to find gstreamer-1.0 libraries, I decided build the SDK with required libraries using bitbake&amp;nbsp;fsl-image-validation-imx -c populate_sdk. I added the meta-gstreamer1.0 layer from sumo branch to source and in bblayer.conf file and as instructed in linux users giude, added following code to local.conf:&lt;/P&gt;&lt;P&gt;&amp;nbsp;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"&lt;BR /&gt;LICENSE_FLAGS_WHITELIST = "commercial"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The sdk was built succesfully and I installed it to /opt/fsl-image destination but now when I used&amp;nbsp; aarch64-poky-linux-gcc app.c -o app_arm `pkg-config --cflags --libs gstreamer-1.0`, I get the following error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;In file included from /opt/fsl-imx-wayland/4.14-sumo/sysroots/x86_64-pokysdk-linux/usr/lib/aarch64-poky-linux/gcc/aarch64-poky-linux/7.3.0/include-fixed/syslimits.h:7:0,&lt;BR /&gt;from /opt/fsl-imx-wayland/4.14-sumo/sysroots/x86_64-pokysdk-linux/usr/lib/aarch64-poky-linux/gcc/aarch64-poky-linux/7.3.0/include-fixed/limits.h:34,&lt;BR /&gt;from /opt/fsl-imx-wayland/4.14-sumo/sysroots/aarch64-poky-linux/usr/lib/glib-2.0/include/glibconfig.h:11,&lt;BR /&gt;from /opt/fsl-imx-wayland/4.14-sumo/sysroots/aarch64-poky-linux/usr/include/glib-2.0/glib/gtypes.h:32,&lt;BR /&gt;from /opt/fsl-imx-wayland/4.14-sumo/sysroots/aarch64-poky-linux/usr/include/glib-2.0/glib/galloca.h:32,&lt;BR /&gt;from /opt/fsl-imx-wayland/4.14-sumo/sysroots/aarch64-poky-linux/usr/include/glib-2.0/glib.h:30,&lt;BR /&gt;from /opt/fsl-imx-wayland/4.14-sumo/sysroots/aarch64-poky-linux/usr/include/gstreamer-1.0/gst/gst.h:27,&lt;BR /&gt;from basic_tut1.c:1:&lt;BR /&gt;/opt/fsl-imx-wayland/4.14-sumo/sysroots/x86_64-pokysdk-linux/usr/lib/aarch64-poky-linux/gcc/aarch64-poky-linux/7.3.0/include-fixed/limits.h:194:61: error: no include path in which to search for limits.h&lt;BR /&gt;#include_next &amp;lt;limits.h&amp;gt; /* recurse down to the real one */&lt;BR /&gt;^&lt;BR /&gt;In file included from /opt/fsl-imx-wayland/4.14-sumo/sysroots/aarch64-poky-linux/usr/include/glib-2.0/glib/galloca.h:32:0,&lt;BR /&gt;from /opt/fsl-imx-wayland/4.14-sumo/sysroots/aarch64-poky-linux/usr/include/glib-2.0/glib.h:30,&lt;BR /&gt;from /opt/fsl-imx-wayland/4.14-sumo/sysroots/aarch64-poky-linux/usr/include/gstreamer-1.0/gst/gst.h:27,&lt;BR /&gt;from basic_tut1.c:1:&lt;BR /&gt;/opt/fsl-imx-wayland/4.14-sumo/sysroots/aarch64-poky-linux/usr/include/glib-2.0/glib/gtypes.h:35:10: fatal error: time.h: No such file or directory&lt;BR /&gt;#include &amp;lt;time.h&amp;gt;&lt;BR /&gt;^~~~~~~~&lt;BR /&gt;compilation terminated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried rebuilding the SDK, the same error repeated. I will also try it with warrior branch since zeus branch gives error with gstreamer. Meanwhile Please help me resolve the issue or provide an alternative to allow cross-compliation of gstreamer applications from x86_64 host to arm64&amp;nbsp;target imx8mqevk machine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 01:23:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Unable-to-cross-compile-gstreamer-application/m-p/1202089#M166757</guid>
      <dc:creator>gurpartap</dc:creator>
      <dc:date>2020-12-21T01:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to cross-compile gstreamer application</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Unable-to-cross-compile-gstreamer-application/m-p/1202953#M166837</link>
      <description>&lt;P&gt;4.14.98 includes gstreamer already, after you build the yocto bsp accroding to the yocto user guide, you can get the gstreamer libary already you don't need to cross compile it&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 08:26:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Unable-to-cross-compile-gstreamer-application/m-p/1202953#M166837</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2020-12-22T08:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to cross-compile gstreamer application</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Unable-to-cross-compile-gstreamer-application/m-p/1203846#M166925</link>
      <description>&lt;P&gt;Hello Joanxie,&lt;/P&gt;&lt;P&gt;I found the&amp;nbsp;&lt;SPAN&gt;gstreamer libraries in the build, but they only allow me to work with gst functions on&amp;nbsp;command-line. I however wanted to build an application that could allow me to switch between two cameras and record and playback video using interactive interface. Hence, I wanted to cross compile the application from linux host machine for imx8m device. Is there a BSP version which is works well for creating SDK for gstreamer as I saw many discussions stating that when building the toolchain or SDK, the library linkers often point to host lib folder, causing issues while cross compiling.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 01:35:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Unable-to-cross-compile-gstreamer-application/m-p/1203846#M166925</guid>
      <dc:creator>gurpartap</dc:creator>
      <dc:date>2020-12-24T01:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to cross-compile gstreamer application</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Unable-to-cross-compile-gstreamer-application/m-p/1205304#M167111</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I ended up solving my problem and it was an issue in the linker file in the built SDK. I used GNU toolchain along with the libraries from sumo build&amp;nbsp;&lt;/P&gt;&lt;P&gt;aarch64-linux-gnu-gcc --sysroot=/home/gavy0197/imx/toolchain/sysroots/aarch64-poky-linux -L/home/gavy0197/imx/toolchain/sysroots/aarch64-poky-linux/usr/lib/ gtsream_app.c -o gtsream_app_arm `pkg-config --cflags --libs gstreamer-1.0`&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I added -L"folder to gstreamer library" and changed the sysroot directory to where the correct linker script and all the required header files were located. I really thought it would be smoother than this but I hope it helps someone who has a similar query.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 18:51:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Unable-to-cross-compile-gstreamer-application/m-p/1205304#M167111</guid>
      <dc:creator>gurpartap</dc:creator>
      <dc:date>2020-12-30T18:51:30Z</dc:date>
    </item>
  </channel>
</rss>

