Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
General
»
Failed to open X11 display on GitHub Actions pipeline
Print
Pages: [
1
]
Author
Topic: Failed to open X11 display on GitHub Actions pipeline (Read 6235 times)
0 Members and 1 Guest are viewing this topic.
Filosof
Newbie
Posts: 9
Failed to open X11 display on GitHub Actions pipeline
«
on:
November 14, 2021, 07:57:25 pm »
Trying to configure yml file for GitHub actions.
It configures and builds just fine using Conan packages. But when try to run ctest with 1 test case that using from SFML only loadFromFile function it aborts with message:
"Failed to open X11 display; make sure the DISPLAY environment variable is set correctly".
Already tried:
sudo apt install libsfml-dev mesa-utils xorg-dev ... etc.
export DISPLAY=:0.0, export DISPLAY=:1.0, export DISPLAY=:99.0 ... etc.
export LIBGL_ALWAYS_INDIRECT=0
(all things from
https://en.sfml-dev.org/forums/index.php?topic=28293.0
)
Nothing worked out.
yml file configuration:
https://github.com/PavelCherniavskyi/BattleCity2/blob/master/.github/workflows/BuildAndTest.yml
Please help.
«
Last Edit: November 14, 2021, 08:03:59 pm by Filosof
»
Logged
eXpl0it3r
SFML Team
Hero Member
Posts: 11030
Re: Failed to open X11 display on GitHub Actions pipeline
«
Reply #1 on:
November 14, 2021, 11:14:24 pm »
You need an xserver to run SFML application under Linux.
But since GitHub Actions is head-less, this doesn't really work.
But you should be able to potentially use xvfb, see also
https://stackoverflow.com/questions/63125480/running-a-gui-application-on-a-ci-service-without-x11
Logged
Official FAQ:
https://www.sfml-dev.org/faq.php
Official Discord Server:
https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog:
https://duerrenberger.dev/blog/
Print
Pages: [
1
]
SFML community forums
»
Help
»
General
»
Failed to open X11 display on GitHub Actions pipeline