iwatake2222 / play_with_tflite

Sample projects for TensorFlow Lite in C++ with delegates such as GPU, EdgeTPU, XNNPACK, NNAPI
Apache License 2.0
357 stars 79 forks source link

fatal error: tensorflow/lite/interpreter.h: No such file or directory #41

Closed Yen-Lung-Huang closed 2 years ago

Yen-Lung-Huang commented 2 years ago

Issue report question

Environment (Hardware)

Project Name

pj_tflite_lane_lanenet-lane-detection

Issue Details

An error occurs when build: image

And i already put libtensorflowlite.so in /InferenceHelper/third_party/tensorflow_prebuilt/aarch64/

and tensorflow source path in /home/ubuntu/tensorflow

How to Reproduce

In /pj_tflite_lane_lanenet-lane-detection/build directory, run

cmake .

and run

make

Error Log

[  7%] Building CXX object image_processor/inference_helper/CMakeFiles/InferenceHelper.dir/inference_helper.cpp.o
In file included from /home/ubuntu/Codes/Project_with_tflite/InferenceHelper/inference_helper/inference_helper.cpp:35:
/home/ubuntu/Codes/Project_with_tflite/InferenceHelper/inference_helper/inference_helper_tensorflow_lite.h:27:10: fatal error: tensorflow/lite/interpreter.h: No such file or directory
   27 | #include <tensorflow/lite/interpreter.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [image_processor/inference_helper/CMakeFiles/InferenceHelper.dir/build.make:63: image_processor/inference_helper/CMakeFiles/InferenceHelper.dir/inference_helper.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:221: image_processor/inference_helper/CMakeFiles/InferenceHelper.dir/all] Error 2

Additional Information

What problem is this? How to fix it? And thank you for the repository.

iwatake2222 commented 2 years ago

You need to run sh InferenceHelper/third_party/download_prebuilt_libraries.sh

iwatake2222 commented 2 years ago

This issue was closed because it has been inactive.