Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on make for not-x64 #2

Closed
shariq-audiofocus opened this issue Mar 25, 2020 · 2 comments
Closed

Error on make for not-x64 #2

shariq-audiofocus opened this issue Mar 25, 2020 · 2 comments

Comments

@shariq-audiofocus
Copy link

Thanks for building this project iwatake. I'm trying to build an EdgeTPU CPP example for my Coral Dev board.

I was able to build and run the binary for x86 using your instructions. But when I tried for arm-v8 it failed with the following error:

(base) shariqm@bigsir:~/code/coral/EdgeTPU_CPP/project_classification_tflite/build$ cmake .. -DARCH_TYPE=aarch64 -DUSE_EDGETPU=on
... [success]
(base) shariqm@bigsir:~/code/coral/EdgeTPU_CPP/project_classification_tflite/build$ make
Scanning dependencies of target main
[ 50%] Building CXX object CMakeFiles/main.dir/main.cpp.o
[100%] Linking CXX executable main
/usr/bin/ld: ../../third_party/tensorflow_prebuilt/generic-aarch64_armv8-a/lib/libtensorflow-lite.a(interpreter.o): Relocations in generic ELF (EM: 183)
...
/usr/bin/ld: ../../third_party/tensorflow_prebuilt/generic-aarch64_armv8-a/lib/libtensorflow-lite.a(interpreter.o): Relocations in generic ELF (EM: 183)
../../third_party/tensorflow_prebuilt/generic-aarch64_armv8-a/lib/libtensorflow-lite.a: error adding symbols: File in wrong format

I think it's some type of cross-compiling issue but I'm not sure. Any idea? I'm using Ubuntu 18.04 so perhaps that's a problem:

(base) shariqm@bigsir:~/code/coral/EdgeTPU_CPP/project_classification_tflite/build$ uname -a
Linux bigsir 4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:24:09 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
(base) shariqm@bigsir:~/code/coral/EdgeTPU_CPP/project_classification_tflite/build$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.2 LTS
Release:        18.04
Codename:       bionic
@iwatake2222
Copy link
Owner

The project is for native build. Please build on Coral Dev Board.

If you want to build on your PC(Ubuntu), you need to install cross compiler for arm and modify cmake (like set(CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++) ).

@shariq-audiofocus
Copy link
Author

ah ok thanks, that worked. Cross compiling would be nice since the coral dev board doesn't have much disk space. I'll try your suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants