Skip to content

Commit

Permalink
[linux] Work towards newer sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Aug 16, 2024
1 parent 781af73 commit 066c56d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
17 changes: 9 additions & 8 deletions cmake/Deployment/Linux/AppImage/Dockerfile.llvm
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM rockylinux:8
FROM almalinux:9

RUN yum -y update
RUN yum -y install epel-release dnf-plugins-core
RUN dnf config-manager --set-enabled powertools
RUN dnf config-manager --set-enabled crb
RUN yum -y update

RUN yum -y install gcc-toolset-12 \
RUN yum -y install llvm-toolset \
glibc-devel alsa-lib-devel mesa-libGL-devel libxkbcommon-x11-devel zlib-devel ncurses-devel \
wget xz git cmake xcb-util xcb-util-devel libX11-devel libXrender-devel libXi-devel dbus-devel glib2-devel mesa-libGL-devel \
nasm libxkbcommon-x11-devel alsa-lib-devel glib2-devel libxcb-devel xcb-util xcb-util-image xcb-util-keysyms xcb-util-image-devel xcb-util-renderutil-devel \
Expand All @@ -14,7 +14,8 @@ RUN yum -y install gcc-toolset-12 \
xcb-util-cursor-devel \
libxcb-devel pulseaudio-libs-devel \
rsync \
bluez-libs-devel avahi-devel wayland-devel wayland-protocols-devel libwayland-egl libwayland-cursor libwayland-client ninja-build
bluez-libs-devel avahi-devel wayland-devel wayland-protocols-devel libwayland-egl libwayland-cursor libwayland-client ninja-build \
libxkbfile-devel xcb-util xorg-x11-proto-devel bzip2


RUN ls \
Expand All @@ -24,10 +25,10 @@ RUN ls \
&& mv cninja /usr/bin/


RUN wget https://github.com/Kitware/CMake/releases/download/v3.29.1/cmake-3.29.1-linux-x86_64.tar.gz \
&& tar xaf cmake-3.29.1-linux-x86_64.tar.gz \
&& rm cmake-3.29.1-linux-x86_64.tar.gz \
&& mv cmake-3.29.1-linux-x86_64 /cmake
RUN wget https://github.com/Kitware/CMake/releases/download/v3.30.2/cmake-3.30.2-linux-x86_64.tar.gz \
&& tar xaf cmake-3.30.2-linux-x86_64.tar.gz \
&& rm cmake-3.30.2-linux-x86_64.tar.gz \
&& mv cmake-3.30.2-linux-x86_64 /cmake

ENV PATH="/cmake/bin:${PATH}"

Expand Down
11 changes: 5 additions & 6 deletions cmake/Deployment/Linux/AppImage/Recipe.llvm
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,16 @@ mkdir -p "$SDK_DIR"
# Build score in the AppDir
export SOURCE_DIR=/score
export SCORE_DIR=/score
(

export INSTALL_ROOT=$(cd $APP_DIR/usr; pwd)

cninja $SOURCE_DIR $TOOLCHAIN -- \
cninja -S "$SOURCE_DIR" -B "$BUILD_DIR" $TOOLCHAIN -- \
-DCMAKE_INSTALL_PREFIX=$INSTALL_ROOT \
-DOSSIA_SDK=$OSSIA_SDK \
-DCMAKE_PREFIX_PATH="$OSSIA_SDK/qt6-static" \
-DQT_VERSION="Qt6"
-DCMAKE_PREFIX_PATH="$OSSIA_SDK/qt6-static" -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX"

(
cd build*
cd "$BUILD_DIR"

if [[ "$TOOLCHAIN" =~ ".*debug.*" ]]; then
cmake --install . --component OssiaScore
Expand All @@ -55,7 +54,7 @@ export SCORE_DIR=/score
find . -name '*.a' -exec rm -rf {} \;
)
)
)


# Copy pixmaps
cp $APP_DIR/usr/share/applications/ossia-score.desktop $APP_DIR/
Expand Down

0 comments on commit 066c56d

Please sign in to comment.