FreeCAD icon indicating copy to clipboard operation
FreeCAD copied to clipboard

libstdc++ version issue

Open KubiProjects opened this issue 2 years ago • 1 comments

Hi,

The libstdc++6 got a new version (/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.32) in Debian Trixie (testing), while in the newest appimage (FreeCAD-Link-Tip-Linux-x86_64-py3.11-20230811.AppImage) there is an older one (same for May version).

This causes strange MESA library errors and crashing FreeCAD. See below.

An "export LD_LIBRARY_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.32" before running FreeCAD saves the day, so there is a quick workaround that is mostly harmless.

----------------------- ERROR MESSAGE ------------------ ./FreeCAD-Link-Tip-Linux-x86_64-py3.11-20230811.AppImage /tmp/.mount_FreeCARRMElr FreeCAD 0.21.0, Libs: 2023.811.0R14555 (Git shallow) libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri) libGL error: failed to load driver: iris libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri) libGL error: failed to load driver: iris libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri) libGL error: failed to load driver: swrast WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed. QGLXContext: Failed to create dummy context Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlagsQSurfaceFormat::FormatOption(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::NoProfile)

KubiProjects avatar Aug 19 '23 21:08 KubiProjects

See my response on #960.

The appimage should not contain libstdc++ (any several other libraries), as they are in the appimage excludelist. Including these libraries results in breakage on different systems.

darrellenns avatar Feb 25 '24 04:02 darrellenns