revery-ui / revery

:zap: Native, high-performance, cross-platform desktop apps - built with Reason!
https://www.outrunlabs.com/revery/
MIT License
8.06k stars 196 forks source link

"Unable to create skia context" - esy run #993

Closed SamuelTrew closed 3 years ago

SamuelTrew commented 4 years ago
Lap1n commented 3 years ago

I get the exact same error with revery-quick-start on Ubuntu 20.04.

bryphe commented 3 years ago

Usually, this is due to not having the X11 headers / libraries installed prior to building esy-sdl2 - the CheckX11 check in the ./configure script fails: https://github.com/revery-ui/esy-sdl2/blob/1cd3d4ffd9220b02fe6c27a08c8e4e2283dfee20/configure.ac#L1602 - and so there is no video device baked into the build of SDL.

You can fix it by the following:

Unfortunately most of the dependencies will have to rebuild, because this necessitates rebuilding SDL2 to get the proper headers / enable X11 video, which is a pretty core dependency.

Lap1n commented 3 years ago

Installing xorg-dev, clearing the esy cache and rebuilding the project worked for me!

SamuelTrew commented 3 years ago

That worked perfectly, thank you!