Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using CLion+Rust debugger cannot find "libui.so.0" #72

Open
mitchhentges opened this issue May 25, 2019 · 3 comments
Open

Using CLion+Rust debugger cannot find "libui.so.0" #72

mitchhentges opened this issue May 25, 2019 · 3 comments
Labels
c-question Further information is requested k-buildprocess Issues with building the crate

Comments

@mitchhentges
Copy link
Contributor

I've set up CLion with the 🎉 IntelliJ rust plugin 🎉, but I'm having issues running the debugger:

error while loading shared libraries: libui.so.0: cannot open shared object file: No such file or directory

I located libui.so.0:

$ find . -name 'libui.so.0'          
./target/debug/build/ui-sys-f439c2f1b0cb0138/out/build/out/libui.so.0

So, I tried setting LD_LIBRARY_PATH before running CLion:

$ LD_LIBRARY_PATH=/home/mitch/dev/pult/target/debug/build/ui-sys-f439c2f1b0cb0138/out/build/out snap run clion

However, I'm still getting "error while loading shared libraries" 🤔

I'm not super familiar with how shared libraries work, so I highly doubt that this issue is specific to libui-rs - there's just a chance that a libui-rs-er has run into this issue, too 😄 🤷‍♂️

@LuciferK9
Copy link

There's an option to set environment variables in the "run configurations". You can try setting the environment variable there.

@mitchhentges
Copy link
Contributor Author

Good idea, though that has the same result as exporting the variable before running clion: it can't find the shared library

@NoraCodes NoraCodes added c-question Further information is requested k-buildprocess Issues with building the crate labels Apr 23, 2020
@frederickjjoubert
Copy link

frederickjjoubert commented Aug 25, 2022

I'm working on a rust project using CLion and the Rust plugin, my project uses the Bevy game engine and I'm getting the same type of error:

error while loading shared libraries: libbevy_dylib-3888e9814c2a97bf.so: cannot open shared object file: No such file or directory

Were you able to find a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c-question Further information is requested k-buildprocess Issues with building the crate
Projects
None yet
Development

No branches or pull requests

4 participants