<?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: Tensorflow Lite - Flatbuffers.h error [Bitbake cmake] in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Tensorflow-Lite-Flatbuffers-h-error-Bitbake-cmake/m-p/1262846#M172655</link>
    <description>&lt;P&gt;Hello ardtrkc,&lt;/P&gt;
&lt;P&gt;For Tensorflow issue once can see the eIQ Machine learning page:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/eIQ-Machine-Learning-Software/tkb-p/eiq@tkb" target="_blank"&gt;https://community.nxp.com/t5/eIQ-Machine-Learning-Software/tkb-p/eiq@tkb&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;There is a lot of example where tensor flow is relases:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/eIQ-Machine-Learning-Software/eIQ-Sample-Apps-Overview/ta-p/1122925" target="_blank"&gt;https://community.nxp.com/t5/eIQ-Machine-Learning-Software/eIQ-Sample-Apps-Overview/ta-p/1122925&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Apr 2021 13:25:22 GMT</pubDate>
    <dc:creator>Bio_TICFSL</dc:creator>
    <dc:date>2021-04-15T13:25:22Z</dc:date>
    <item>
      <title>Tensorflow Lite - Flatbuffers.h error [Bitbake cmake]</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Tensorflow-Lite-Flatbuffers-h-error-Bitbake-cmake/m-p/1260584#M172453</link>
      <description>&lt;P&gt;Hello !&lt;/P&gt;&lt;P&gt;Our aim is to install TensorFlow Lite in our embedded board. To reach this aim, firstly we made a recipe to build TFLite in our Yocto framework. After this step our static tensorflow-lite library was generated.&lt;/P&gt;&lt;P&gt;Then, we wanted to try the functionality of the library with a basic helloworld program. For this step, we chose to start with &lt;A href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/examples/minimal/minimal.cc" target="_self"&gt;&lt;EM&gt;minimal.cpp&lt;/EM&gt;&lt;/A&gt; which is from official github repo of tensorflow.&lt;/P&gt;&lt;P&gt;For this helloworld (minimal.cpp) program we created a recipe which includes our static tensorflow-lite library inside DEPENDS part. When we bitbake with cmake recipe we get this error about flatbuffers.h ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/home/student/fsl-release-bsp/build-analytics-tflite/tmp/sysroots/analytics/usr/include/tensorflow/contrib/lite/schema/schema_generated.h:21:37: fatal error: flatbuffers/flatbuffers.h: No such file or directory
|  #include "flatbuffers/flatbuffers.h"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-Please check below for files-&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;#include part of minimal.cpp :&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;#include &amp;lt;cstdio&amp;gt;
#include "tensorflow/lite/interpreter.h"
#include "tensorflow/lite/kernels/register.h"
#include "tensorflow/lite/model.h"
#include "tensorflow/lite/optional_debug_tools.h"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Our recipe&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;(helloworld.bb)&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;is as follows:&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;# Recipe for the Hello World program

SUMMARY = "Recipe for the Hello World program"
LICENSE = "CLOSED"
LIC_FILES_CHKSUM = ""

DEPENDS += "opencv"
DEPENDS += "libconfig"
DEPENDS += "tensorflow-lite"

SRC_URI = "git://github.com/aniladar/patch.git;protocol=https;branch=main"

SRCREV = "${AUTOREV}"

# Here we specify the source directory, where we do all the building and expect sources to be placed
S = "${WORKDIR}/git"
B = "${S}"
inherit cmake&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;The&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;CMakeLists.txt&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;file is as follows:&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;cmake_minimum_required(VERSION 3.14)

project(patch)

add_executable(minimal minimal.cc)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe we need some additional things inside &lt;EM&gt;CMakeLists.txt&lt;/EM&gt; file or maybe we have missing DEPENDS inside our recipe. If you brighten up our path it would be perfect. Your guidance and clarifications are important for us.&lt;/P&gt;&lt;P&gt;Thank you in advance !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 13:18:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Tensorflow-Lite-Flatbuffers-h-error-Bitbake-cmake/m-p/1260584#M172453</guid>
      <dc:creator>ardtrkc</dc:creator>
      <dc:date>2021-04-12T13:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Tensorflow Lite - Flatbuffers.h error [Bitbake cmake]</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Tensorflow-Lite-Flatbuffers-h-error-Bitbake-cmake/m-p/1262846#M172655</link>
      <description>&lt;P&gt;Hello ardtrkc,&lt;/P&gt;
&lt;P&gt;For Tensorflow issue once can see the eIQ Machine learning page:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/eIQ-Machine-Learning-Software/tkb-p/eiq@tkb" target="_blank"&gt;https://community.nxp.com/t5/eIQ-Machine-Learning-Software/tkb-p/eiq@tkb&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;There is a lot of example where tensor flow is relases:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/eIQ-Machine-Learning-Software/eIQ-Sample-Apps-Overview/ta-p/1122925" target="_blank"&gt;https://community.nxp.com/t5/eIQ-Machine-Learning-Software/eIQ-Sample-Apps-Overview/ta-p/1122925&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 13:25:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Tensorflow-Lite-Flatbuffers-h-error-Bitbake-cmake/m-p/1262846#M172655</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2021-04-15T13:25:22Z</dc:date>
    </item>
  </channel>
</rss>

