<?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 Re: I.MX8MP opencv runtime error, with eIQ SDK build using yocto in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/I-MX8MP-opencv-runtime-error-with-eIQ-SDK-build-using-yocto/m-p/1369364#M182867</link>
    <description>&lt;P&gt;It appears that (unlike I wrote in my original post) the issue is not with cv::imread functions that are actually OK,&amp;nbsp; but with functions that deal with windows such as cv::destroyWindow (as displayed on the error message ...).&lt;/P&gt;&lt;P&gt;I built with Wayland support only, not X. Does opencv supports Wayland ?&lt;/P&gt;&lt;P&gt;Would simply re-building with DISTRO=fsl-imx-&lt;U&gt;&lt;STRONG&gt;x&lt;/STRONG&gt;&lt;/U&gt;wayland solve this issue ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Nov 2021 14:17:13 GMT</pubDate>
    <dc:creator>mbrundler</dc:creator>
    <dc:date>2021-11-10T14:17:13Z</dc:date>
    <item>
      <title>I.MX8MP opencv runtime error, with eIQ SDK build using yocto</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I-MX8MP-opencv-runtime-error-with-eIQ-SDK-build-using-yocto/m-p/1367991#M182760</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I built an I.MX8M target image as well as the eIQ Machine Learning SDK, using yocto with the &lt;SPAN class=""&gt;imx-5.10.52-2.1.0.xml manifest.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I'm totally new to yocto/bitbake, so I followed the i.MX Yocto Project User's Guide guidelines :&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;repo init -u &lt;A href="https://source.codeaurora.org/external/imx/imx-manifest" target="_blank" rel="noopener"&gt;https://source.codeaurora.org/external/imx/imx-manifest&lt;/A&gt; -b imx-linux-hardknott -m imx-5.10.52-2.1.0.xml&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;repo sync&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;DISTRO=fsl-imx-wayland MACHINE=imx8mp-lpddr4-evk source imx-setup-release.sh -b build&lt;/FONT&gt;&lt;BR /&gt;I then add the following lines to the conf/local.conf file :&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;UBOOT_CONFIG = "sd"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;TOOLCHAIN_TARGET_TASK_append += " tensorflow-lite-dev armnn-dev onnxruntime-dev"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Then :&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;bitbake imx-image-full&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;bitbake imx-image-full -c populate_sdk&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;All is OK.&lt;/P&gt;&lt;P&gt;I flashed the image to the target board, then installed the SDK on the host with :&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;./build/tmp/deploy/sdk/fsl-imx-wayland-glibc-x86_64-imx-image-full-cortexa53-crypto-imx8mp-lpddr4-evk-toolchain-5.10-hardknott.sh&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;So as to check everything's OK, I followed the &lt;SPAN class=""&gt;i.MX Machine Learning User's Guide&lt;/SPAN&gt; and&lt;BR /&gt;compiled the " &lt;SPAN class=""&gt;armnn-mnist" example provided by Arm using the cross compilers provoded by the SDK.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;It executes without problem on the target :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;FONT face="courier new,courier"&gt;tests&amp;gt; ./mnist_tf &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Predicted: 7&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Actual: 7&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Everything's OK so far. The problem arises when I add a "cv::imread(IMG_FILE);" to the code. It still compiles/link OK (after adding the opencv libs -lopencv_core, ... to the link).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Unfortunately I get a runtime error when executing the progam on the target :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class=""&gt;tests&amp;gt; ./mnist_tf &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class=""&gt;terminate called after throwing an instance of 'cv::Exception'&lt;BR /&gt;what(): OpenCV(4.5.2) /usr/src/debug/opencv/4.5.2.imx-r0/git/modules/highgui/src/window.cpp:667: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function 'cvDestroyWindow'&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I guess something's missing in my yocto build to have the expected libraries generated (note that libgtk-3.so.0 is installed on my target). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Thanks for help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Marc Brundler&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 16:59:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I-MX8MP-opencv-runtime-error-with-eIQ-SDK-build-using-yocto/m-p/1367991#M182760</guid>
      <dc:creator>mbrundler</dc:creator>
      <dc:date>2021-11-08T16:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: I.MX8MP opencv runtime error, with eIQ SDK build using yocto</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I-MX8MP-opencv-runtime-error-with-eIQ-SDK-build-using-yocto/m-p/1369364#M182867</link>
      <description>&lt;P&gt;It appears that (unlike I wrote in my original post) the issue is not with cv::imread functions that are actually OK,&amp;nbsp; but with functions that deal with windows such as cv::destroyWindow (as displayed on the error message ...).&lt;/P&gt;&lt;P&gt;I built with Wayland support only, not X. Does opencv supports Wayland ?&lt;/P&gt;&lt;P&gt;Would simply re-building with DISTRO=fsl-imx-&lt;U&gt;&lt;STRONG&gt;x&lt;/STRONG&gt;&lt;/U&gt;wayland solve this issue ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 14:17:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I-MX8MP-opencv-runtime-error-with-eIQ-SDK-build-using-yocto/m-p/1369364#M182867</guid>
      <dc:creator>mbrundler</dc:creator>
      <dc:date>2021-11-10T14:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: I.MX8MP opencv runtime error, with eIQ SDK build using yocto</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I-MX8MP-opencv-runtime-error-with-eIQ-SDK-build-using-yocto/m-p/1369381#M182870</link>
      <description>&lt;P&gt;Hello mbrundler,&lt;/P&gt;
&lt;P&gt;Yes, you might try the xwayland Distro. This error is present when you have a bad image or it has no installed completely OpenCV.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 14:45:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I-MX8MP-opencv-runtime-error-with-eIQ-SDK-build-using-yocto/m-p/1369381#M182870</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2021-11-10T14:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: I.MX8MP opencv runtime error, with eIQ SDK build using yocto</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I-MX8MP-opencv-runtime-error-with-eIQ-SDK-build-using-yocto/m-p/1372118#M183102</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Re-building with DISTRO=fsl-imx-&lt;U&gt;&lt;STRONG&gt;x&lt;/STRONG&gt;&lt;/U&gt;wayland as you suggested actually solved this issue.&lt;/P&gt;&lt;P&gt;Thank you for the help.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 16:01:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I-MX8MP-opencv-runtime-error-with-eIQ-SDK-build-using-yocto/m-p/1372118#M183102</guid>
      <dc:creator>mbrundler</dc:creator>
      <dc:date>2021-11-16T16:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: I.MX8MP opencv runtime error, with eIQ SDK build using yocto</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I-MX8MP-opencv-runtime-error-with-eIQ-SDK-build-using-yocto/m-p/1545539#M196966</link>
      <description>&lt;P&gt;Hi, I am building the same workflow. However, I am stuck with a "do_compile" error which I posted in&amp;nbsp;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/Yocto-hardknott-15-10-72-2-2-2-imx8m-lpddr4-evk-build-error/m-p/1545338#M196951" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/Yocto-hardknott-15-10-72-2-2-2-imx8m-lpddr4-evk-build-error/m-p/1545338#M196951&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Everything is working fine until I run "bitbake imx-image-full".&lt;BR /&gt;&lt;BR /&gt;May I know if it has something to do with my host machine?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 07:22:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I-MX8MP-opencv-runtime-error-with-eIQ-SDK-build-using-yocto/m-p/1545539#M196966</guid>
      <dc:creator>ejmfrancisco</dc:creator>
      <dc:date>2022-10-28T07:22:27Z</dc:date>
    </item>
  </channel>
</rss>

