Re: [yocto] do_package error after building meta-tensorflow and libcamera-apps does not detect tensorflow-lite

"ashish shrikhande6" <[email protected]>
Newsgroups org.yoctoproject.lists.yocto
Message-ID <[email protected]>
After Integrating tflite with libcamera I am getting some compilation errors:
1.
| In file included from ../sources/libcamera-apps-1.9.0+git/post_processing_stages/tf_stage.cpp:7:
| ../sources/libcamera-apps-1.9.0+git/post_processing_stages/tf_stage.hpp:16:10: fatal error: tensorflow/lite/builtin_op_data.h: No such file or directory
|    16 | #include "tensorflow/lite/builtin_op_data.h"
|       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| compilation terminated.

2.

| In file included from ../sources/libcamera-apps-1.9.0+git/post_processing_stages/tensorflow/lite/schema/schema_generated.h:18,
|                  from ../sources/libcamera-apps-1.9.0+git/post_processing_stages/tensorflow/lite/core/api/op_resolver.h:29,
|                  from ../sources/libcamera-apps-1.9.0+git/post_processing_stages/tensorflow/lite/core/subgraph.h:36,
|                  from ../sources/libcamera-apps-1.9.0+git/post_processing_stages/tensorflow/lite/core/async/async_subgraph.h:27,
|                  from ../sources/libcamera-apps-1.9.0+git/post_processing_stages/tensorflow/lite/core/async/async_signature_runner.h:24,
|                  from ../sources/libcamera-apps-1.9.0+git/post_processing_stages/tensorflow/lite/core/interpreter.h:48,
|                  from ../sources/libcamera-apps-1.9.0+git/post_processing_stages/tensorflow/lite/interpreter.h:21,
|                  from ../sources/libcamera-apps-1.9.0+git/post_processing_stages/tf_stage.hpp:18,
|                  from ../sources/libcamera-apps-1.9.0+git/post_processing_stages/object_classify_tf_stage.cpp:8:
| ../sources/libcamera-apps-1.9.0+git/post_processing_stages/tensorflow/compiler/mlir/lite/schema/schema_generated.h:21:10: fatal error: flatbuffers/flatbuffers.h: No such file or directory
|    21 | #include "flatbuffers/flatbuffers.h"
|       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| compilation terminated.

3.

| In file included from ../sources/libcamera-apps-1.9.0+git/post_processing_stages/segmentation_tf_stage.cpp:8:
| ../sources/libcamera-apps-1.9.0+git/post_processing_stages/segmentation.hpp:15:82: error: 'uint8_t' was not declared in this scope
|    15 |         Segmentation(int w, int h, std::vector<std::string> l, const std::vector<uint8_t> &s)
|       |                                                                                  ^~~~~~~
| ../sources/libcamera-apps-1.9.0+git/post_processing_stages/segmentation.hpp:12:1: note: 'uint8_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'

4.

| In file included from ../sources/libcamera-apps-1.9.0+git/post_processing_stages/tensorflow/lite/core/c/builtin_op_data.h:24,
|                  from ../sources/libcamera-apps-1.9.0+git/post_processing_stages/tensorflow/lite/builtin_op_data.h:20,
|                  from ../sources/libcamera-apps-1.9.0+git/post_processing_stages/tf_stage.hpp:16,
|                  from ../sources/libcamera-apps-1.9.0+git/post_processing_stages/object_detect_tf_stage.cpp:9:
| ../sources/libcamera-apps-1.9.0+git/post_processing_stages/tensorflow/lite/core/c/common.h:125:7: error: ISO C++ forbids flexible array member 'data' [-Werror=pedantic]
|   125 |   int data[];
|       |       ^~~~
| ../sources/libcamera-apps-1.9.0+git/post_processing_stages/tensorflow/lite/core/c/common.h:169:9: error: ISO C++ forbids flexible array member 'data' [-Werror=pedantic]
|   169 |   float data[];
|       |         ^~~~
| cc1plus: all warnings being treated as errors
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.