-
Notifications
You must be signed in to change notification settings - Fork 31
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
Unable to install on Mac OS 10.14.6 #16
Comments
Did you try doing
? |
It works! Thanks! |
For info, |
That said, @nojb - presumably OCaml's |
Just confirming that the
line works. Thanks! |
David Allsopp (2019/12/05 01:35 -0800):
That said, @nojb - presumably OCaml's `configure` script figured this
out before (on the "just work" principle) - is it just that we're
missing some logic in the conversion to Dune?
It might be the case that I didn't implement looking in several
directories for the graphics library, sorry about that.
|
@shindere - it's OK, the report suggests that this did work when the graphics library was in OCaml! I think |
(I think we should fix it, because the graphics library's principal use remains in teaching, where it's very annoying to have extra steps for getting it working...) |
David Allsopp (2019/12/05 02:07 -0800):
(I think we should fix it, because the graphics library's principal
use remains in teaching, where it's very annoying to have extra steps
for getting it working...)
I agree. It's just that we need to figure out who "we" is :)
|
I think the problem can be traced back to the https://github.com/ocaml/opam-repository/blob/master/packages/conf-libX11/conf-libX11.1/opam, where
I don't know how to modified it and recompile graphics locally :( |
@ZhengchaoJiang could you look if you have a file x11.pc on your system? If it's just a missing pkg-config path, I guess we can add it to conf-libX11 and also add a dune-configurator program in graphics to get the flags from pkg-config |
Please, when you include textual content, as much as possible it would
be better to include the textual content itself rather than a screen
shot. This is useful for blind persons like me and also for search
engines (there is a joke that says that the most well known blind user
of the web is Google).
|
Ok, I am a noob here anyway:) i tried to add the line below to my
then from my terminal
the X11 can be detected. |
+ add hardcoded pkg-config paths for OSX Fixes #16 Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
I setup the build to use dune-configurator, @ZhengchaoJiang could you give #17 a try? |
#17 does not seem to fix it for me. I still get the following linker error
|
I changed to your branch locally, it still not working
|
could you provide the result of the following commands?
|
and also: |
Here you go :
|
@stevenvar thanks. From the build error you reported in your previous message, it seems that the flags are not being obtained from pkg-config in |
Ok what's happening is that the second match returns a None:
prints "fallback" |
The other seemingly wrong thing is that the "match os c" in the entry point of the file returns Other |
Ok, so
? |
Sure thing. Here you go:
EDIT: accidentally ran it with ocaml 4.08.1. I corrected it but the same happens with 4.09 |
Ok I think I found the problem. For some reason running uname -s in the "os" function returns the stdout "Darwin\n" and not "Darwin" When changing the line
to
Everything seems to work. |
+ add hardcoded pkg-config paths for OSX Fixes #16 Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
ah, yes of course I forgot to trim the output 🤦♂️ I changed the code in #17 to trim the output. If you could do a final test to confirm it works as expected, I'll merge and prepare a new release. Thanks |
Yes that works! thanks |
Cool, merging :) |
+ add hardcoded pkg-config paths for OSX Fixes #16 Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
and releasing: ocaml/opam-repository#15455 |
Completely unrelated: in my mail, your emoticon get displayed as🤦 ♂ By the way, I had the same problem, and this release fixes it for me too. |
Haha, and I actually typed Glad it fixes the issue for you too Jacques! |
@garrigue - that's correct. "man facepalming" is a sequence of characters, it means your MUA isn't processing the zero-width-joiners correctly (see here). The "person facepalming" emoji is permitted to have the appearance of any gender (as you can see on that page). Skin-tone and various other glyphs are selected this way via sequences. |
Hi,
I'm unable to install the package on MacOS 10.14 (Mojave), while it did work when graphics was bundled with ocaml.
Here is the error:
I have xquartz installed.
Doing a
(as mentioned here) just changes the error to:
Any idea?
Thanks
The text was updated successfully, but these errors were encountered: