zye1996 / Yolov5_EdgeTPU

4 stars 2 forks source link

compile err occured #5

Open how2flow opened 2 years ago

how2flow commented 2 years ago

hello, There was a problem trying to apply your code.

my env ARCH: arm64 BOARD: odroid-M1 kernel: 5.18

I installed absl library.

my error log

tensorflow/lite/tools/make/downloads/ruy/ruy/block_map.cc: In function ‘void ruy::MakeBlockMap(int, int, int, int, int, int, int, int, const ruy::CpuCacheParams&, ruy::BlockMap*)’:
tensorflow/lite/tools/make/downloads/ruy/ruy/block_map.cc:375:25: error: ‘numeric_limits’ is not a member of ‘std’
  375 |   int best_score = std::numeric_limits<int>::min();
      |                         ^~~~~~~~~~~~~~
tensorflow/lite/tools/make/downloads/ruy/ruy/block_map.cc:375:40: error: expected primary-expression before ‘int’
  375 |   int best_score = std::numeric_limits<int>::min();

Can you help me if there's a way to solve it?

thank you.

how2flow commented 2 years ago

I reinstalled python3-pycoral and solved it However, I see an error log that appears to be an archive problem.

[100%] Linking CXX executable ../out/aarch64/Yolo_EdgeTPU
/usr/bin/ld: /usr/lib/aarch64-linux-gnu/mali/libwayland-egl.so.1: .dynsym local symbol at index 3 (>= sh_info of 3)
/usr/bin/ld: /usr/lib/aarch64-linux-gnu/mali/libwayland-egl.so.1: .dynsym local symbol at index 4 (>= sh_info of 3)
/usr/bin/ld: /usr/lib/aarch64-linux-gnu/mali/libwayland-egl.so.1: .dynsym local symbol at index 5 (>= sh_info of 3)
/usr/bin/ld: /usr/lib/aarch64-linux-gnu/mali/libwayland-egl.so.1: .dynsym local symbol at index 6 (>= sh_info of 3)
/usr/bin/ld: /usr/lib/aarch64-linux-gnu/mali/libwayland-egl.so.1: .dynsym local symbol at index 7 (>= sh_info of 3)
/usr/bin/ld: /usr/lib/aarch64-linux-gnu/mali/libwayland-egl.so.1: .dynsym local symbol at index 8 (>= sh_info of 3)
/usr/bin/ld: /usr/lib/aarch64-linux-gnu/mali/libwayland-egl.so.1: .dynsym local symbol at index 9 (>= sh_info of 3)
/usr/bin/ld: libtensorflow-lite.a(spectrogram.o): in function `tflite::internal::Spectrogram::ProcessCoreFFT()':
spectrogram.cc:(.text+0x460): undefined reference to `rdft'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/Yolo_EdgeTPU.dir/build.make:158: ../out/aarch64/Yolo_EdgeTPU] Error 1
make[1]: *** [CMakeFiles/Makefile2:657: CMakeFiles/Yolo_EdgeTPU.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

Can you check it out? thank you.