Skip to content

Commit c152acc

Browse files
authored
Merge pull request #8476 from danoli3/linux-packages
Linux packages update for wayland x11
2 parents 5d07b95 + 73d315f commit c152acc

File tree

5 files changed

+68
-9
lines changed

5 files changed

+68
-9
lines changed

.github/workflows/of.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
steps:
3333
- uses: actions/checkout@v4
3434
- name: Docker Step
35-
run: "docker run -di --name emscripten -v $PWD:/src emscripten/emsdk:4.0.4 bash"
35+
run: "docker run -di --name emscripten -v $PWD:/src emscripten/emsdk:4.0.16 bash"
3636
# - name: Determine Release
3737
# id: vars
3838
# shell: bash
@@ -87,7 +87,7 @@ jobs:
8787
release: true
8888
update: true
8989
msystem: ${{matrix.msystem}}
90-
pacboy: openssl:p python:p gcc:p assimp:p cairo:p curl:p freeglut:p FreeImage:p glew:p glfw:p glm:p libsndfile:p libusb:p libxml2:p mpg123:p nlohmann-json:p openal:p opencv:p pugixml:p rtaudio:p uriparser:p utf8cpp:p
90+
pacboy: openssl:p python:p gcc:p assimp:p cairo:p curl:p freeglut:p freeimage:p glew:p glfw:p glm:p libsndfile:p libusb:p libxml2:p mpg123:p nlohmann-json:p openal:p opencv:p pugixml:p rtaudio:p uriparser:p utf8cpp:p
9191
install: >-
9292
unzip
9393
make

scripts/linux/debian/install_dependencies.sh

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,39 @@ fi
3737

3838

3939
echo "installing OF dependencies"
40-
apt-get install freeglut3-dev libasound2-dev libxmu-dev libxxf86vm-dev g++ libgl1-mesa-dev libglu1-mesa-dev libraw1394-dev libudev-dev libdrm-dev libglew-dev libopenal-dev libsndfile-dev libfreeimage-dev libcairo2-dev libfreetype6-dev libssl-dev libpulse-dev libusb-1.0-0-dev libgtk${GTK_VERSION}-dev libopencv-dev libegl1-mesa-dev libgles1 libgles2-mesa-dev libassimp-dev librtaudio-dev libglfw3-dev liburiparser-dev libcurl4-openssl-dev libpugixml-dev libpoco-dev libgconf-2-4 brotli liblapack-dev libblas-dev
40+
apt-get update
41+
apt-get install -y \
42+
freeglut3-dev libasound2-dev libxmu-dev libxxf86vm-dev g++ \
43+
libgl1-mesa-dev libglu1-mesa-dev libraw1394-dev libudev-dev libdrm-dev \
44+
libglew-dev libopenal-dev libsndfile-dev libfreeimage-dev libcairo2-dev \
45+
libfreetype6-dev libssl-dev libpulse-dev libusb-1.0-0-dev \
46+
libgtk${GTK_VERSION}-dev libopencv-dev \
47+
libegl1-mesa-dev libgles1 libgles2-mesa-dev \
48+
libassimp-dev librtaudio-dev libglfw3-dev \
49+
liburiparser-dev libcurl4-openssl-dev libpugixml-dev libpoco-dev \
50+
libgconf-2-4 brotli liblapack-dev libblas-dev \
51+
\
52+
# ---- X11 bits used by GLFW (often missing) ----
53+
libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev \
54+
xorgproto \
55+
\
56+
# ---- Wayland stack for GLFW ----
57+
libwayland-dev wayland-protocols libxkbcommon-dev libxkbcommon-x11-dev \
58+
libdecor-0-dev \
59+
\
60+
# ---- GL loader/plumbing (recommended) ----
61+
libglvnd-dev \
62+
\
63+
# ---- useful tools (optional) ----
64+
mesa-utils
4165
exit_code=$?
4266
if [ $exit_code != 0 ]; then
43-
echo "error installing dependencies, there could be an error with your internet connection"
44-
echo "if the error persists, please report an issue in github: http://github.com/openframeworks/openFrameworks/issues"
45-
exit $exit_code
67+
echo "error installing dependencies, there could be an error with your internet connection"
68+
echo "if the error persists, please report an issue in github: http://github.com/openframeworks/openFrameworks/issues"
69+
exit $exit_code
4670
fi
4771

72+
4873
echo "installing gstreamer"
4974
apt-get install libgstreamer${GSTREAMER_VERSION}-dev libgstreamer-plugins-base${GSTREAMER_VERSION}-dev ${GSTREAMER_FFMPEG} gstreamer${GSTREAMER_VERSION}-pulseaudio gstreamer${GSTREAMER_VERSION}-x gstreamer${GSTREAMER_VERSION}-plugins-bad gstreamer${GSTREAMER_VERSION}-alsa gstreamer${GSTREAMER_VERSION}-plugins-base gstreamer${GSTREAMER_VERSION}-plugins-good
5075
exit_code=$?

scripts/linux/fedora/install_dependencies.sh

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,26 @@ ROOT=$(cd $(dirname $0); pwd -P)
1414

1515
# on older Fedora installs you might need to also do:
1616
# dnf install jack-audio-connection-kit-dbus
17-
dnf install freeglut-devel alsa-lib-devel libXmu-devel libXxf86vm-devel gcc-c++ libraw1394-devel gstreamer1-devel gstreamer1-plugins-base-devel libudev-devel libtheora-devel libvorbis-devel openal-soft-devel libsndfile-devel python-lxml glew-devel flac-devel freeimage-devel cairo-devel pulseaudio-libs-devel openssl-devel libusbx-devel gtk2-devel libXrandr-devel libXi-devel opencv-devel libX11-devel assimp-devel rtaudio-devel gtk3-devel glfw-devel uriparser-devel curl-devel pugixml-devel poco-devel brotli
17+
dnf install -y \
18+
freeglut-devel alsa-lib-devel libXmu-devel libXxf86vm-devel gcc-c++ \
19+
libraw1394-devel gstreamer1-devel gstreamer1-plugins-base-devel \
20+
libudev-devel libtheora-devel libvorbis-devel openal-soft-devel \
21+
libsndfile-devel python3-lxml glew-devel flac-devel freeimage-devel \
22+
cairo-devel pulseaudio-libs-devel openssl-devel libusbx-devel \
23+
gtk2-devel libXrandr-devel libXi-devel opencv-devel libX11-devel \
24+
assimp-devel rtaudio-devel gtk3-devel glfw-devel uriparser-devel \
25+
curl-devel pugixml-devel poco-devel brotli \
26+
\
27+
# ---- Added for GLFW / X11 / Wayland completeness ----
28+
wayland-devel wayland-protocols-devel \
29+
libxkbcommon-devel libxkbcommon-x11-devel \
30+
libdecor-devel xorg-x11-proto-devel \
31+
mesa-libGL-devel mesa-libGLU-devel mesa-libEGL-devel mesa-libGLES-devel \
32+
libXcursor-devel libXinerama-devel libXext-devel \
33+
fftw-devel \
34+
\
35+
# ---- Optional runtime components (for testing) ----
36+
xorg-x11-server-Xwayland mesa-dri-drivers libdecor
1837

1938
exit_code=$?
2039
if [ $exit_code != 0 ]; then

scripts/linux/ubuntu/install_dependencies.sh

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,22 @@ else
187187
fi
188188

189189

190-
PACKAGES="make nlohmann-json3-dev libssl3 libcurl4 brotli libcurl4-openssl-dev libjack-jackd2-0 libjack-jackd2-dev freeglut3-dev libasound2-dev libxmu-dev libxxf86vm-dev g++${CXX_VER} libgl1-mesa-dev${XTAG} libglu1-mesa-dev libraw1394-dev libudev-dev libdrm-dev libglew-dev libopenal-dev libsndfile1-dev libfreeimage-dev libcairo2-dev libfreetype6-dev libssl-dev libpulse-dev libusb-1.0-0-dev ${LIB_GTK_DEV} libopencv-dev libassimp-dev librtaudio-dev libgstreamer${GSTREAMER_VERSION}-dev libgstreamer-plugins-base${GSTREAMER_VERSION}-dev ${GSTREAMER_FFMPEG} gstreamer${GSTREAMER_VERSION}-pulseaudio gstreamer${GSTREAMER_VERSION}-x gstreamer${GSTREAMER_VERSION}-plugins-bad gstreamer${GSTREAMER_VERSION}-alsa gstreamer${GSTREAMER_VERSION}-plugins-base gstreamer${GSTREAMER_VERSION}-plugins-good gdb ${GLFW_PKG} liburiparser-dev libpugixml-dev libgtk2.0-0 libpoco-dev libxcursor-dev libxi-dev libxinerama-dev libxml2-dev"
190+
PACKAGES="make nlohmann-json3-dev libssl3 libcurl4 brotli libcurl4-openssl-dev \
191+
libjack-jackd2-0 libjack-jackd2-dev freeglut3-dev libasound2-dev libxmu-dev \
192+
libxxf86vm-dev g++${CXX_VER} libgl1-mesa-dev${XTAG} libglu1-mesa-dev \
193+
libraw1394-dev libudev-dev libdrm-dev libglew-dev libopenal-dev libsndfile1-dev \
194+
libfreeimage-dev libcairo2-dev libfreetype6-dev libssl-dev libpulse-dev \
195+
libusb-1.0-0-dev ${LIB_GTK_DEV} libopencv-dev libassimp-dev librtaudio-dev \
196+
libgstreamer${GSTREAMER_VERSION}-dev libgstreamer-plugins-base${GSTREAMER_VERSION}-dev \
197+
${GSTREAMER_FFMPEG} gstreamer${GSTREAMER_VERSION}-pulseaudio \
198+
gstreamer${GSTREAMER_VERSION}-x gstreamer${GSTREAMER_VERSION}-plugins-bad \
199+
gstreamer${GSTREAMER_VERSION}-alsa gstreamer${GSTREAMER_VERSION}-plugins-base \
200+
gstreamer${GSTREAMER_VERSION}-plugins-good gdb ${GLFW_PKG} liburiparser-dev \
201+
libpugixml-dev libgtk2.0-0 libpoco-dev libxcursor-dev libxi-dev libxinerama-dev \
202+
libxml2-dev \
203+
libwayland-dev wayland-protocols libxkbcommon-dev libxkbcommon-x11-dev \
204+
libdecor-0-dev x11proto-dev libglvnd-dev libegl1-mesa-dev libgles2-mesa-dev \
205+
mesa-utils"
191206

192207
echo "installing OF dependencies"
193208
echo "OF needs to install the following packages using apt-get:"

scripts/msys2/install_dependencies.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ done
4343
msyspackages="unzip make"
4444

4545
# List of MINGW packages to be installed (without prefix)
46-
mingwPackages="assimp cairo curl FreeImage \
46+
mingwPackages="assimp cairo curl freeimage \
4747
glew glfw glm fmt zlib brotli libpng \
4848
harfbuzz libsndfile libusb libxml2 mpg123 \
4949
nlohmann-json openal opencv \

0 commit comments

Comments
 (0)