software installation – How to run EAGLE (CadSoft/Autodesk) on Ubuntu 22.04 or later? (Failed to create OpenGL context for format QSurfaceFormat)

I’m trying to run EAGLE from autodesk web page. I extracted the files, set LD_LIBRARY_PATH and use the LIBGL fix from this question. I also symlinked swrast inside /usr/lib/dri and ran apt install libgl1-mesa-dri libxcb-dri3-0. Then also added MESA_LOADER_DRIVER_OVERRIDE=i965 for good measure. This is the command I run:

LD_LIBRARY_PATH=lib LIBGL_ALWAYS_SOFTWARE=1 MESA_LOADER_DRIVER_OVERRIDE=i965 ./eagle

Still, I’m unable to start it due to two or three errors:

LibGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: undefined symbol: xcb_dri3_buffers_from_pixmap_strides

From here I gather the function is provided by lib-xcb3, which is installed. Next we have:

ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler.

Which is said to be caused by missing OpenGL libs. Finally:

Failed to create OpenGL context for format QSurfaceFormat(...

This is the full output:

libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: undefined symbol: xcb_dri3_buffers_from_pixmap_strides (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
QXcbConnection: XCB error: 2 (BadValue), sequence: 438, resource id: 0, major code: 152 (Unknown), minor code: 24
Sandboxing disabled by user.
WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed.
[248615:248627:0113/093459.794345:ERROR:nss_util.cc(808)] After loading Root Certs, loaded==false: NSS error code: -8018
[248615:248632:0113/093500.240881:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: ocsp.digicert.com
[248615:248632:0113/093500.240910:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: ocsp.digicert.com
[248615:248632:0113/093500.240929:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: crl4.digicert.com
[248615:248632:0113/093500.240935:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: crl3.digicert.com
[248615:248632:0113/093500.241865:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: ocsp.digicert.com
[248615:248632:0113/093500.241878:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: ocsp.digicert.com
[248615:248632:0113/093500.241891:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: crl4.digicert.com
[248615:248632:0113/093500.241897:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: crl3.digicert.com
[248615:248632:0113/093500.787421:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: ocsp.digicert.com
[248615:248632:0113/093500.787447:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: ocsp.digicert.com
[248615:248632:0113/093500.787484:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: crl4.digicert.com
[248615:248632:0113/093500.787495:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: crl3.digicert.com
[248615:248632:0113/093500.788380:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: ocsp.digicert.com
[248615:248632:0113/093500.788393:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: ocsp.digicert.com
[248615:248632:0113/093500.788408:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: crl4.digicert.com
[248615:248632:0113/093500.788414:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: crl3.digicert.com
js: Failed to set referrer policy: The value 'same-origin' is not one of 'always', 'default', 'never', 'origin-when-crossorigin', 'no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', or 'unsafe-url'. The referrer policy has been left unchanged.
[248615:248632:0113/093501.032500:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: ocsp.digicert.com
[248615:248632:0113/093501.032528:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: ocsp.digicert.com
[248615:248632:0113/093501.032544:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: crl4.digicert.com
[248615:248632:0113/093501.032551:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: crl3.digicert.com
[248615:248632:0113/093501.033359:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: ocsp.digicert.com
[248615:248632:0113/093501.033370:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: ocsp.digicert.com
[248615:248632:0113/093501.033384:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: crl4.digicert.com
[248615:248632:0113/093501.033390:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: crl3.digicert.com
js: wafErrorsQueue
js: wafErrorsQueue
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags<:formatoption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::SwapBehavior(DefaultSwapBehavior), swapInterval 1, profile  QSurfaceFormat::OpenGLContextProfile(NoProfile)) 
Aborted

Read more here: Source link