Android build failing due to ld.lld being unable to find libraries to link with #9828
-
Hi, I'm on Fedora 39 and I'm trying to build for Android with
How should I be going about fixing this? My |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Thanks to @simonhyll's help on Discord, this has been resolved. The issue was I neglected to omit an import from non-Linux (desktop) targets. As I had to get media sharing working in my app in Fedora 39, I followed what was laid out here: #8426 (reply in thread) However, the offending line in my codebase was: use webkit2gtk::{SettingsExt, WebViewExt}; which should've been: #[cfg(target_os = "linux")]
use webkit2gtk::{SettingsExt, WebViewExt}; This caused the build to attempt to link with the desktop libraries, which caused it to fail. |
Beta Was this translation helpful? Give feedback.
Thanks to @simonhyll's help on Discord, this has been resolved. The issue was I neglected to omit an import from non-Linux (desktop) targets. As I had to get media sharing working in my app in Fedora 39, I followed what was laid out here: #8426 (reply in thread)
However, the offending line in my codebase was:
which should've been:
This caused the build to attempt to link with the desktop libraries, which caused it to fail.