使用 atri_qq-armv7-unknown-linux-musleabihf 无法加载插件,可能是 musl 不支持加载动态库(也可能是不可以跨架构加载?)。
2022-09-28 15:25:23 INFO 正在加载插件: libatri_plugin_hi.so
2022-09-28 15:25:23 ERROR 插件(libatri_plugin_hi.so)加载失败: PluginLoadError("无法加载插件动态库: Dynamic loading not supported")
/root/projects/atri_plugin_hi〉cargo build --release --verbose --verbose --jobs 4 --target armv7-unknown-linux-musleabihf
error: cannot produce cdylib for `atri_plugin_hi v0.1.0 (/root/projects/atri_plugin_hi)` as the target `armv7-unknown-linux-musleabihf` does not support these crate types
/root/atri〉file atri_bot
atri_bot: ELF 32-bit LSB pie executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, BuildID[sha1]=95597a151fa619c31b605c6c56d68648689c8868, for GNU/Linux 3.2.0, stripped
/root/atri〉file atri_qq-armv7-unknown-linux-musleabihf
atri_qq-armv7-unknown-linux-musleabihf: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, stripped
/root/atri〉file plugins/libatri_plugin_hi.so
plugins/libatri_plugin_hi.so: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, BuildID[sha1]=a0cdee72846e103fba32964cb66ae34a87ba104f, with debug_info, not stripped