Closed psyhtest closed 5 years ago
I know how I would do that for a program:
"extra_ld_vars": "$<<CK_EXTRA_LIB_DL>>$",
but how about for a package?
I believe you should be able to use ${CK_EXTRA_LIB_DL} in package scripts... If these vars are resolved via dependencies, they should be available everywhere ...
Thanks @gfursin! I've resolved this issue as you suggested.
It's turned out that TFLite 1.13.1 also needs to be patched for Android. This removes one extra subdir, which wasn't there for TFLite 0.1.17. Alternatively, we could modify the installation script and packages, but this would require more changes.
Building TFLite 1.13.1 fails on Ubuntu 18.04 with Android NDK r13b (installed via
apt install google-android-ndk-installer
) as follows:It looks like we need to add
-ldl
to the linking command.If that fails, we can try
-Wl,--no-as-needed -ldl
.