mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 17:08:38 +00:00
doc/README: add build test notes for Qt6 on Windows MSYS2
This commit is contained in:
parent
a6764ae2e9
commit
d92ef2f71d
13
README.md
13
README.md
@ -171,13 +171,20 @@ $env:CGO_CXXFLAGS = '-Wno-ignored-attributes -D_Bool=bool' # Clang 18 recommenda
|
|||||||
|
|
||||||
### Windows (MSYS2)
|
### Windows (MSYS2)
|
||||||
|
|
||||||
*Tested with MSYS2 UCRT64 Qt 5.15 / GCC 14*
|
*Tested with MSYS2 UCRT64 Qt 5.15 / Qt 6.7 / GCC 14*
|
||||||
|
|
||||||
For dynamic linking:
|
For dynamic linking:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pacman -S mingw-w64-ucrt-x86_64-{go,gcc,qt5-base,pkg-config}
|
# Install Go and C++ toolchains
|
||||||
GOROOT=/ucrt64/lib/go go build -ldflags "-s -w -H windowsgui"
|
pacman -S mingw-w64-ucrt-x86_64-{go,gcc,pkg-config}
|
||||||
|
export GOROOT=/ucrt64/lib/go # Needed only if this is the first time installing Go in MSYS2. Otherwise it would be automatically applied when opening a new Bash terminal.
|
||||||
|
|
||||||
|
# Install Qt
|
||||||
|
pacman -S mingw-w64-ucrt-x86_64-qt5-base # For Qt 5
|
||||||
|
pacman -S mingw-w64-ucrt-x86_64-qt6-base # For Qt 6
|
||||||
|
|
||||||
|
go build -ldflags "-s -w -H windowsgui"
|
||||||
```
|
```
|
||||||
|
|
||||||
- Note: the MSYS2 `qt5-base` package [links against `libicu`](https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-qt5-base/PKGBUILD#L241), whereas the Fsu0413 Qt packages do not. When using MSYS2, your distribution size including `.dll` files will be larger.
|
- Note: the MSYS2 `qt5-base` package [links against `libicu`](https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-qt5-base/PKGBUILD#L241), whereas the Fsu0413 Qt packages do not. When using MSYS2, your distribution size including `.dll` files will be larger.
|
||||||
|
Loading…
Reference in New Issue
Block a user