3

I am trying to run an SDL application with very basic code on Cygwin, but I have the following error after calling SDL_Init:

No available video device

I have X11 packages installed, but that isn't solving the issue

Mansuro
  • 4,558
  • 4
  • 36
  • 76
  • 2
    Just install Xming and run it. You need an X server which Windows does not provide while on Unix entire UI is done on X server. You will not even need to set DISPLAY if you have just one instance of X server is running which is typically localhost:0.0. Note that it is possible to run several X servers and you can spawn separate copies of your application on those individually. – Shiv Aug 19 '15 at 02:13

1 Answers1

3

You need to start the X server and set the DISPLAY variable appropriately before running an X program.

Yaakov
  • 1,705
  • 10
  • 10
  • I've done that and `export DISPLAY=localhost:0.0` but no results, btw, when I start X server, a window which is all black is displayed – Mansuro Aug 19 '15 at 07:16