The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Latest SDL2 fails to init (No available displays)
Johan


Joined: 12 Apr 2012
Posts: 5
The following piece of code fails with "No available displays" when running with SDL 2.0.4 from Hg.

Code:

    if ((SDL_Init(SDL_INIT_VIDEO|SDL_INIT_EVENTS)==-1)) {
      printf("Could not init SDL: %s\n",SDL_GetError());
      return 0;
    }


It works with 2.0.2, so something has happened that makes my compuer not like it.

Here is my graphics hw, I use the nvidia graphics.

00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
02:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 860M] (rev a2)
Johan


Joined: 12 Apr 2012
Posts: 5
Forgot to mention that I'm running on xubuntu 15.10 and a single monitor.