-
Notifications
You must be signed in to change notification settings - Fork 873
Make it easy to create Rust binaries with rpath set to Qt #566
Copy link
Copy link
Open
Labels
a:backend-qtThe Qt backend - including the qt style (mO,bS)The Qt backend - including the qt style (mO,bS)a:platform-linuxissue specific to Linux, X11 or wayland (mO,bT)issue specific to Linux, X11 or wayland (mO,bT)a:platform-macosIssues specific to macOS (mS,bF)Issues specific to macOS (mS,bF)packagingPackaging and ease of downloading/obtaining SlintPackaging and ease of downloading/obtaining Slintpriority:lowLowest priority. The issue is kept open for tracking purpose, but noone is actively working on thisLowest priority. The issue is kept open for tracking purpose, but noone is actively working on this
Metadata
Metadata
Assignees
Labels
a:backend-qtThe Qt backend - including the qt style (mO,bS)The Qt backend - including the qt style (mO,bS)a:platform-linuxissue specific to Linux, X11 or wayland (mO,bT)issue specific to Linux, X11 or wayland (mO,bT)a:platform-macosIssues specific to macOS (mS,bF)Issues specific to macOS (mS,bF)packagingPackaging and ease of downloading/obtaining SlintPackaging and ease of downloading/obtaining Slintpriority:lowLowest priority. The issue is kept open for tracking purpose, but noone is actively working on thisLowest priority. The issue is kept open for tracking purpose, but noone is actively working on this
This originated from #565
Originally posted by jamesblacklock October 12, 2021
I'm getting the following error when I do a
cargo run(seems to be just therun;buildworks fine):Has anyone seen this error or have any familiarity with getting the sixtyfps qt backend working on macos?
When creating a rust binary with cargo and sixtyfps found Qt available for use, we may want to code the
rpathto the Qt library/frameworks on Linux and macOS.The path is initially determined in qttypes's
build.rsand printed viaUnfortunately this has two problems:
rustc-cdylib-link-argtransitive warning rust-lang/cargo#9562However that cargo issue also suggests a solution that we could implement, which is two fold:
rustc-link-argto show up in a stable release of rust/cargo.build.rsthat will emit the correctrustc-link-arg=-Wl,rpath,...text to stdout. This could be done automatically bysixtyfps_build::compile()but perhaps there's also a way to offering either a function forbuild.rsfor apps using the macro or the macro could somehow emit#[link_arg(...)].