Hi all,
According to the SDK document SNPE setup.
There is a requirement to copy libatomic.so.1 to $SNPE_ROOT/lib/aarch64-linux-gcc4.9/
However, I am new to cross compiling and I have no idea which library should i copy from.
There are so many different
I know this is stupid but could anyone give me a hint?
I am very appreciated, since i keep getting error message when i make Makefile.aarch64-linux-gcc4.9.
(How to fullfill the following library requirement?)
- Aarch64 Linux Runtime Library Requirement
The SDK requires libatomic.so.1. The SDK does not ship with this library so it needs to be copied into the library folder of SNPE SDK aarch64-linux
cp <path_to_libatomic>/libatomic.so.1 $SNPE_ROOT/lib/aarch64-linux-gcc4.9/
You can find libatomic.so.1 at /usr/aarch64-linux-gnu/lib/ if you've installed cross-compile environment. If not, install the environment first using following command:
Hi jihoonk
Thanks for the reply and I tired the command and it automatically installed gcc-4.8-aarch64-linux-gnu on my system.
But it seems SNPE states that I should use Ubuntu 14.04 to develop the program.
My target platform is aarch64, so i try to compile the snpe-sample with Makefile.aarch64-linux-gcc4.9.
However i found that i on Ubuntu 14.04 there is only gcc-4.8-aarch64-linux-gnu getting supported.
If i want to install gcc-4.9-aarch64-linux-gnu, i have to shift to Ubuntu 16.xx.
Do you have any clue about that? Since i am still not able to compile it successfully.
I can't local libstdc++.so.6 in /usr/aarch64-linux-gnu/lib/
i don't know if it is the matter of gcc version?
Again very appreciated.
Hi jerry.wj_chen,
I'm not sure if you really need gcc-4.9.
Before that, I'd like to check your environment. Could you paste your Makefile and the error message you ran into? Is there /usr/aarch64-linux-gnu/lib/libstdc++.so.6?
Thanks,
Jihoon
Hi jerry.wj_chen,
The build succeeds in my environment.
Ubuntu 16.04 / aarch64-linux-gnu-g++ 5.4.0
$ strings /usr/aarch64-linux-gnu/lib/libstdc++.so.6.0.21 | grep GLIBCXX
Okay, I will upgrade my OS. It seems much easier.
Actually, I use Ubuntu 14.04 only because of the suggestion of SNPE document.
Anyway, thanks for solving my problem! It helps me a lot!