FLTK logo

[fltk.coredev] Using NVidia's libEGL instead of Mesa's libEGL

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Using NVidia's libEGL instead of Mesa's libEGL Gonzalo Garramuño 18:45 Apr 29  
  According to CMake's find_package(OpenGL), setting this should allow for a vendor neutral distribution of Wayland and EGL:

set(OpenGL_GL_PREFERENCE GLVND)
find_package(OpenGL REQUIRED)

...etc...

list(APPEND LIBRARIES OpenGL::OpenGL OpenGL::EGL)
target_link_libraries(mrv2 PUBLIC ${LIBRARIES} )

But it does not seem to work for me.  My application with FLTK and GLFW both latest (compiled on Rocky Linux 8.9 and running on Ubuntu 22.04.4 LTS) starts fine but always loads Mesa's libEGL.

Google's Gemini told me about these variables:

The system searches for directories or files specified by environment variables: __EGL_VENDOR_LIBRARY_FILENAMES: This variable takes a colon-separated list of JSON files describing available ICDs. __EGL_VENDOR_LIBRARY_DIRS: This variable takes a colon-separated list of directories containing JSON files for ICDs.

I set them to:

> echo $__EGL_VENDOR_LIBRARY_DIRS
/usr/share/glvnd/

> echo $__EGL_VENDOR_LIBRARY_FILENAMES
10_nvidia.json:50_mesa.json

And then my application does not start and gives me the weird error:

GLFW ERROR: EGL: Failed to get EGL display: Success
ERROR: Cannot create window

The reason I want load NVidia's EGL instead of Mesa's EGL is one of performance.  Mesa's EGL plays 4K movies at 16 FPS while NVidia's EGL plays them at a perfect 60 FPS.

Manolo and Albrecht, can you help?

--
Gonzalo Garramuño
ggarra13@gmail.com

--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/a50e17bc-ee0e-4ffa-a793-7ed473f13a74%40gmail.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.