chore: require Qt 6.5.1

Related: QTBUG-112707
This commit is contained in:
Gary Wang 2023-05-27 16:36:51 +08:00
parent 7744d3bf2d
commit 5e9d796833
No known key found for this signature in database
GPG Key ID: 5D30A4F15EA78760
3 changed files with 3 additions and 18 deletions

View File

@ -13,7 +13,7 @@ set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(Qt6 6.4 COMPONENTS Widgets Multimedia Network LinguistTools REQUIRED) find_package(Qt6 6.5.1 COMPONENTS Widgets Multimedia Network LinguistTools REQUIRED)
find_package(PkgConfig) find_package(PkgConfig)
if (PKG_CONFIG_FOUND) if (PKG_CONFIG_FOUND)

View File

@ -2,24 +2,12 @@ _**This is a not ready to use, toy project**_
Since **I** just need a simple player which *just works* right now, so I did many things in a dirty way. Don't feel so weird if you saw something I did in this project is using a bad approach. Since **I** just need a simple player which *just works* right now, so I did many things in a dirty way. Don't feel so weird if you saw something I did in this project is using a bad approach.
## Note
> The Qt Multimedia APIs build upon the multimedia framework of the underlying platform. This can mean that support for various codecs or containers can vary between machines, depending on what the end user has installed.
Current implementation use all stuff from Qt which include the multimedia playback support, which means user may need to install codecs by themself. There is a link provided by QtWiki about [Qt 5.13 Multimedia Backends](https://wiki.qt.io/Qt_5.13_Multimedia_Backends), and here is a chart about some other things which might be helpful.
Platform|Built-in support|Probably useful 3rd-party codecs
---|---|---
Windows|[Supported Formats In DirectsShow](https://msdn.microsoft.com/en-us/library/windows/desktop/dd407173%28v=vs.85%29.aspx)|[Xiph.org: Directshow Filters for Ogg Vorbis, Speex, Theora, FLAC, and WebM](https://www.xiph.org/dshow/)
macOS|[Media formats supported by QuickTime Player](https://support.apple.com/en-us/HT201290)|Sorry, I don't know...
Unix/Linux|depends on [GStreamer](https://gstreamer.freedesktop.org/) plugins which user installed|[GStreamer Plug-ins: gst-plugins-base, gst-plugins-good, gst-plugins-ugly, gst-plugins-bad](https://gstreamer.freedesktop.org/documentation/additional/splitup.html?gi-language=c)
## Build ## Build
Current state, we need: Current state, we need:
- `cmake` as the build system. - `cmake` as the build system.
- `qt5` with `qt5-multimedia` since we use it for playback. - `qt6` with `qt6-multimedia` since we use it for playback.
- `taglib` to get the audio file properties. - `taglib` to get the audio file properties.
- `pkg-config` to find the installed taglib. - `pkg-config` to find the installed taglib.

View File

@ -6,7 +6,7 @@ environment:
PKG_CONFIG_PATH: C:\projects\pir\lib\pkgconfig PKG_CONFIG_PATH: C:\projects\pir\lib\pkgconfig
matrix: matrix:
- build_name: mingw1120_64_qt6_4 - build_name: mingw1120_64_qt6_4
QTPATH: C:\Qt\6.4\mingw_64 QTPATH: C:\Qt\6.5\mingw_64
MINGW64: C:\Qt\Tools\mingw1120_64 MINGW64: C:\Qt\Tools\mingw1120_64
install: install:
@ -42,9 +42,6 @@ build_script:
- cd bin - cd bin
- windeployqt --verbose=2 --no-quick-import --no-translations --no-opengl-sw --compiler-runtime --no-system-d3d-compiler --multimedia .\pmusic.exe - windeployqt --verbose=2 --no-quick-import --no-translations --no-opengl-sw --compiler-runtime --no-system-d3d-compiler --multimedia .\pmusic.exe
- xcopy /s %PACKAGE_INSTALL_ROOT%\bin %cd% - xcopy /s %PACKAGE_INSTALL_ROOT%\bin %cd%
# don't know why windeployqt doesn't copy the multimedia plugin dir...
- mkdir multimedia
- copy %QTPATH%\plugins\multimedia\windowsmediaplugin.dll multimedia\windowsmediaplugin.dll
# for debug.. # for debug..
- tree /f - tree /f