Commit Graph

15 Commits

Author SHA1 Message Date
fauxpark
9a60f4be24 MSYS2 build: Qt 6 2022-07-30 22:40:22 +10:00
fauxpark
80bd29a189 Missed the dash 2022-07-26 15:58:55 +10:00
fauxpark
8a49ecfbe6 Fix typo in qmake6 version check 2022-07-26 15:56:20 +10:00
Moritz Bunkus
1c05841113
SVG icon theme: add SVG variants of most raster icons
Part of the fix of #3335.
2022-04-24 13:41:20 +02:00
Moritz Bunkus
9deee8e6a1
build system: Qt6: try to detect qtmultimedia for mingw, too 2022-04-09 11:42:42 +02:00
Moritz Bunkus
f0521d73c1
configure, GUI: fix detection of & compilation with Qt multimedia ≥ 6.2.0 2022-04-09 11:25:23 +02:00
Moritz Bunkus
9a4119c67b
configure: Qt6: detect if multimedia module is actually available 2022-03-02 19:26:12 +01:00
Moritz Bunkus
f73d30ac51
GUI: Qt6: actively check if QMediaPlayer is available instead of version check 2022-02-21 22:51:16 +01:00
Moritz Bunkus
b489d894fe
build system: Qt6: fix plugin detection for static mingw builds 2022-02-21 22:51:15 +01:00
Moritz Bunkus
e65b7816fd
configure: preliminary support for Qt6 with MXE (mingw cross compiler) 2022-02-19 16:56:54 +01:00
Alex James
8c91bf668a
Qt 6 check: remove $(EXPORT_ARCH_ARGS) from CFLAGS
This fixes compilation with Qt 6 on macOS.
2021-07-11 15:18:13 -05:00
Moritz Bunkus
783229560f
configure: require Qt 5 or 6; add --disable-gui for disabling the GUI
This is in preparation of fixing #3137. The plan is not to use
libfile's MIME type detection but Qt's. As both mkvmerge and the GUI
need to auto-detect the MIME type, this means that the command line
applications will have to be linked against Qt's core library (but not
the GUI libraries).
2021-06-15 22:39:33 +02:00
Moritz Bunkus
7be2231690
Qt 6 check: add missing "Checking for Qt 6" message 2021-05-30 14:33:05 +02:00
Moritz Bunkus
8cf8251d6b
Qt 6 detection: try compiling & linking a test program
Prevents using the system qmake6 in cross-compilation situations.

Also cleans up the paths to `lconvert`, `moc`, `rcc` and `uic` from
the Qt 6 detection so that Qt 5 can detect their own version.

Part of the implementation of #3115.
2021-05-24 21:12:39 +02:00
Moritz Bunkus
2848178815
configure: detect & use Qt 6 if present, prefer over Qt 5
Qt 6

`configure` will look for Qt 6 first and only continue looking for Qt
5 if Qt 6 isn't found or disabled via `--disable-qt6`.

Qt 6 detection works by first looking for the `qmake6` binary. Its location
can be specified with the `--with-qmake6=…` option.

All other Qt 6 related facts (such as compiler & linker flags or the
position of the other required tools such as `lconvert`, `moc`, `rcc` and
`uic`) will be derived from the output generated by `qmake6`.

Note that at this point Qt 6 is not yet supported for the cross-compilation
build to Windows, nor is a static Qt 6 build supported yet.

Note that the command line options `--enable-static-qt`,
`--with-qt-pkg-config-modules` and `--without-qt-pkg-config` only apply to
the Qt 5 and have no effect on Qt 6.

Qt 5

The options for specifying the position of the tools (`--with-moc=…`,
`--with-rcc=…` and `--with-uic=…`) have been removed. Their position
will now be derived from the output generated by `qmake`.

General

Completely disabling the GUI now requires passing both `--disable-qt6`
and `--disable-qt` options.

Part of the implementation of #3115.
2021-05-24 20:53:09 +02:00