Created
June 8, 2022 18:45
-
-
Save sevkin/3e74a76cbb88cf080220b01bc7c1d910 to your computer and use it in GitHub Desktop.
cura 5 ubuntu 22.04 mesa opengl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# setup cura 5 on ubuntu 22.04 with mesa opengl | |
# 1. unpack appimage | |
./Ultimaker-Cura-5.0.0-linux.AppImage --appimage-extract | |
cd ./squashfs-root | |
# 2. fix "dri not found" | |
# libGL error: MESA-LOADER: failed to open crocus: /usr/lib/dri/crocus_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: crocus | |
# 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 | |
sudo ln -s /usr/lib/x86_64-linux-gnu/dri /usr/lib/ | |
# 3. fix wrong libstdc++ | |
# libGL error: MESA-LOADER: failed to open crocus: ..../squashfs-root/libstdc++.so.6: version `GLIBCXX_3.4.30' not found | |
# (required by /lib/x86_64-linux-gnu/libLLVM-13.so.1) | |
# (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri) | |
sudo apt install libstdc++6-amd64-cross | |
mv libstdc++.so.6 libstdc++.so.6.orig | |
ln -s /usr/x86_64-linux-gnu/lib/libstdc++.so.6 ./ | |
# 4. move cura to /opt (or ~/bin or another dir) and create shortcut | |
cd ../ | |
mv squashfs-root /opt/cura5 | |
cp /opt/cura5/cura.desktop ~/.local/share/applications/cura5.desktop | |
# edit ~/.local/share/applications/cura5.desktop | |
# add: | |
Exec=/opt/cura5/Ultimaker-Cura %F | |
Path=/opt/cura5/ | |
Icon=/opt/cura5/cura-icon.png | |
# execute | |
update-desktop-database ~/.local/share/applications/ | |
# 5. enjoy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment