Tensorflow SDK compile

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Tensorflow SDK compile

Jump to solution
3,159 Views
weilly_li
Contributor IV

Hi, 

     I get some error  When I compile SDK  using "bitbake -c populate_sdk imx-image-full" 

     Error : Unable to locate package tensorflow-lite-staticdev 

     BSP : L5.10.35.2.0.0

    How can I fix this problem ? Thank you

 

Weilly

0 Kudos
Reply
1 Solution
3,020 Views
weilly_li
Contributor IV

Dear All,

I solved this problem about the newest bsp can't compile tensorflow DEMO issue by myself.

Please follow step

(1) Build BSP L5.10.35.2.0.0 SDK of i.MX8MPlus

      $ source ./imx-setup-release.sh -b bld-xwayland      $ Add in local.conf
         IMAGE_INSTALL_append += " packagegroup-imx-ml"
         TOOLCHAIN_TARGET_TASK_append += "tensorflow-lite-dev armnn-dev  onnxruntime-dev"
      $  bitbake -c populate_sdk imx-image-full
       Tip :  tensorflow-lite-staticdev package has some problem for this version 

 

(2) Install SDK

      $  cd /home/weilly/fsl-yocto-8mp/bld-xwayland/tmp/deploy/sdk
      $ ./fsl-imx-xwayland-glibc-x86_64-imx-image-full-cortexa53-crypto-imx8mpevk-toolchain-5.10-hardknott.sh

 

(3) Setting Environment

     $ source /opt/fsl-imx-xwayland/5.10-hardknott/environment-setup-cortexa53-crypto-poky-linux

 

(4) Download Tensorflow Lite Source Code

     $ git clone https://github.com/tensorflow/tensorflow 
     $ git checkout v2.4.0

 

(5) Compile Code

     $ cd /tensorflow/tensorflow/lite/examples/label_image
    $ $CC -o label_image_weilly label_image.cc bitmap_helpers.cc ../../tools/evaluation/utils.cc \
        -I=/usr/include/tensorflow/lite/tools/make/downloads/flatbuffers/include \
        -I=/usr/include/tensorflow/lite/tools/make/downloads/absl \
        -ltensorflow-lite -lstdc++ -lpthread -lm -ldl -lrt

   

here, Share.

Weilly

View solution in original post

0 Kudos
Reply
10 Replies
3,149 Views
igorpadykov
NXP Employee
NXP Employee

Hi Weilly

 

one can try steps provided in sect.5.6.7 NXP® eIQTM machine learning   i.MX Yocto Project User’s Guide​

 

Best regards
igor

0 Kudos
Reply
3,142 Views
weilly_li
Contributor IV

Hi, igorpadykov.

I had follow step on this document. So I get this problem !
Can you get me a correctly suggest?? I really need the solution .
Thank !!

Weilly

0 Kudos
Reply
3,131 Views
igorpadykov
NXP Employee
NXP Employee

what processor used in the case.

 

Best regards
igor

0 Kudos
Reply
3,124 Views
weilly_li
Contributor IV

Hi, igorpadykov. 

      frist, i appreciate your concern.
      Using Platform is i.MX8MPlus
      My Step :
      >> EULA=1 MACHINE=imx8mpevk DISTRO=fsl-imx-xwayland
      >> source ./imx-setup-release.sh -b bld-xwayland   
      >> local.conf >> Add TOOLCHAIN_TARGET_TASK_append
      >> bitbake -c populate_sdk imx-image-full

      So ,  I get some error  When I compile SDK  using "bitbake -c populate_sdk imx-image-full" 

      Error : Unable to locate package tensorflow-lite-staticdev 

      BSP : L5.10.35.2.0.0

      Thank You !!

Weilly Li

0 Kudos
Reply
3,118 Views
igorpadykov
NXP Employee
NXP Employee

for tensorflow-lite compilation errors may be useful to look at

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Compiling-L5-4-3-1-0-0-BSP-On-Ubuntu-180...

 

Best regards
igor

0 Kudos
Reply
3,086 Views
weilly_li
Contributor IV

Hi, @igorpadykov 

      i have confirmed add it . so I know this toolchian's problem of "tensorflow-lite-staticdev"

      BSP : L5.10.35.2.0.0

      Platform : NXP i.MX8MPlus tesnorflow-lite-satatucdev.png

Weilly

0 Kudos
Reply
3,079 Views
igorpadykov
NXP Employee
NXP Employee

suggest to post issue on dedicated "eIQ Machine Learning Software" community

https://community.nxp.com/t5/eIQ-Machine-Learning-Software/bd-p/eiq

 

Best regards
igor

0 Kudos
Reply
3,023 Views
weilly_li
Contributor IV

Dear All,

I solved this problem about the newest bsp can't compile tensorflow DEMO issue by myself.

Please follow step

(1) Build BSP L5.10.35.2.0.0 SDK of i.MX8MPlus

      $ source ./imx-setup-release.sh -b bld-xwayland      $ Add in local.conf
         IMAGE_INSTALL_append += " packagegroup-imx-ml"
         TOOLCHAIN_TARGET_TASK_append += "tensorflow-lite-dev armnn-dev  onnxruntime-dev"
      $  bitbake -c populate_sdk imx-image-full
       Tip :  tensorflow-lite-staticdev package has some problem for this version 

 

(2) Install SDK

      $  cd /home/weilly/fsl-yocto-8mp/bld-xwayland/tmp/deploy/sdk
      $ ./fsl-imx-xwayland-glibc-x86_64-imx-image-full-cortexa53-crypto-imx8mpevk-toolchain-5.10-hardknott.sh

 

(3) Setting Environment

     $ source /opt/fsl-imx-xwayland/5.10-hardknott/environment-setup-cortexa53-crypto-poky-linux

 

(4) Download Tensorflow Lite Source Code

     $ git clone https://github.com/tensorflow/tensorflow 
     $ git checkout v2.4.0

 

(5) Compile Code

     $ cd /tensorflow/tensorflow/lite/examples/label_image
    $ $CC -o label_image_weilly label_image.cc bitmap_helpers.cc ../../tools/evaluation/utils.cc \
        -I=/usr/include/tensorflow/lite/tools/make/downloads/flatbuffers/include \
        -I=/usr/include/tensorflow/lite/tools/make/downloads/absl \
        -ltensorflow-lite -lstdc++ -lpthread -lm -ldl -lrt

   

here, Share.

Weilly

0 Kudos
Reply
3,021 Views
weilly_li
Contributor IV

Dear All,

I solved this problem about the newest bsp can't compile tensorflow DEMO issue by myself.

Please follow step

(1) Build BSP L5.10.35.2.0.0 SDK of i.MX8MPlus

      $ source ./imx-setup-release.sh -b bld-xwayland      $ Add in local.conf
         IMAGE_INSTALL_append += " packagegroup-imx-ml"
         TOOLCHAIN_TARGET_TASK_append += "tensorflow-lite-dev armnn-dev  onnxruntime-dev"
      $  bitbake -c populate_sdk imx-image-full
       Tip :  tensorflow-lite-staticdev package has some problem for this version 

 

(2) Install SDK

      $  cd /home/weilly/fsl-yocto-8mp/bld-xwayland/tmp/deploy/sdk
      $ ./fsl-imx-xwayland-glibc-x86_64-imx-image-full-cortexa53-crypto-imx8mpevk-toolchain-5.10-hardknott.sh

 

(3) Setting Environment

     $ source /opt/fsl-imx-xwayland/5.10-hardknott/environment-setup-cortexa53-crypto-poky-linux

 

(4) Download Tensorflow Lite Source Code

     $ git clone https://github.com/tensorflow/tensorflow 
     $ git checkout v2.4.0

 

(5) Compile Code

     $ cd /tensorflow/tensorflow/lite/examples/label_image
    $ $CC -o label_image_weilly label_image.cc bitmap_helpers.cc ../../tools/evaluation/utils.cc \
        -I=/usr/include/tensorflow/lite/tools/make/downloads/flatbuffers/include \
        -I=/usr/include/tensorflow/lite/tools/make/downloads/absl \
        -ltensorflow-lite -lstdc++ -lpthread -lm -ldl -lrt

   

here, Share.

Weilly

0 Kudos
Reply
3,111 Views
weilly_li
Contributor IV

Hi, igorpadykov.

Just tried your suggestion. I have updated all package that document. But still not compile SDK ...

BTW. I can succed compile the instruction "bitbake imx-image-full". So I think is not solution.

at the yesterday, someone meet this problem too on the communtity. Can you help us figure out this problem?

Thank you for your assistance !!

Weilly 

0 Kudos
Reply