Skip to content

Commit

Permalink
cura add mesa dep for better rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
Botspot authored Feb 11, 2024
1 parent 08d6f25 commit 0d4c100
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions apps/Cura/install-64
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,15 @@ wget -O /tmp/Cura.AppImage https://github.com/smartavionics/Cura/releases/downlo
sudo mv /tmp/Cura.AppImage /opt
sudo chmod +x /opt/Cura.AppImage

#ensure libfuse2 is installed to avoid "error loading libfuse.so.2" error
install_packages libfuse2 libgles-dev || exit 1
#installs libfuse2
enable_module fuse || exit 1

#mesa-utils gets better layer rendering instead of compatibility view
if package_available mesa-utils ;then
install_packages libgles-dev mesa-utils || exit 1
else
install_packages libgles-dev || exit 1
fi

#get stl-thumb package - non-fatal as it's not crucial to Cura's function
(install_packages "https://github.com/unlimitedbacon/stl-thumb/releases/download/v${version2}/stl-thumb_${version2}_arm64.deb") || warning "Failed to install stl-thumb package, but continuing as it's not crucial to Cura's operation."
Expand All @@ -27,8 +34,6 @@ if [ -d ~/.config/cura/master ] && [ ! -d ~/.config/cura/4.20 ];then
cp -a ~/.config/cura/master ~/.config/cura/4.20
fi

enable_module fuse || exit 1

echo "[Desktop Entry]
Name=Ultimaker Cura
GenericName=3D Printing Software
Expand Down

3 comments on commit 0d4c100

@theofficialgman
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Botspot mesa-utils itself doesn't bring any additional driver support. Is cura calling the glxinfo or eglinfo command line tools inside the binary to check for hardware support?
Basically go into more depth as to what this changes.

@Botspot
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Botspot mesa-utils itself doesn't bring any additional driver support. Is cura calling the glxinfo or eglinfo command line tools inside the binary to check for hardware support? Basically go into more depth as to what this changes.

smartavionics/Cura#244 (comment)

Yes, it uses the output of glxinfo to determine the version of Mesa that is installed. It needs Mesa version 20 or higher to enable the more sophisticated layer view.

@theofficialgman
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Botspot mesa-utils itself doesn't bring any additional driver support. Is cura calling the glxinfo or eglinfo command line tools inside the binary to check for hardware support? Basically go into more depth as to what this changes.

smartavionics/Cura#244 (comment)

Yes, it uses the output of glxinfo to determine the version of Mesa that is installed. It needs Mesa version 20 or higher to enable the more sophisticated layer view.

gross... cura should be using native code calls to do that, not glxinfo
good catch though

Please sign in to comment.