-
Notifications
You must be signed in to change notification settings - Fork 21
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
OSX: Library load failed: libatk-1.0.dylib #32
Comments
|
Are you trying to install it with gtk support? On travis it needs the following libraries to build/install: |
|
will try your suggestion. Regardless, see also relevant discussion in http://forum.dlang.org/thread/mailman.519.1480285208.9448.digitalmars-d-learn@puremagic.com |
This didn't help: to reproduce: (pasting from a part of http://forum.dlang.org/thread/mailman.519.1480285208.9448.digitalmars-d-learn@puremagic.com) main.d: dub.json: "dependencies": { "subConfigurations": { |
|
NOTE: i do have /Users/timothee/homebrew//lib/libatk-1.0.dylib but dlopen isn't able to find it based on just libatk-1.0.dylib alone and, as explained above, setting DYLD_LIBRARY_PATH causes other issues. The following worked in my case: the code should be improved to autodetect the path to that library, or at least provide an environment variable for that (but not DYLD_LIBRARY_PATH) |
|
Also note: if |
I don't have a mac so not really sure if it is required. That's just how I got it to work. I hesitate to add things to the readme that I can't fully test myself. If you can confirm that all three are needed for the gtk build then I can add a section (PR is always welcome as well :) ) |
|
By the way if you don't need gtk support it will work fine without it. |
|
As for GtkD would there be anyway to detect the homebrew path?
I don't have any experience with OSX and homebrew, but it would be great to get this working. |
There seems to be a $HOMEBREW_ROOT variable. |
|
IIRC $HOMEBREW_ROOT is not exported by installing homebrew; note, a user
can have multiple homebrew roots; the simplest solution is to either
require a user to set an environment variable specifying the root location
(of his choice), or, assume he put homebrew/bin in his PATH and just call
`brew config|grep HOMEBREW_PREFIX`
…On Tue, Nov 29, 2016 at 1:59 PM, Edwin van Leeuwen ***@***.*** > wrote:
Does homebrew provide environment variables?
There seems to be a $HOMEBREW_ROOT variable.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACF9YKa4qnnr0O8VuQCtKf10kti90MpIks5rDKArgaJpZM4K9QZs>
.
|
|
also, |
|
@MikeWey would you be ok with calling brew --prefix for gtkd? Or maybe accept a custom environmental variable and update the gtkd readme? |
|
We could do both For the environment variable, we could use the |
|
closed since gtkd-developers/GtkD#164 is closed now |
object.Exception@../../../../.dub/packages/gtk-d-3.3.1/gtk-d/src/gtkc/Loader.d(123): Library load failed: libatk-1.0.dylib
README.md only shows
sudo apt-get install libcairo2-devas a dependency; what about osx? i did do brew install cairo FWIW but should i also havebrew install atk?EDIT: after that i still get:
Also tried:
The text was updated successfully, but these errors were encountered: