-
Notifications
You must be signed in to change notification settings - Fork 86
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
Failed at a barebone example. #41
Comments
The test projects are attached. Unzip, do not change their relative location, and build them both. |
I tried something new. After I see the
Then, run the executable as usual
This gives me exactly what was in #40:
|
After some digging, I solved my problem by doing the whole dance manually through the last op:
in my case should be corrected to:
which means on my machine, the dylibs are first searched under some system paths such as /usr/local/lib, instead of the working directory. The output of
So the executable does assume that my lib to be under /usr/local/lib |
dylibbundler is a simple tools that works for most basic cases, but it was not meant to handle all the weird special cases. I actually no longer use a mac very often, so this project is a bit in search of a new maintainer. One possibility is that your "libmylib" has an incorrect (or at least unusual) "internal name", dylibbundler will have trouble handling those |
I have a similar problem when I try to work with a dylib file. My observation was that when I link as
And then
This path is identical to the option Do you think it's fine to ignore the first entry in case the file is a dylib? |
I found myself an answer, it's For correctness, you have to get dylib ID ( |
Coming from this issue:
#40
I've built a sanity-check example, which fails to find the dylib upon running:
mylib
that builds a barebone .dylib, which prints a string.hello_dylib
that simply uses this dylib.After successfully building both projects, I then run
After this I simply run in Terminal:
I got:
I wonder where I did wrong.
The text was updated successfully, but these errors were encountered: