cygwin run sdl2 create window faild

here is my code. I run the sdl app in cygwin on win10.
m->window = SDL_CreateWindow(“TFT Simulator”,
SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED,
SDL_HOR_RES * SDL_ZOOM, SDL_VER_RES * SDL_ZOOM, flag); /last param. SDL_WINDOW_BORDERLESS to hide borders/
printf(" m->window=%p\n", m->window);
if (m->window == NULL) {
// In the case that the window could not be made…
printf(“Could not create window: %s\n”, SDL_GetError());
return;
}
output is :
Could not create window: No available video device