Skip to content

Commit

Permalink
2.8.1: Change opengl-es and add libboost dep
Browse files Browse the repository at this point in the history
  • Loading branch information
davidk committed Sep 23, 2024
1 parent 00c6b9c commit 4da5a94
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ LATEST_RELEASE="https://api.github.com/repos/prusa3d/PrusaSlicer/releases"
DEPS_REQUIRED=(git wget sudo libgl1-mesa-dev libglu1-mesa-dev \
build-essential cmake python3-pip python3-dev python3-setuptools patchelf \
desktop-file-utils libgdk-pixbuf2.0-dev fakeroot strace fuse libgtk-3-dev \
m4 zstd screen ninja-build squashfs-tools zsync)
m4 zstd screen ninja-build squashfs-tools zsync libboost-nowide-dev)

if [[ -v $STY ]] || [[ -z $STY ]]; then
echo -e '\033[1;36m**** The PrusaSlicer build process can take a long time. Screen or an alternative is advised for long-running terminal sessions. ****\033[0m'
Expand Down
26 changes: 26 additions & 0 deletions patches/version_2.8.1/0001-Set-GLAD_GLES2_USE_SYSTEM_EGL.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
From f93f8c8999db55252991fd55180140eb2e474205 Mon Sep 17 00:00:00 2001
Date: Sat, 21 Sep 2024 17:25:37 -0700
Subject: [PATCH] Set GLAD_GLES2_USE_SYSTEM_EGL

---
src/libvgcode/glad/include/glad/gles2.h | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/src/libvgcode/glad/include/glad/gles2.h b/src/libvgcode/glad/include/glad/gles2.h
index 2983e1df5..5691317c1 100644
--- a/src/libvgcode/glad/include/glad/gles2.h
+++ b/src/libvgcode/glad/include/glad/gles2.h
@@ -87,6 +87,10 @@ extern "C" {
#endif
#endif

+#ifndef GLAD_GLES2_USE_SYSTEM_EGL
+ #define GLAD_GLES2_USE_SYSTEM_EGL 1
+#endif
+
#ifndef GLAD_PLATFORM_UWP
#if defined(_MSC_VER) && !defined(GLAD_INTERNAL_HAVE_WINAPIFAMILY)
#ifdef __has_include
--
2.46.0

0 comments on commit 4da5a94

Please sign in to comment.