-
Notifications
You must be signed in to change notification settings - Fork 42
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
darwin failure #50
Comments
We can now use the native Tk on OS X, but apparently, the following environment variable is required, despite the search path having it: Try |
A little better:
And then julia crashes. |
@vtjnash This never used to be a problem before. How come it is looking for libcairo instead of something like libcairo-2? I wonder if this is related to your recent changes. |
@staticfloat Any ideas what we can do about making sure that the system Tk is used if other Tk installations are present? Perhaps we should put the environment setting in Tk.jl? Using the system provided Tk will greatly simplify things, although it seems to have caused some short term trouble. |
@ViralBShah There are several typos in Cairo.jl where it uses |
Strange how this never got caught before. |
Those uses were hidden by the deprecation warnings. We use the first version of Tk that is found on the system, preferring Tk 8.6 to 8.5. Can I point out JuliaLang/julia#2716 before you add environment variables to Tk.jl? |
Ok, plots work after fixing the But i'm little unclear on the need for TK_LIBRARY. There aren't multiple Tk installations on my mac, just the system Tk. |
I'm with you on that. Except that I also have MacPorts Tk in my LD_LIBRARY_PATH (for picking up Cairo), and it works fine without that variable. I knew about this variable because it was also failing on windows for the same reason. Perhaps we can come up with some way to automatically set tk_library, documented at http://www.tcl.tk/man/tcl8.6/TkCmd/tkvars.htm#M4, based upon a better guess at the libtk search path? (perhaps based on http://stackoverflow.com/questions/6676525/how-to-get-the-absolute-library-file-name-corresponding-to-a-relative-path-given) |
(the equivalent function on windows appears to be http://msdn.microsoft.com/en-us/library/windows/desktop/ms683198(v=vs.85).aspx) |
Can the new library verification hook in BinDeps help out with this? @loladiro |
Was the only issue the |
It still doesn't work without the environment variable. For the binaries, I have added the environment setting to the startup |
If you look at the source code for Tk, it is supposed to read this path out of the resource fork. But that seems to be failing. I don't understand why it doesn't work. |
Deleted
~/.julia
, chose "source" build option.The text was updated successfully, but these errors were encountered: