title: Setting up video device for SDL on Linux in VirtualBox
body: <p>I am using Linux Mint 15 as a guest on Virtualbox, hosted with Windows 7, 64-bit machine and OS (both Windows and Linux). I've installed the Guest Additions. I have also enabled 3D Acceleration.</p>
  
  <p>I am trying to run the following:</p>
  
  <pre><code>int main(int argc, char** argv){
      if (SDL_Init(SDL_INIT_EVERYTHING) == -1){
      std::cout &lt;&lt; SDL_GetError() &lt;&lt; std::endl;
      return 1;
      }
  return 0;
  }
  </code></pre>
  
  <p>Really basic, just trying to see if this works, however I get the error:</p>
  
  <pre><code>No available video device
  </code></pre>
  
  <p>And I'm not sure what to do now or what I need to install.</p>
  
  <p><strong>Additional Details</strong></p>
  
  <p>I did compile SDL2 using CLang++ (personal preference) and as far as I know I've linked it properly; </p>
  
  <ul>
  <li>I've added the SDL2 includes directory to C++ Compiler -> Includes, and </li>
  <li>libSDL2.a (along with libdl and libptthread) into Build -> Linker</li>
  </ul>
  
  <p>EDIT:</p>
  
  <p><a href="http://pastebin.com/1nkZBgZT" rel="nofollow">my glxinfo output</a></p>
  
  <p>I actually have no idea if OpenGL works in VirtualBox either.</p>
  
  <p>I would at the very least like to get a basic window up and running.</p>