thx soenke, same problem here, LD_PRELOAD was the solution. For the lazy, this is the complete command line you can copy paste to run:
❯ LD_PRELOAD=/usr/lib64/libdrm.so.2:/usr/lib64/libdrm_amdgpu.so.1:/usr/lib64/libdrm_intel.so.1 freecad
| Git Clone URL: | https://aur.archlinux.org/freecad-weekly-appimage.git (read-only, click to copy) |
|---|---|
| Package Base: | freecad-weekly-appimage |
| Description: | A general purpose 3D CAD modeler |
| Upstream URL: | https://www.freecad.org/ |
| Licenses: | LGPL |
| Conflicts: | freecad |
| Provides: | freecad |
| Submitter: | Genues |
| Maintainer: | Genues |
| Last Packager: | Genues |
| Votes: | 30 |
| Popularity: | 0.33 |
| First Submitted: | 2021-12-14 13:34 (UTC) |
| Last Updated: | 2026-09-09 13:00 (UTC) |
thx soenke, same problem here, LD_PRELOAD was the solution. For the lazy, this is the complete command line you can copy paste to run:
❯ LD_PRELOAD=/usr/lib64/libdrm.so.2:/usr/lib64/libdrm_amdgpu.so.1:/usr/lib64/libdrm_intel.so.1 freecad
Had this "Could not initialize GLX" error introduced recently. LD_PRELOAD as in https://forum.freecad.org/viewtopic.php?t=107270 helped.
Thank you @Genues!
Workaround from the bug report (https://github.com/FreeCAD/FreeCAD/issues/32061): remove packaged libdrmso inside Freecad Appimage. I tested and it works. Follow the commands used here to make it:
# extract original freecad appimage
cd /opt/appimages
sudo ./freecad.AppImage --appimage-extract
cd squashfs-root/usr/lib/
# remove libdrm files inside it
sudo rm libdrm*.so*
# download `appimagetool` from github to repackage the modifyed freecad appimage
cd /tmp
wget https://github.com/AppImage/appimagetool/releases/download/1.9.1/appimagetool-x86_64.AppImage
chmod +x appimagetool-x86_64.AppImage
# backup the original freecad appimage
cd /opt/appimages
sudo mv freecad.AppImage freecad.AppImage_old
# repackage the modifyed freecad appimage
sudo /tmp/appimagetool-x86_64.AppImage squashfs-root/
# rename the modifyed freecad appimage to original name
sudo mv FreeCAD-x86_64.AppImage freecad.AppImage
# clean up temporary directory and appimagetool
sudo rm -rf /opt/appimages/squashfs-root
rm /tmp/appimagetool-x86_64.AppImage
@l8086 Bug in freecad app - https://github.com/FreeCAD/FreeCAD/issues/32061
Freecad does not start anymore here... Other opengl like programs are working normally.
$ freecad
FreeCAD 26.3.0, Libs: 26.3.0devR20260825 (Git shallow)
(C) 2001-2026 FreeCAD contributors
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
(qt.glx) qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 0, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize 0, stencilBufferSize 0, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QColorSpace(), profile QSurfaceFormat::CompatibilityProfile)
(qt.glx) qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 0, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize 0, stencilBufferSize 0, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QColorSpace(), profile QSurfaceFormat::CompatibilityProfile)
Could not initialize GLX
/usr/bin/freecad: line 2: 3445 Aborted (core dumped) /opt/appimages/freecad.AppImage "$@"
@Inka, I'm sorry, it just so happened that I forgot about your issues. Now I fixed it.
Genues is there any particular reason why you are completely ignoring the issues I raised and the solutions I provided?
The script work has been restored.
The first SHA256 checksum for the AppImage is currently outdated for the latest weekly release (2026.07.22).
Until the maintainer updates the PKGBUILD, here is a step-by-step workaround on how I successfully installed it by editing the file on the fly:
Start the installation and open the PKGBUILD: Use your AUR helper with your preferred file manager/editor (I used Helix):
paru -S freecad-weekly-appimage --fm helix
Locate the checksums:
Find the sha256sums=(... array in the file.
Update the first hash:
Replace the very first hash with the updated one from the official GitHub SHA256.txt file:
"c5e6d11e3a30210691a5fbe1e846c758be7f886c388bdd92a6ba785556096986"
Save and proceed:
Save the file and exit the editor. paru will now pass the validity check and finish the installation successfully.
Pinned Comments
Genues commented on 2021-12-14 13:39 (UTC) (edited on 2025-09-12 09:29 (UTC) by Genues)
Hi. The script automatically checks for new versions once a day, at 13:00 UTC. If you see a new version in the FreeCad repository, please wait for this time before setting the package out-of-date flag. Thanks you.