Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SDL window isn't showing on Cygwin

Tags:

c++

cygwin

sdl-2

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

like image 747
Mansuro Avatar asked Nov 27 '25 20:11

Mansuro


1 Answers

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

like image 102
Yaakov Avatar answered Nov 29 '25 08:11

Yaakov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!