{"action":"created","issue":{"url":"https://api.github.com/repos/npomf/opengl-ruby/issues/4","repository_url":"https://api.github.com/repos/npomf/opengl-ruby","labels_url":"https://api.github.com/repos/npomf/opengl-ruby/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/npomf/opengl-ruby/issues/4/comments","events_url":"https://api.github.com/repos/npomf/opengl-ruby/issues/4/events","html_url":"https://github.com/npomf/opengl-ruby/issues/4","id":159831121,"number":4,"title":"Unable to acquire GLFW window context!","user":{"login":"requnix","id":292062,"avatar_url":"https://avatars.githubusercontent.com/u/292062?v=3","gravatar_id":"","url":"https://api.github.com/users/requnix","html_url":"https://github.com/requnix","followers_url":"https://api.github.com/users/requnix/followers","following_url":"https://api.github.com/users/requnix/following{/other_user}","gists_url":"https://api.github.com/users/requnix/gists{/gist_id}","starred_url":"https://api.github.com/users/requnix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/requnix/subscriptions","organizations_url":"https://api.github.com/users/requnix/orgs","repos_url":"https://api.github.com/users/requnix/repos","events_url":"https://api.github.com/users/requnix/events{/privacy}","received_events_url":"https://api.github.com/users/requnix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-06-12T14:54:05Z","updated_at":"2016-06-12T19:20:14Z","closed_at":null,"body":"Firstly, I apologize for the exclamation point in the issue title. It's part of the error message. I don't want to come across as being upset.\r\n\r\nSo the error output I'm getting is the following:\r\n\r\n```\r\nInitializing ...\r\n/Library/Ruby/Gems/2.0.0/gems/opengl-glfw-0.4.6/lib/glfw/window.rb:43:in `initialize': unknown error - Unable to acquire GLFW window context! (SystemCallError)\r\n\tfrom /Users/requnix/Code/github/npomf/bonsai/lib/app.rb:60:in `initialize'\r\n\tfrom res/init.rb:21:in `new'\r\n\tfrom res/init.rb:21:in `<top (required)>'\r\n\tfrom engine.rb:13:in `load'\r\n\tfrom engine.rb:13:in `<main>'\r\n```\r\n\r\nI'm just trying to see if I can get an instance of Bonsai running. I am on a Mac running OS X  10.11.5. The steps I've taken to get this far:\r\n\r\n- I cloned the following repos of yours:\r\n  - `bonsai`\r\n  - `oggopusfile-ruby`\r\n  - `openal-ruby`\r\n  - `opengl-ruby`\r\n  - `promises`\r\n\r\nI then installed all the optional gems into my system Ruby (MRI 2.0.0). I also installed what I could through `Homebrew`, basically `openal-soft`, `opus`, `opusfile` and `glfw3`.\r\n\r\nThen I built and installed each of your gems from their **master** branches, with the exception of `opengl-glfw` which I had to modify to point to the `glfw3.dylib` in `/usr/local/opt/` instead of `/System/Library/Frameworks/` because I couldn't copy or symlink it there (due to it being a system folder, I think).\r\n\r\nAt first I got an error about it not finding **GLFW** until I made that change. Now this is the current error and I don't really have enough context to figure out what's causing it, so I thought you might be able to point me to the problem.\r\n\r\nIn case it matters, the version of GLFW I have installed is 3.1.2. I see 3.2 is available, so if it's needed I'll try manually building it."},"comment":{"url":"https://api.github.com/repos/npomf/opengl-ruby/issues/comments/225455133","html_url":"https://github.com/npomf/opengl-ruby/issues/4#issuecomment-225455133","issue_url":"https://api.github.com/repos/npomf/opengl-ruby/issues/4","id":225455133,"user":{"login":"requnix","id":292062,"avatar_url":"https://avatars.githubusercontent.com/u/292062?v=3","gravatar_id":"","url":"https://api.github.com/users/requnix","html_url":"https://github.com/requnix","followers_url":"https://api.github.com/users/requnix/followers","following_url":"https://api.github.com/users/requnix/following{/other_user}","gists_url":"https://api.github.com/users/requnix/gists{/gist_id}","starred_url":"https://api.github.com/users/requnix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/requnix/subscriptions","organizations_url":"https://api.github.com/users/requnix/orgs","repos_url":"https://api.github.com/users/requnix/repos","events_url":"https://api.github.com/users/requnix/events{/privacy}","received_events_url":"https://api.github.com/users/requnix/received_events","type":"User","site_admin":false},"created_at":"2016-06-12T19:20:13Z","updated_at":"2016-06-12T19:20:13Z","body":"So after some investigation (sorry, I'm not a game developer) it seems my system supports up to OpenGL 4.1 and not much newer. Apparently, ([according to this SO answer](http://stackoverflow.com/questions/26981152/how-do-i-upgrade-my-opengl-from-2-1-to-3-3-on-mac-osx)) GLFW is meant to use the Cocoa bindings in some way to get a context. XQuartz (the X11 window manager in OS X) is limited to a 2.1 context.\r\n\r\nMy guess is there's some way to get the appropriate context either with GLFW or with an extension loader of some kind."}}
{"actor":{"display_login":"requnix"}}