terryky / tflite_gles_app

GPU accelerated deep learning inference applications for RaspberryPi / JetsonNano / Linux PC using TensorflowLite GPUDelegate / TensorRT
MIT License
488 stars 130 forks source link

I followed your compiling steps, but meets some errors on host pc(Ubuntu 18.04) #27

Open baixianger opened 3 years ago

baixianger commented 3 years ago
ERROR: /home/creapai/work/tensorflow_r2.4/tensorflow/lite/delegates/gpu/BUILD:232:1: C++ compilation of rule '//tensorflow/lite/delegates/gpu:delegate' failed (Exit 1)
In file included from ./tensorflow/lite/delegates/gpu/api.h:50,
                 from tensorflow/lite/delegates/gpu/delegate.cc:28:
./tensorflow/lite/delegates/gpu/gl/portable_gl31.h:21:10: fatal error: EGL/egl.h: No such file or directory
 #include <EGL/egl.h>
          ^~~~~~~~~~~
compilation terminated.
Target //tensorflow/lite/delegates/gpu:libtensorflowlite_gpu_delegate.so failed to build
terryky commented 3 years ago

did you install libgles2-mesa-dev ?

sudo apt install libgles2-mesa-dev 
hmrishavbandy commented 2 years ago

Same error even after installing libgles2-mesa-dev

(ai) root@gpu-3:~/work# apt install libgles2-mesa-dev 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libgles2-mesa-dev is already the newest version (20.0.8-0ubuntu1~18.04.1).