Skip to content

Commit

Permalink
Upgrade to Qt 6.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rectalogic committed Oct 15, 2024
1 parent 8827af2 commit 59965a2
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 28 deletions.
6 changes: 3 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"build": {
"dockerfile": "../builders/Linux/Dockerfile",
"context": "../builders",
"cacheFrom": "type=registry,ref=ghcr.io/rectalogic/mediafx:buildcache",
"cacheFrom": "type=registry,ref=ghcr.io/rectalogic/mediafx-qt:buildcache",
"args": {
"QT_VER": "6.7.2",
"QT_INSTALLER_VER": "4.8.0"
"QT_VER": "6.8.0",
"QT_INSTALLER_VER": "4.8.1"
},
"options": [
"--platform",
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ for the QML elements and modules.

## Dependencies

MediaFX use [Qt 6.6](https://doc.qt.io/qt-6/),
MediaFX use [Qt 6](https://doc.qt.io/qt-6/),
and [FFmpeg](https://ffmpeg.org/).

## Example
Expand Down
11 changes: 6 additions & 5 deletions builders/Darwin/install-qt6.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ source "$CURRENT/../versions"
INSTALLDIR=${QTDIR%/*/*}
(
cd "$BUILD_ROOT"
QTSPEC=qt6.${QT_VER//.}
QT_VER_NODOT=${QT_VER//.}
QTSPEC=qt6.${QT_VER_NODOT}
INSTALLER=qt-online-installer-macOS-x64-${QT_INSTALLER_VER}
curl -L -O https://qt.mirror.constant.com/archive/online_installers/${QT_INSTALLER_VER%.*}/${INSTALLER}.dmg \
&& hdiutil attach ${INSTALLER}.dmg \
Expand All @@ -18,13 +19,13 @@ INSTALLDIR=${QTDIR%/*/*}
--auto-answer telemetry-question=No --no-default-installations --no-force-installations \
install \
qt.${QTSPEC}.clang_64 \
qt.${QTSPEC}.qtquick3d \
qt.${QTSPEC}.qtquicktimeline \
qt.${QTSPEC}.addons.qtquick3d \
qt.${QTSPEC}.addons.qtquicktimeline \
qt.${QTSPEC}.addons.qtpositioning \
qt.${QTSPEC}.addons.qtwebchannel \
qt.${QTSPEC}.addons.qtwebengine \
extensions.qtwebengine.${QT_VER_NODOT}.clang_64 \
qt.${QTSPEC}.addons.qtmultimedia \
qt.${QTSPEC}.qtshadertools \
qt.${QTSPEC}.addons.qtshadertools \
qt.${QTSPEC}.addons.qtquickeffectmaker \
qt.tools.qtcreator_gui \
&& hdiutil detach /Volumes/${INSTALLER} \
Expand Down
23 changes: 12 additions & 11 deletions builders/Linux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

ARG UBUNTU=noble

FROM ubuntu:${UBUNTU} as base
FROM ubuntu:${UBUNTU} AS base

ENV container docker
ENV container=docker
ENV DEBIAN_FRONTEND=noninteractive
ENV LANG=en_US.UTF-8
ENV LC_ALL=C.UTF-8
Expand All @@ -30,11 +30,11 @@ RUN apt-get -y update && apt-get -y install \
libxkbcommon-x11-0


FROM base as qt
FROM base AS qt

ARG QT_VER
ARG QT_INSTALLER_VER
ENV container docker
ENV container=docker
ENV DEBIAN_FRONTEND=noninteractive
ENV LANG=en_US.UTF-8
ENV LC_ALL=C.UTF-8
Expand All @@ -54,28 +54,29 @@ RUN --mount=type=secret,id=qtaccount,target=/root/.local/share/Qt/qtaccount.ini
else
ARCH=x64
fi
QTSPEC=qt6.${QT_VER//.}
QT_VER_NODOT=${QT_VER//.}
QTSPEC=qt6.${QT_VER_NODOT}
INSTALLER=qt-online-installer-linux-${ARCH}-${QT_INSTALLER_VER}.run
curl -O https://qt.mirror.constant.com/archive/online_installers/${QT_INSTALLER_VER%.*}/${INSTALLER} \
&& chmod +x ${INSTALLER} \
&& ./${INSTALLER} --root /usr/local/Qt --accept-licenses --accept-obligations --default-answer --confirm-command \
--auto-answer telemetry-question=No --no-default-installations --no-force-installations \
install \
qt.${QTSPEC}.linux_gcc_64 \
qt.${QTSPEC}.qtquick3d \
qt.${QTSPEC}.qtquicktimeline \
qt.${QTSPEC}.addons.qtquick3d \
qt.${QTSPEC}.addons.qtquicktimeline \
qt.${QTSPEC}.addons.qtpositioning \
qt.${QTSPEC}.addons.qtwebchannel \
qt.${QTSPEC}.addons.qtwebengine \
extensions.qtwebengine.${QT_VER_NODOT}.linux_gcc_64 \
qt.${QTSPEC}.addons.qtmultimedia \
qt.${QTSPEC}.qtshadertools \
qt.${QTSPEC}.addons.qtshadertools \
&& find /usr/local/Qt/Docs/Qt-${QT_VER} -type f -and -not -name '*.index' -delete \
&& curl -o iwyu-mapgen-qt.py https://raw.githubusercontent.com/include-what-you-use/include-what-you-use/clang_17/mapgen/iwyu-mapgen-qt.py \
&& python3 iwyu-mapgen-qt.py /usr/local/Qt/${QT_VER}/*/include > "/usr/local/Qt/${QT_VER}/qt.imp"
EOF


FROM base as mediafx
FROM base AS mediafx
LABEL maintainer=rectalogic
ARG QT_VER
ARG UBUNTU=noble
Expand All @@ -84,7 +85,7 @@ ENV GALLIUM_DRIVER=softpipe
ENV LIBGL_ALWAYS_SOFTWARE=1
ENV DRI_NO_MSAA=1

ENV container docker
ENV container=docker
ENV DEBIAN_FRONTEND=noninteractive
ENV LANG=en_US.UTF-8
ENV LC_ALL=C.UTF-8
Expand Down
2 changes: 1 addition & 1 deletion builders/Linux/docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ if [[ ! $QTACCOUNT ]]; then
fi
fi

docker buildx build --secret id=qtaccount,src="$QTACCOUNT" --build-arg UBUNTU=${UBUNTU:-noble} --build-arg QT_VER=${QT_VER:?} --build-arg QT_INSTALLER_VER=${QT_INSTALLER_VER:?} --platform linux/amd64 --memory-swap -1 --load --tag ghcr.io/rectalogic/mediafx:${UBUNTU:-noble}-$(git branch --show-current) --file "${CURRENT}/Dockerfile" "${CURRENT}/.."
docker buildx build --secret id=qtaccount,src="$QTACCOUNT" --build-arg UBUNTU=${UBUNTU:-noble} --build-arg QT_VER=${QT_VER:?} --build-arg QT_INSTALLER_VER=${QT_INSTALLER_VER:?} --platform linux/amd64 --memory-swap -1 --load --tag ghcr.io/rectalogic/mediafx-qt:${UBUNTU:-noble}-$(git branch --show-current) --file "${CURRENT}/Dockerfile" "${CURRENT}/.."
2 changes: 1 addition & 1 deletion builders/Linux/docker-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ MOUNT="$(cd "${BASH_SOURCE%/*}/../.."; pwd)"
# opengl or vulkan
TARGET=${TARGET:-opengl}
docker run ${DOCKER_OPTS} -e QSG_RHI_BACKEND=${TARGET} --rm --init \
--mount="type=bind,src=${MOUNT},dst=/mediafx,consistency=cached" ghcr.io/rectalogic/mediafx:${UBUNTU:-noble}-$(git branch --show-current) "$@"
--mount="type=bind,src=${MOUNT},dst=/mediafx,consistency=cached" ghcr.io/rectalogic/mediafx-qt:${UBUNTU:-noble}-$(git branch --show-current) "$@"
4 changes: 2 additions & 2 deletions builders/versions
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export QT_VER=6.7.2
export QT_INSTALLER_VER=4.8.0
export QT_VER=6.8.0
export QT_INSTALLER_VER=4.8.1
export SOURCE_ROOT="${BASH_SOURCE%/*}/.."
BUILD_ROOT="${BASH_SOURCE%/*}/../build/$(uname)"
mkdir -p "${BUILD_ROOT}"
Expand Down
1 change: 0 additions & 1 deletion src/MediaFX/audio_renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include <QPointer>
#include <QQmlEngine>
#include <QQmlInfo>
#include <QmlTypeAndRevisionsRegistration>
#include <QtCore>

/*!
Expand Down
1 change: 0 additions & 1 deletion src/MediaFX/media_clip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include <QQmlInfo>
#include <QUrl>
#include <QVideoSink>
#include <QmlTypeAndRevisionsRegistration>
#include <chrono>
#include <compare>
#include <ratio>
Expand Down
1 change: 0 additions & 1 deletion src/MediaFX/render_session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include <QQmlInfo>
#include <QString>
#include <QVariant>
#include <QmlTypeAndRevisionsRegistration>
#include <QtLogging>
using namespace Qt::Literals::StringLiterals;

Expand Down
1 change: 0 additions & 1 deletion src/MediaFX/render_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include <QQmlEngine>
#include <QQmlInfo>
#include <QQuickItem>
#include <QmlTypeAndRevisionsRegistration>
#ifdef MEDIAFX_ENABLE_VULKAN
#include <QQuickGraphicsConfiguration>
#include <QSGRendererInterface>
Expand Down

0 comments on commit 59965a2

Please sign in to comment.