From 5e9d796833634d8f77d930dbdeebdc7e5017ff17 Mon Sep 17 00:00:00 2001 From: Gary Wang Date: Sat, 27 May 2023 16:36:51 +0800 Subject: [PATCH] chore: require Qt 6.5.1 Related: QTBUG-112707 --- CMakeLists.txt | 2 +- README.md | 14 +------------- appveyor.yml | 5 +---- 3 files changed, 3 insertions(+), 18 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d061e78..7a2f2d8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,7 @@ set(CMAKE_AUTORCC ON) set(CMAKE_CXX_STANDARD 17) 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) if (PKG_CONFIG_FOUND) diff --git a/README.md b/README.md index c0774a1..169a6a5 100644 --- a/README.md +++ b/README.md @@ -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. -## 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 Current state, we need: - `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. - `pkg-config` to find the installed taglib. diff --git a/appveyor.yml b/appveyor.yml index ad0bdc6..db29743 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -6,7 +6,7 @@ environment: PKG_CONFIG_PATH: C:\projects\pir\lib\pkgconfig matrix: - 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 install: @@ -42,9 +42,6 @@ build_script: - cd bin - 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% -# 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.. - tree /f