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

dyld: Library not loaded: @rpath/libui.A.dylib #1

Open
ivanceras opened this issue May 27, 2016 · 2 comments
Open

dyld: Library not loaded: @rpath/libui.A.dylib #1

ivanceras opened this issue May 27, 2016 · 2 comments

Comments

@ivanceras
Copy link

ivanceras commented May 27, 2016

I tried running the example on mac os, but I encounter this problem.
Just building the project don't have a problem though.

cargo run --example controlgallery
    Updating registry `https://github.com/rust-lang/crates.io-index`
 Downloading bitflags v0.7.0
 Downloading libc v0.2.11
 Downloading make-cmd v0.1.0
   Compiling make-cmd v0.1.0
   Compiling libc v0.2.11
   Compiling bitflags v0.7.0
   Compiling ui-sys v0.1.0 (<home>libui-rs/ui-sys)
   Compiling ui v0.1.0 (<home>/libui-rs/ui)
     Running `target/debug/examples/controlgallery`
dyld: Library not loaded: @rpath/libui.A.dylib
  Referenced from: <home>libui-rs/ui/target/debug/examples/controlgallery
  Reason: image not found
error: An unknown error occurred

Using OS X El Capitan version 10.11.4

@ivanceras
Copy link
Author

ivanceras commented May 27, 2016

Tried compiling https://github.com/andlabs/libui separately via make then loading the dylib via

LD_LIBRARY_PATH=<home>/libui/out cargo run --example controlgallery
     Running `target/debug/examples/controlgallery`
error: An unknown error occurred

Opens up a crash report.

Update:

Try2

Tried compiling <home>/libui-rs/ui-sys/libui

cd libui-rs/ui-sys/libui
make

then

LD_LIBRARY_PATH=<home>/libui-rs/ui-sys/libui/out cargo run --example controlgallery

This works.

ivanceras added a commit to ivanceras/libui-rs that referenced this issue May 28, 2016
@stacktracer
Copy link

Might be the same problem I had, or at least related: rust-lang/cargo#2765

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants