I have tried:
1.In build/config.cmake:
set(CMAKE_TOOLCHAIN_FILE /home/yuwenjun/tools/Sdk/ndk/20.1.5948944/build/cmake/android.toolchain.cmake)
set(ANDROID_ABI “arm64-v8a”)
set(ANDROID_PLATFORM android-28)
2、
cmake -DCMAKE_BUILD_TYPE=Release
-DCMAKE_TOOLCHAIN_FILE=/home/yuwenjun/tools/Sdk/ndk/20.1.5948944/build/cmake/android.toolchain.cmake
-DANDROID_ABI=arm64-v8a
-DANDROID_PLATFORM=“android-28”
-DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ON
-DANDROID_STL=c++_static
-DUSE_CPP_RPC=ON
-DUSE_HEXAGON_SDK=OFF …
“file tvm_rpc” shows it’s a file for x86-64, but couldn’t run on android device too.
file tvm_rpc tvm_rpc: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=adec0d7c36e2abfb2491f8fb9c8e9408754c8b05, not stripped