{"action":"created","issue":{"url":"https://api.github.com/repos/fpco/minghc/issues/90","labels_url":"https://api.github.com/repos/fpco/minghc/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/fpco/minghc/issues/90/comments","events_url":"https://api.github.com/repos/fpco/minghc/issues/90/events","html_url":"https://github.com/fpco/minghc/issues/90","id":106986509,"number":90,"title":"Include glut32 library","user":{"login":"mwu-tow","id":1548407,"avatar_url":"https://avatars.githubusercontent.com/u/1548407?v=3","gravatar_id":"","url":"https://api.github.com/users/mwu-tow","html_url":"https://github.com/mwu-tow","followers_url":"https://api.github.com/users/mwu-tow/followers","following_url":"https://api.github.com/users/mwu-tow/following{/other_user}","gists_url":"https://api.github.com/users/mwu-tow/gists{/gist_id}","starred_url":"https://api.github.com/users/mwu-tow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwu-tow/subscriptions","organizations_url":"https://api.github.com/users/mwu-tow/orgs","repos_url":"https://api.github.com/users/mwu-tow/repos","events_url":"https://api.github.com/users/mwu-tow/events{/privacy}","received_events_url":"https://api.github.com/users/mwu-tow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-17T13:36:24Z","updated_at":"2015-09-21T02:48:30Z","closed_at":null,"body":"I'd like to ask you to consider including glut32 C library to MinGHC distribution.\r\n\r\nI saw a similar request that was rejected (#37) stating that you are rather not going include libraries, so I'll understand if you decline that. Still, I believe that is case is somewhat special and deserves some attention.\r\n\r\nThe glut32 library is needed for a quite a few Haskell packages, like `gloss` and sometimes is used tutorials that aim to show how easy it is to draw something on screen with Haskell. \r\n\r\nThe problem is that it is non-trivial to obtain this library on Windows. The user receives an error about missing `glut32` C library. When I searched for it, I ended on webpage that apparently was not updated for the last 15 years and doesn't contain x64 binaries.\r\n\r\nThe solution is to download `freeglut` library binaries, then to rename its .a files from `libfreeglut` to `libglut32` and put in the proper place. It is non-obvious for many users that a `freeglut` is binary compatible with `glut32` and that it can be used in its place if renamed.\r\n\r\nI guess that for similar reasons Haskell Platform decided to include this library (AFAIK it is the only C library they distribute). I believe that having it distributed with MinGHC would be helpful to many users, as obtaining this library on Windows is kind of problematic. Certainly it will be convenient for me.\r\n\r\nStill, it is your call whether it fits the policy of the project."},"comment":{"url":"https://api.github.com/repos/fpco/minghc/issues/comments/141862961","html_url":"https://github.com/fpco/minghc/issues/90#issuecomment-141862961","issue_url":"https://api.github.com/repos/fpco/minghc/issues/90","id":141862961,"user":{"login":"snoyberg","id":49415,"avatar_url":"https://avatars.githubusercontent.com/u/49415?v=3","gravatar_id":"","url":"https://api.github.com/users/snoyberg","html_url":"https://github.com/snoyberg","followers_url":"https://api.github.com/users/snoyberg/followers","following_url":"https://api.github.com/users/snoyberg/following{/other_user}","gists_url":"https://api.github.com/users/snoyberg/gists{/gist_id}","starred_url":"https://api.github.com/users/snoyberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snoyberg/subscriptions","organizations_url":"https://api.github.com/users/snoyberg/orgs","repos_url":"https://api.github.com/users/snoyberg/repos","events_url":"https://api.github.com/users/snoyberg/events{/privacy}","received_events_url":"https://api.github.com/users/snoyberg/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T02:48:30Z","updated_at":"2015-09-21T02:48:30Z","body":"My hope is that by moving to MSYS2/pacman, installing C libraries can\nbecome much easier on Windows. I actually tweeted about one such experience\nrecently: https://twitter.com/snoyberg/status/638359459304239104\n\nOn Mon, Sep 21, 2015 at 5:45 AM, Elliot Cameron <notifications@github.com>\nwrote:\n\n> It seems to me that it should be theoretically possible for the Cabal\n> library to represent complex installs like this. I'm not sure if it can do\n> so currently, but I have wanted to build cross-platform libraries that\n> \"just work\" by having them embed complex dependencies, like pre-built C\n> libraries.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/fpco/minghc/issues/90#issuecomment-141862797>.\n>\n"}}