Closed besartgrabanica closed 3 years ago
Hi!
Just build OpenVINO for Android specifying ARM ABI. See https://github.com/openvinotoolkit/openvino/wiki/BuildingForAndroid.
Closing, please re-open if additional assistance is needed.
@dkurt Thank you for the swift response. I have been following the instructions, but when running the make command as described under step nr. 4 I face the following error:
Do you have any idea why this is happening and how can I overcome it?
Thank you, Besart
Please do not paste screenshots - put cmake command arguments and full log in text. There is no error message on the screenshot because it's below in the logs.
@dkurt Here are the cmake command arguments:
cmake .. -DCMAKE_TOOLCHAIN_FILE=/home/besart/solaborate/repos/cloned_repos/android-ndk/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a -DANDROID_PLATFORM=28 -DANDROID_STL=c++_shared -DENABLE_OPENCV=OFF
Should you require any further information, please let me know.
Thank you!
Thanks, now it's clear!
../../../../inference-engine/temp/tbb/cmake/../lib/libtbb.so: error adding symbols: File in wrong format clang++: error: linker command failed with exit code 1 (use -v to see invocation)
There are thirdparty dependencies which are downloaded from https://download.01.org/opencv/master/openvinotoolkit/thirdparty/android/. TBB goes for x86_64 only but libusb
is available for every architecture. So you may try to disable TBB: add -DTHREADING=SEQ
to CMake flags.
@dkurt I faced yet another problem at 71%.
Here you have the cmake command arguments:
cmake .. -DCMAKE_TOOLCHAIN_FILE=/home/besart/solaborate/repos/cloned_repos/android-ndk/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a -DANDROID_PLATFORM=28 -DANDROID_STL=c++_shared -DENABLE_OPENCV=OFF -DTHREADING=SEQ
What would be the next step here?
@besartgrabanica, which version of Android NDK do you use? May I ask to try r20: https://dl.google.com/android/repository/android-ndk-r20-linux-x86_64.zip?
@dkurt I was using that version. Just in case, I downloaded the Android NDK from the link provided by you and repeated the process bu the same happened.
Any idea on how to proceed?
In my last attempt mentioned above I used the same cmake command flags and got the same logs.
CMake command flags:
cmake .. -DCMAKE_TOOLCHAIN_FILE=/home/besart/solaborate/repos/cloned_repos/android-ndk-r20-linux-x86_64/android-ndk/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a -DANDROID_PLATFORM=28 -DANDROID_STL=c++_shared -DENABLE_OPENCV=OFF -DTHREADING=SEQ
Full logs:
@dkurt I managed to do the build for Android on a CPU with ARM64 architecture. Do you think it is a problem to run a certain ML model on GPU? For example on an Adreno GPU which comes with the Qualcomm Snapdragon chipset.
Do you think it is a problem to run a certain ML model on GPU? For example on an Adreno GPU which comes with the Qualcomm Snapdragon chipset.
@besartgrabanica, Hi! OpenVINO does not provide support for this GPU.
Hello,
I am interested to run an ML model through Open VINO on NCS2 connected to an Android run system (Qualcomm 835 chipset). I could not find any APIs or documentation on how to do this.
Could anyone advise me in this endeavor or at least direct me somewhere where I could get help with this?
Thank you in advance!