Author Topic: ODROID XU4 - gui environment installed but Failed to open X11 display error  (Read 5798 times)

Calvin

  • Newbie
  • *
  • Posts: 8
    • View Profile
I am running the setup on my pi and got the same error.
Code: [Select]
sudo apt install libgles-devfixed it for me

rwebb616

  • Jr. Member
  • **
  • Posts: 24
    • View Profile
Apparently I don't have it:

Code: [Select]
arcade@odroid:~$ sudo apt install libgles-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libgles-dev
arcade@odroid:~$

Calvin

  • Newbie
  • *
  • Posts: 8
    • View Profile
oof. Maybe to
Code: [Select]
sudo apt search libgles to find a suitable package.

BTW. I went through with the compile on a Pi4 but I get some errors when building attract that I can't find a solution for.

rwebb616

  • Jr. Member
  • **
  • Posts: 24
    • View Profile
I'm currently installing a Mate desktop version... I was reading elsewhere that some of these libraries are included with the odroid full mate desktop - I'm testing that theory.  Right now running all the udpates.  going to try to compile the SFML-Pi here soon.

I have a prebuilt image for the Pi 3b+ but I have not tried to get anything running on the Pi4.  My 3b+ image runs without X11 and uses Attract so I'm pretty sure it can be done.

Rich

rwebb616

  • Jr. Member
  • **
  • Posts: 24
    • View Profile
Ok SFML-Pi built correctly with GLES but Attract is failing with this:

Code: [Select]
collect2: error: ld returned 1 exit status
Makefile:493: recipe for target 'attract' failed
make: *** [attract] Error 1
arcade@odroid:~/attract$

We're close now though!  If I can get attract to build I think it might just work!

Rich

rwebb616

  • Jr. Member
  • **
  • Posts: 24
    • View Profile
I think these are the important bits:

Code: [Select]
//usr/local/lib/libsfml-window.so: undefined reference to `gbm_bo_get_stride'
//usr/local/lib/libsfml-window.so: undefined reference to `gbm_bo_get_handle'
//usr/local/lib/libsfml-window.so: undefined reference to `gbm_bo_set_user_data'
//usr/local/lib/libsfml-window.so: undefined reference to `gbm_bo_get_height'
//usr/local/lib/libsfml-window.so: undefined reference to `gbm_device_destroy'
//usr/local/lib/libsfml-window.so: undefined reference to `gbm_surface_release_buffer'
//usr/local/lib/libsfml-window.so: undefined reference to `gbm_create_device'
//usr/local/lib/libsfml-window.so: undefined reference to `gbm_bo_get_user_data'
//usr/local/lib/libsfml-window.so: undefined reference to `gbm_surface_destroy'
//usr/local/lib/libsfml-window.so: undefined reference to `gbm_bo_get_modifier'
//usr/local/lib/libsfml-window.so: undefined reference to `gbm_surface_create'
//usr/local/lib/libsfml-window.so: undefined reference to `gbm_bo_get_stride_for_plane'
//usr/local/lib/libsfml-window.so: undefined reference to `gbm_surface_lock_front_buffer'
//usr/local/lib/libsfml-window.so: undefined reference to `gbm_bo_get_device'
//usr/local/lib/libsfml-window.so: undefined reference to `gbm_bo_get_format'
//usr/local/lib/libsfml-window.so: undefined reference to `gbm_device_get_fd'
//usr/local/lib/libsfml-window.so: undefined reference to `gbm_bo_get_plane_count'
//usr/local/lib/libsfml-window.so: undefined reference to `gbm_bo_get_offset'
//usr/local/lib/libsfml-window.so: undefined reference to `gbm_bo_get_width'

I do have the libgbm-dev installed...
Rich

rwebb616

  • Jr. Member
  • **
  • Posts: 24
    • View Profile
BTW. I went through with the compile on a Pi4 but I get some errors when building attract that I can't find a solution for.

Is yours failing on the same undefined references mine is?

Rich

rwebb616

  • Jr. Member
  • **
  • Posts: 24
    • View Profile
Ok my problem was that I forgot the USE_DRM=1 ... once I did that it compiled but it is giving an error on running:

Code: [Select]
Couldn't find required EGL extension: EGL_MESA_platform_gbm or EGL_KHR_platform_gbm
Aborted

Any ideas?

Calvin

  • Newbie
  • *
  • Posts: 8
    • View Profile
Not really, sorry. I think I saw a dependency somewhere for Mesa. Not sure if this was attract tho. You could try installing mesa (maybe libmesa-dev. idk) At this point I am taking shots in the dark. 

EDIT: Did you run
Code: [Select]
sudo make install USE_GLES=1 ?