You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the library isn't packaged for the distro I'm using and I don't like manually installing stuff to system directories, I figured out how to build and run a Rust project against a copy of the library installed to an arbitrary directory.
First, we build GTK4 Layer Shell and install it into a subdirectory
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Since the library isn't packaged for the distro I'm using and I don't like manually installing stuff to system directories, I figured out how to build and run a Rust project against a copy of the library installed to an arbitrary directory.
First, we build GTK4 Layer Shell and install it into a subdirectory
meson setup build --prefix "$PWD/install" ninja -C build install
And next in our Rust project we create
.cargo/config.toml
and put in it (set the paths to be correct):We need to use
LD_PRELOAD
instead ofLD_LIBRARY_PATH
because rust clobbers the latter.Beta Was this translation helpful? Give feedback.
All reactions