-
Notifications
You must be signed in to change notification settings - Fork 5
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
Gloss crashes on mac #3
Comments
Hopefully fixes gloss errors on macOS. See turion/essence-of-live-coding-tutorial#3
Could you try the following:
This should result in the same error. Now to hopefully fix it, leave the REPL again and do this:
This should give a window with 2 balls, and if you click in it, they'll start dancing. Does that work? Background: https://stackoverflow.com/questions/45197922/glut-fatal-error-when-using-haskell-graphics-gloss |
We tried additionally to replace further occurrences of |
@pixln Can you try |
I tried it, unfortunately, it still leads to the same error message.
|
Hmmm, strange. It seems like the flag didn't have any effect, since you still have "GLUT Fatal Error". But with this flag, GLUT shouldn't even run. I probably got the way these flags work wrong. Can you execute |
I got the command wrong again I think. |
Adding the constraint @pixln Can you try |
Also, the flags might have to be upper case, A further option to try is executing |
Never knew this syntax. Looks like advanced Cabal usage. |
I guess "GLWF" should be "GLFW"? |
Still doesn't work for me:
|
@jegi Sorry this didn't work out for you :/ lesson definitely learned - OpenGL dev environments are hard to set up cross-platform. |
No problem. Thanks for the tutorial anyway! I'd like to be able to use something like this for teaching, but the infrastructure doesn't seem to be ready for primetime yet. |
@jegi Gloss is indeed hard to set up reliably. But essence-of-live-coding itself is completely portable. It's just the backends that work better or worse in different platforms. Is it 2d interactive graphics that you want to teach, or live coding itself? For the latter I think that it works well cross-platform. |
@jegi For what it's worth, someone else did indeed get the tutorial running on a mac: https://groups.google.com/g/haskell-gloss/c/qHkFOAA2VCY/m/NANJrbsbCAAJ If it's specifically Gloss you're interested in, probably we should ask on the Gloss mailing list. |
It was mainly 2D interactive graphics. Livecoding would be a nice touch. But I'd like the materials to be reliably usable by the students on whatever platform they have at home. |
I see. Well, I believe Gloss's mission was to provide just that. |
Has anyone had success with this on mac more recently? The live coding runs great out of the box, and gloss works with
(Presumably related to the fact that you can't run gloss in ghci?) |
Ah, this is known? Sorry, so far there is no alternative to GHCi in essence-of-live-coding. |
Apparently on a mac, starting gloss/GLUT crashes:
Found by @pixln
The text was updated successfully, but these errors were encountered: