Skip to content

Android build failing due to ld.lld being unable to find libraries to link with #9828

Closed Answered by ajaypillay
ajaypillay asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ajaypillay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant