Skip to content

Commit

Permalink
Update to Qt 6.7
Browse files Browse the repository at this point in the history
  • Loading branch information
HTRamsey committed Dec 12, 2024
1 parent a5ba761 commit 272c1b7
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 27 deletions.
8 changes: 4 additions & 4 deletions .github/actions/qt-android/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ inputs:
version:
description: Qt Version
required: false
default: 6.6.3
default: 6.7.3
abis:
description: ABIs to Build
required: false
Expand All @@ -27,15 +27,15 @@ runs:
- name: Setup Android Environment
uses: android-actions/setup-android@v3
with:
cmdline-tools-version: 11076708
packages: 'platform-tools platforms;android-34 build-tools;34.0.0' # ndk;25.1.8937393'
cmdline-tools-version: 12266719
packages: 'platform-tools platforms;android-34 build-tools;34.0.0' # ndk;26.1.10909125'
log-accepted-android-sdk-licenses: false

- name: Install Android NDK
uses: nttld/setup-ndk@v1
id: setup-ndk
with:
ndk-version: r25b
ndk-version: r26b
add-to-path: false

- run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/android-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:

env:
ARTIFACT: QGroundControl.apk
QT_VERSION: 6.6.3
QT_VERSION: 6.7.3
GST_VERSION: 1.22.12
QT_ANDROID_KEYSTORE_PATH: ${{ github.workspace }}/deploy/android/android_release.keystore
QT_ANDROID_KEYSTORE_ALIAS: QGCAndroidKeyStore
Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
uses: ./.github/actions/qt-android
with:
host: linux
arch: gcc_64
arch: linux_gcc_64
version: ${{ env.QT_VERSION }}
abis: ${{ env.QT_ANDROID_ABIS }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/android-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

env:
ARTIFACT: QGroundControl.apk
QT_VERSION: 6.6.3
QT_VERSION: 6.7.3
GST_VERSION: 1.22.12
QT_ANDROID_KEYSTORE_PATH: ${{ github.workspace }}/deploy/android/android_release.keystore
QT_ANDROID_KEYSTORE_ALIAS: QGCAndroidKeyStore
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/android-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:

env:
ARTIFACT: QGroundControl.apk
QT_VERSION: 6.6.3
QT_VERSION: 6.7.3
GST_VERSION: 1.22.12
QT_ANDROID_KEYSTORE_PATH: ${{ github.workspace }}/deploy/android/android_release.keystore
QT_ANDROID_KEYSTORE_ALIAS: QGCAndroidKeyStore
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

env:
ARTIFACT: QGroundControl.app
QT_VERSION: 6.6.3
QT_VERSION: 6.7.3
GST_VERSION: 1.22.12

steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

env:
ARTIFACT: QGroundControl-x86_64.AppImage
QT_VERSION: 6.6.3
QT_VERSION: 6.7.3
GST_VERSION: 1.22.12

steps:
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
aqtversion: ==3.1.*
host: linux
target: desktop
arch: gcc_64
arch: linux_gcc_64
dir: ${{ runner.temp }}
modules: qtcharts qtlocation qtpositioning qtspeech qt5compat qtmultimedia qtserialport qtimageformats qtshadertools qtconnectivity qtquick3d qtsensors
cache: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

env:
ARTIFACT: QGroundControl.dmg
QT_VERSION: 6.6.3
QT_VERSION: 6.7.3
GST_VERSION: 1.22.12

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

env:
ARTIFACT: QGroundControl-installer.exe
QT_VERSION: 6.6.3
QT_VERSION: 6.7.3
GST_VERSION: 1.22.12
SCCACHE_GHA_ENABLED: "true"

Expand Down
11 changes: 6 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,11 @@ if(NOT Qt6LinguistTools_DIR)
set(Qt6LinguistTools_DIR ${QT_HOST_PATH}/lib/cmake/Qt6LinguistTools)
endif()

# Require 6.6.3 because otherwise libQt6QuickControls2Basic.so.6 &
# libQt6QuickControls2BasicStyleImpl.so.6 are missing.
qt_standard_project_setup(REQUIRES 6.6.3)
qt_standard_project_setup(
REQUIRES 6.7.3
SUPPORTS_UP_TO 6.7.3
I18N_SOURCE_LANGUAGE en
)

qt_policy(
SET QTP0001 NEW
Expand Down Expand Up @@ -289,10 +291,9 @@ qt_add_executable(${PROJECT_NAME}
)

if(Qt6LinguistTools_FOUND)
# TODO: Update to new qt_add_translations form in Qt6.7
file(GLOB TS_SOURCES ${CMAKE_SOURCE_DIR}/translations/qgc_*.ts)
set_source_files_properties(${TS_SOURCES} PROPERTIES OUTPUT_LOCATION "${CMAKE_BINARY_DIR}/i18n")
qt_add_translations(${PROJECT_NAME}
qt_add_translations(${CMAKE_PROJECT_NAME}
TS_FILES ${TS_SOURCES}
RESOURCE_PREFIX "/"
LUPDATE_OPTIONS -no-obsolete
Expand Down
2 changes: 1 addition & 1 deletion deploy/docker/Dockerfile-build-ubuntu
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ubuntu:20.04

ARG QT_VERSION=6.6.3
ARG QT_VERSION=6.7.3
ARG QT_MODULES="qtcharts qtlocation qtpositioning qtspeech qt5compat qtmultimedia qtserialport qtimageformats qtshadertools qtconnectivity qtquick3d qtsensors"

ENV DEBIAN_FRONTEND noninteractive
Expand Down
8 changes: 4 additions & 4 deletions deploy/vagrant/.vagrantconfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ configs:
'qt_deps_unpack_parent_dir': '/home/vagrant'

'qt_deps_unpack_dir': '/home/vagrant/Qt'
'qt_deps_bin_unpack_dir': '/home/vagrant/Qt/6.6.3/gcc_64/bin'
'qt_deps_lib_unpack_dir': '/home/vagrant/Qt/6.6.3/gcc_64/lib'
'qt_deps_plugins_unpack_dir': '/home/vagrant/Qt/6.6.3/gcc_64/plugins'
'qt_deps_qml_unpack_dir': '/home/vagrant/Qt/6.6.3/gcc_64/qml'
'qt_deps_bin_unpack_dir': '/home/vagrant/Qt/6.7.3/gcc_64/bin'
'qt_deps_lib_unpack_dir': '/home/vagrant/Qt/6.7.3/gcc_64/lib'
'qt_deps_plugins_unpack_dir': '/home/vagrant/Qt/6.7.3/gcc_64/plugins'
'qt_deps_qml_unpack_dir': '/home/vagrant/Qt/6.7.3/gcc_64/qml'

'project_root_dir': '/vagrant'

Expand Down
2 changes: 1 addition & 1 deletion docs/en/qgc-dev-guide/getting_started/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
qt_version: 6.6.3
qt_version: 6.7.3
---

# Getting Started with Source and Builds
Expand Down
4 changes: 2 additions & 2 deletions tools/setup/install-qt-debian.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/usr/bin/env bash

QT_VERSION="${QT_VERSION:-6.6.3}"
QT_VERSION="${QT_VERSION:-6.7.3}"
QT_PATH="${QT_PATH:-/opt/Qt}"
QT_HOST="${QT_HOST:-linux}"
QT_TARGET="${QT_TARGET:-desktop}"
QT_ARCH="${QT_ARCH:-gcc_64}"
QT_ARCH="${QT_ARCH:-linux_gcc_64}"
QT_MODULES="${QT_MODULES:-qtcharts qtlocation qtpositioning qtspeech qt5compat qtmultimedia qtserialport qtimageformats qtshadertools qtconnectivity qtquick3d qtsensors}"

set -e
Expand Down
2 changes: 1 addition & 1 deletion translations/qgc-lupdate.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# This script will update both the Qt and Json string translation files.
QT_PATH=~/Qt/6.6.3/macos/bin
QT_PATH=~/Qt/6.7.3/macos/bin
$QT_PATH/lupdate ../src -ts qgc.ts -no-obsolete
python3 qgc-lupdate-json.py

0 comments on commit 272c1b7

Please sign in to comment.