glfwOpenWindow fail on osx yosemite <p>I am trying to build and run the following project on OS X Yosemite to play with ray marching &amp; shaders:</p> <p><a href="https://github.com/lightbits/ray-march/blob/master/raymarch-dev.md" rel="nofollow">https://github.com/lightbits/ray-march/blob/master/raymarch-dev.md</a></p> <p>I am not too familiar with compilation on OS X nor openGL.</p> <p><strong>The error:</strong></p> <p>I got the project to compile but « glfwOpenWindow » fail on,</p> <pre><code>glfwOpenWindow( width, height, 8, 8, 8, 0, 24, 8, false ) </code></pre> <p>I don’t get any error message and don’t know why it failed. I think the problem comes from what I did to build the codebase.</p> <p><strong>What I did:</strong></p> <p>The external includes are:</p> <pre><code>#include &lt;glload/gl_3_1_comp.h&gt; // OpenGL version 3.1, compatability profile #include &lt;glload/gll.hpp&gt; // The C-style loading interface #include &lt;GL/glfw.h&gt; // Context #include &lt;glm/glm.hpp&gt; // OpenGL mathematics #include &lt;glm/gtc/type_ptr.hpp&gt; // for value_ptr(matrix) #include &lt;string&gt; </code></pre> <ul> <li>I installed homebrew</li> <li>I installed cmake </li> <li>I built GLFW-legacy </li> <li>I installed glm. </li> <li><p>I replaced, in "opengl.h",</p> <p><code>#include &lt;glload/gl_3_1_comp.h&gt; // OpenGL version 3.1, compatability profile #include &lt;glload/gll.hpp&gt; // The C-style loading interface</code></p></li> </ul> <p>with,</p> <pre><code>`#include &lt;OpenGL/gl3.h&gt;` </code></pre> <ul> <li><p>I removed, in "opengl.cpp".</p> <p><code>if(glload::LoadFunctions() == glload::LS_LOAD_FAILED) return false;</code></p></li> <li><p>my current compiling command is:</p> <p><code>g++ main.cpp fileio.cpp opengl.cpp -I /usr/local/include/GL/ -L /usr/local/lib/ -framework OpenGL -lGLFW</code></p></li> </ul>