Skip to content

Commit 389e500

Browse files
committed
qt-macos: Use 6.9.3 by default
1 parent 4ffba95 commit 389e500

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

qt/README-qt-build-macos.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ cd src/mac
3636

3737
This will:
3838

39-
- Build Qt 6.9.1
40-
- Install it to `/opt/Qt/6.9.1/macos` (works for both Intel and Apple Silicon)
39+
- Build Qt 6.9.3
40+
- Install it to `/opt/Qt/6.9.3/macos` (works for both Intel and Apple Silicon)
4141
- Use all available CPU cores
4242
- Apply macOS-specific optimizations
4343
- Exclude unnecessary modules and features for minimal footprint
@@ -47,7 +47,7 @@ This will:
4747
The script supports the following options:
4848

4949
```
50-
--version=VERSION Qt version to build (default: 6.9.1)
50+
--version=VERSION Qt version to build (default: 6.9.3)
5151
--prefix=PREFIX Installation prefix (default: /opt/Qt/{VERSION})
5252
--cores=CORES Number of CPU cores to use (default: all)
5353
--no-clean Don't clean the build directory
@@ -72,7 +72,7 @@ Build a specific Qt version:
7272
Install to a custom location:
7373

7474
```bash
75-
./build-qt-macos.sh --prefix=/Users/$(whoami)/Qt/6.9.1
75+
./build-qt-macos.sh --prefix=/Users/$(whoami)/Qt/6.9.3
7676
```
7777

7878
Limit CPU usage (useful for background builds):
@@ -90,7 +90,7 @@ Build single-architecture (host only):
9090
Run without sudo (requires pre-installed dependencies):
9191

9292
```bash
93-
./build-qt-macos.sh --unprivileged --prefix=$HOME/Qt/6.9.1
93+
./build-qt-macos.sh --unprivileged --prefix=$HOME/Qt/6.9.3
9494
```
9595

9696
## Minimal Build Configuration
@@ -132,7 +132,7 @@ By default, the script creates fat binaries containing both Intel and Apple Sili
132132

133133
- **Intel optimizations**: `-march=x86-64-v2 -mtune=intel` for better x86_64 performance
134134
- **Apple Silicon optimizations**: `-march=armv8.4-a+crypto -mtune=apple-a14` for M-series chips
135-
- **Installation path**: `/opt/Qt/6.9.1/macos` (same as single-architecture builds)
135+
- **Installation path**: `/opt/Qt/6.9.3/macos` (same as single-architecture builds)
136136
- **CMake integration**: Toolchain file automatically sets `CMAKE_OSX_ARCHITECTURES="x86_64;arm64"`
137137

138138
**When to use universal builds:**
@@ -206,7 +206,7 @@ After building Qt, the script creates several helper files:
206206
To set up your environment for using the built Qt:
207207

208208
```bash
209-
source /opt/Qt/6.9.1/macos/bin/qtenv.sh
209+
source /opt/Qt/6.9.3/macos/bin/qtenv.sh
210210
```
211211

212212
This sets the needed environment variables for Qt on macOS.
@@ -216,7 +216,7 @@ This sets the needed environment variables for Qt on macOS.
216216
To use this Qt build with CMake projects (like rpi-imager):
217217

218218
```bash
219-
cmake -DCMAKE_TOOLCHAIN_FILE=/opt/Qt/6.9.1/macos/qt6-toolchain.cmake \
219+
cmake -DCMAKE_TOOLCHAIN_FILE=/opt/Qt/6.9.3/macos/qt6-toolchain.cmake \
220220
-S /path/to/source -B build
221221
```
222222

@@ -226,12 +226,12 @@ To build rpi-imager with your custom Qt:
226226

227227
```bash
228228
# Set up Qt environment
229-
source /opt/Qt/6.9.1/macos/bin/qtenv.sh
229+
source /opt/Qt/6.9.3/macos/bin/qtenv.sh
230230

231231
# Configure and build rpi-imager
232232
cd /path/to/rpi-imager
233233
mkdir build && cd build
234-
cmake -DCMAKE_TOOLCHAIN_FILE=/opt/Qt/6.9.1/macos/qt6-toolchain.cmake ../src
234+
cmake -DCMAKE_TOOLCHAIN_FILE=/opt/Qt/6.9.3/macos/qt6-toolchain.cmake ../src
235235
make -j$(sysctl -n hw.ncpu)
236236
```
237237
## Troubleshooting
@@ -271,10 +271,10 @@ If CMake can't find your Qt installation:
271271

272272
```bash
273273
# Make sure Qt is in your path
274-
export CMAKE_PREFIX_PATH="/opt/Qt/6.9.1/macos:$CMAKE_PREFIX_PATH"
274+
export CMAKE_PREFIX_PATH="/opt/Qt/6.9.3/macos:$CMAKE_PREFIX_PATH"
275275

276276
# Or use the toolchain file
277-
cmake -DCMAKE_TOOLCHAIN_FILE=/opt/Qt/6.9.1/macos/qt6-toolchain.cmake ...
277+
cmake -DCMAKE_TOOLCHAIN_FILE=/opt/Qt/6.9.3/macos/qt6-toolchain.cmake ...
278278
```
279279

280280
## Integration with rpi-imager Build System

qt/build-qt-macos.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
set -e
1111

1212
# Default values
13-
QT_VERSION="6.9.1" # 6.9.1 is the latest version as of 2025-08-04
13+
QT_VERSION="6.9.3" # 6.9.3 is the latest version as of 2025-10-01
1414
PREFIX="/opt/Qt/${QT_VERSION}" # Default installation prefix with capital 'Q'
1515
CORES=$(sysctl -n hw.ncpu) # Default to all available CPU cores
1616
CLEAN_BUILD=1 # Clean the build directory by default

0 commit comments

Comments
 (0)