Replies: 1 comment
-
Is this still an issue? dbus is not supposed to be compiled for android afaik so this sounds like some dekstop-only crates are incorrectly enabled for mobile targets. Did you check whether a plain create-tauri-app project throws the same errors? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm new using Rust and Tauri and I'm building a desktop app to control a few things on my computer remotely (only LAN for now). Now I need to test it on android but I can't make the package (libdbus-sys) to compile on my system, so if anyone had this problem before or knows how to fix it, please share your wisdom 😄
Environment variables defined:
/home/lcss/Android/sdk/ndk/27.0.12077973/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android35-clang --version
:After setting the env
PKG_CONFIG_PATH
to/usr/lib/pkgconfig
, wheredbus-1.pc
file and others are the error changed:I copied that to
Cargo.toml
file and now the new error is:I tried different ndk versions and setting the
linker
andrustflags
in the src-tauri/.cargo/config.toml file (which is automatically created when runningandroid dev
orandroid build
commands for the first time)but it keeps being ignored as it use
aarch64-linux-android24-clang
and not theaarch64-linux-android35-clang
:And if I try to run the command
cargo build --package pc-remote-control --manifest-path ./Cargo.toml --target aarch64-linux-android --lib
it fails too:
The same happens after setting the envs:
and
ln -s /home/lcss/Android/sdk/ndk/27.0.12077973/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android35-clang /home/lcss/Android/sdk/ndk/27.0.12077973/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-clang
It seems nothing really matters at this point.
Beta Was this translation helpful? Give feedback.
All reactions