Skip to content

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

@mitchhentges

Description

@mitchhentges

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 😄 🤷‍♂️

Metadata

Metadata

Assignees

No one assigned

    Labels

    c-questionFurther information is requestedk-buildprocessIssues with building the crate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions