Tvm Rpc apk build error

before copying config.mk file it was working i built a apk and run it but phone couldn’t connect to pc via rpc. Because of that copied config.mk file and the content is also here.

APP_ABI = arm64-v8a

APP_PLATFORM = android-24

whether enable OpenCL during compile

USE_OPENCL = 1

whether to enable Vulkan during compile

USE_VULKAN = 1

whether to enable contrib sort functions during compile

USE_SORT = 1

ifeq ($(USE_VULKAN), 1)

Statically linking vulkan requires API Level 24 or higher

APP_PLATFORM = android-24 endif

the additional include headers you want to add, e.g., SDK_PATH/adrenosdk/Development/Inc

ADD_C_INCLUDES += /home/hakanhodas/development/OpenCL-Headers-master/

the additional link libs you want to add, e.g., ANDROID_LIB_PATH/libOpenCL.so

ADD_LDLIBS = /usr/lib/x86_64-linux-gnu/libOpenCL.so

After i create this config.mk file i can’t build it get this error.

Note: i downloaded libOpenCL.so file from ubuntu repositories.

You’re compiling code for Android on ARM/AArch64, but this file is built for x86-64.

1 Like