Author Topic: Failed to open X11 display  (Read 2908 times)

phillpark

  • Newbie
  • *
  • Posts: 3
    • View Profile
Failed to open X11 display
« on: August 11, 2018, 09:40:45 AM »
Hi, guys

I'm using Retropie on Raspbian Stretch without the DE, for a personal project. It's working fine with EmulationStation, etc, but I want it running attractmode so I installed it with no errors along the process.
The only problem is that when i run "attract" it gives me the following error:

Failed to open X11 display: make sure the DISPLAY environment variable is set correctly

I've googled for days, but I can't the problem. Can someone help me?

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1271
    • View Profile
Re: Failed to open X11 display
« Reply #1 on: August 11, 2018, 05:58:31 PM »
Hi, guys

I'm using Retropie on Raspbian Stretch without the DE, for a personal project. It's working fine with EmulationStation, etc, but I want it running attractmode so I installed it with no errors along the process.
The only problem is that when i run "attract" it gives me the following error:

Failed to open X11 display: make sure the DISPLAY environment variable is set correctly

I've googled for days, but I can't the problem. Can someone help me?

Compiling AM with regular SFML won't run AM without X11 on a Pi. To run AM without X11 you must compile "sfml-pi" before compiling AM. If you want to run AM with X11 you must install X11.

Check out the Pi FAQ http://forum.attractmode.org/index.php?topic=1249.0 or the Wiki https://github.com/mickelson/attract/wiki/Compiling-on-the-Raspberry-Pi-(Raspbian-Jessie) for install steps.
« Last Edit: August 11, 2018, 06:03:51 PM by progets »