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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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 installAnd next in our Rust project we create
.cargo/config.tomland put in it (set the paths to be correct):We need to use
LD_PRELOADinstead ofLD_LIBRARY_PATHbecause rust clobbers the latter.Beta Was this translation helpful? Give feedback.
All reactions