Note that there are some explanatory texts on larger screens.

plurals
  1. POGLFW window fails to open (Ubuntu)
    primarykey
    data
    text
    <p>When compiling and running my GLFW-based C program under Ubuntu (9.04), it fails when trying to open the window (it compiles fine, having installed the latest GLFW). I've tried varying resolutions, going as low as 300x300, and left the bit depths to zeros, hoping a default will catch on.</p> <p>The relevant piece of code reads (directly snipped from the top of my main file, based on the example file <code>gears.c</code>):</p> <pre><code>// File: main.c #include &lt;math.h&gt; #include &lt;stdlib.h&gt; #include &lt;stdio.h&gt; #include &lt;GL/glfw.h&gt; #ifndef PI #define PI 3.141592654 #endif int main(int argc, char* argv[]) { // Initialize GLFW: glfwInit(); if (!glfwOpenWindow(300, 300, 0, 0, 0, 0, 0, 0, GLFW_WINDOW)) // Yo failure! { printf("Window open failed.\n"); glfwTerminate(); return 0; } glfwSetWindowTitle("..."); ... // Clean up: glfwTerminate(); return 0; } </code></pre> <p>Other noteworthy facts are:</p> <ul> <li>Running Ubuntu inside VirtualBox 3.0.2, config'd w/ 512 MB RAM, 3D acceleration enabled, 64 MB VRAM, Guest Additions successfully installed</li> <li><code>glxgears</code> works fine, even > 300 FPS</li> <li>built GLFW using <code>make-x11</code></li> <li><p>makefile command line:</p> <p><code>gcc `pkg-config --cflags libglfw` main.c -o program `pkg-config --libs libglfw` -lglfw -lGLU -lGL -lm</code></p></li> <li><p>Mark's tip on <a href="https://stackoverflow.com/questions/746000/c-glfw-window-doesnt-open-on-debian">C - GLFW window doesn&#39;t open on Debian</a> does not seem to alleviate the situation</p></li> </ul> <p>Edit:</p> <p>Are there any way to extract a more fancy error message? Any <code>getLastErrorDesc()</code> or debug log files?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload