mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-25 12:13:00 +01:00
Bump to Qt 6.5.0 and use FFMPEG
FFMPEG will become default in 6.6.0 anyways and this fixes the broken rendering on osx and performs better on my AMD Vega VII on Windows
This commit is contained in:
parent
2254372be6
commit
64d2c3adb5
45
.vscode/launch.json
vendored
45
.vscode/launch.json
vendored
@ -18,16 +18,16 @@
|
|||||||
"environment": [
|
"environment": [
|
||||||
{
|
{
|
||||||
"name": "Path",
|
"name": "Path",
|
||||||
"value": "${env:Path};${workspaceFolder}\\..\\aqt\\6.4.2\\msvc2019_64\\bin\\;${workspaceFolder}\\..\\aqt\\6.4.2\\msvc2019_64\\modules\\;${workspaceFolder}\\..\\aqt\\6.4.2\\msvc2019_64\\qml\\;"
|
"value": "${env:Path};${workspaceFolder}\\..\\aqt\\6.5.0\\msvc2019_64\\bin\\;${workspaceFolder}\\..\\aqt\\6.5.0\\msvc2019_64\\modules\\;${workspaceFolder}\\..\\aqt\\6.5.0\\msvc2019_64\\qml\\;"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"type": "cppvsdbg",
|
"type": "cppvsdbg",
|
||||||
"program": "${workspaceFolder}/../build_ScreenPlay_Qt_6.4.2_MSVC_Debug/bin/ScreenPlay.exe"
|
"program": "${workspaceFolder}/../build_ScreenPlay_Qt_6.5.0_MSVC_Debug/bin/ScreenPlay.exe"
|
||||||
},
|
},
|
||||||
"osx": {
|
"osx": {
|
||||||
"MIMode": "lldb",
|
"MIMode": "lldb",
|
||||||
"program": "${workspaceFolder}/../build_ScreenPlay_Qt_6.3.2_Clang_Debug/bin/ScreenPlay.app/Contents/MacOS/ScreenPlay",
|
"program": "${workspaceFolder}/../build_ScreenPlay_Qt_6.5.0_Clang_Debug/bin/ScreenPlay.app/Contents/MacOS/ScreenPlay",
|
||||||
"type": "cppdbg"
|
"type": "lldb"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -44,16 +44,15 @@
|
|||||||
"environment": [
|
"environment": [
|
||||||
{
|
{
|
||||||
"name": "Path",
|
"name": "Path",
|
||||||
"value": "${env:Path};${workspaceFolder}\\..\\aqt\\6.4.2\\msvc2019_64\\bin\\;${workspaceFolder}\\..\\aqt\\6.4.2\\msvc2019_64\\modules\\;${workspaceFolder}\\..\\aqt\\6.4.2\\msvc2019_64\\qml\\;"
|
"value": "${env:Path};${workspaceFolder}\\..\\aqt\\6.5.0\\msvc2019_64\\bin\\;${workspaceFolder}\\..\\aqt\\6.5.0\\msvc2019_64\\modules\\;${workspaceFolder}\\..\\aqt\\6.5.0\\msvc2019_64\\qml\\;"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"type": "cppvsdbg",
|
"program": "${workspaceFolder}/../build_ScreenPlay_Qt_6.5.0_MSVC_RelWithDebInfo/bin/ScreenPlay.exe"
|
||||||
"program": "${workspaceFolder}/../build_ScreenPlay_Qt_6.4.2_MSVC_RelWithDebInfo/bin/ScreenPlay.exe"
|
|
||||||
},
|
},
|
||||||
"osx": {
|
"osx": {
|
||||||
"MIMode": "lldb",
|
"MIMode": "lldb",
|
||||||
"program": "${workspaceFolder}/../build_ScreenPlay_Qt_6.3.2_Clang_RelWithDebInfo/bin/ScreenPlay.app/Contents/MacOS/ScreenPlay",
|
"program": "${workspaceFolder}/../build_ScreenPlay_Qt_6.5.0_Clang_RelWithDebInfo/bin/ScreenPlay.app/Contents/MacOS/ScreenPlay",
|
||||||
"type": "cppdbg"
|
"type": "lldb"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -68,16 +67,16 @@
|
|||||||
"environment": [
|
"environment": [
|
||||||
{
|
{
|
||||||
"name": "Path",
|
"name": "Path",
|
||||||
"value": "${env:Path};${workspaceFolder}\\..\\aqt\\6.4.2\\msvc2019_64\\bin\\;${workspaceFolder}\\..\\aqt\\6.4.2\\msvc2019_64\\modules\\;${workspaceFolder}\\..\\aqt\\6.4.2\\msvc2019_64\\qml\\;"
|
"value": "${env:Path};${workspaceFolder}\\..\\aqt\\6.5.0\\msvc2019_64\\bin\\;${workspaceFolder}\\..\\aqt\\6.5.0\\msvc2019_64\\modules\\;${workspaceFolder}\\..\\aqt\\6.5.0\\msvc2019_64\\qml\\;"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"type": "cppvsdbg",
|
"type": "lldb",
|
||||||
"program": "${workspaceFolder}/../build_ScreenPlay_Qt_6.4.2_MSVC_Debug/bin/ScreenPlayWallpaper.exe"
|
"program": "${workspaceFolder}/../build_ScreenPlay_Qt_6.5.0_MSVC_Debug/bin/ScreenPlayWallpaper.exe"
|
||||||
},
|
},
|
||||||
"osx": {
|
"osx": {
|
||||||
"MIMode": "lldb",
|
"MIMode": "lldb",
|
||||||
"program": "${workspaceFolder}/../build_ScreenPlay_Qt_6.3.2_Clang_Debug/bin/ScreenPlayWallpaper.app/Contents/MacOS/ScreenPlayWallpaper",
|
"program": "${workspaceFolder}/../build_ScreenPlay_Qt_6.5.0_Clang_Debug/bin/ScreenPlayWallpaper.app/Contents/MacOS/ScreenPlayWallpaper",
|
||||||
"type": "cppdbg"
|
"type": "lldb"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -94,16 +93,16 @@
|
|||||||
"environment": [
|
"environment": [
|
||||||
{
|
{
|
||||||
"name": "Path",
|
"name": "Path",
|
||||||
"value": "${env:Path};${workspaceFolder}\\..\\aqt\\6.4.2\\msvc2019_64\\bin\\;${workspaceFolder}\\..\\aqt\\6.4.2\\msvc2019_64\\modules\\;${workspaceFolder}\\..\\aqt\\6.4.2\\msvc2019_64\\qml\\;"
|
"value": "${env:Path};${workspaceFolder}\\..\\aqt\\6.5.0\\msvc2019_64\\bin\\;${workspaceFolder}\\..\\aqt\\6.5.0\\msvc2019_64\\modules\\;${workspaceFolder}\\..\\aqt\\6.5.0\\msvc2019_64\\qml\\;"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"type": "cppvsdbg",
|
"type": "lldb",
|
||||||
"program": "${workspaceFolder}/../build_ScreenPlay_Qt_6.4.2_MSVC_RelWithDebInfo/bin/ScreenPlayWallpaper.exe"
|
"program": "${workspaceFolder}/../build_ScreenPlay_Qt_6.5.0_MSVC_RelWithDebInfo/bin/ScreenPlayWallpaper.exe"
|
||||||
},
|
},
|
||||||
"osx": {
|
"osx": {
|
||||||
"MIMode": "lldb",
|
"MIMode": "lldb",
|
||||||
"program": "${workspaceFolder}/../build_ScreenPlay_Qt_6.3.2_Clang_RelWithDebInfo/bin/ScreenPlayWallpaper.app/Contents/MacOS/ScreenPlayWallpaper",
|
"program": "${workspaceFolder}/../build_ScreenPlay_Qt_6.5.0_Clang_RelWithDebInfo/bin/ScreenPlayWallpaper.app/Contents/MacOS/ScreenPlayWallpaper",
|
||||||
"type": "cppdbg"
|
"type": "lldb"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -120,16 +119,16 @@
|
|||||||
"environment": [
|
"environment": [
|
||||||
{
|
{
|
||||||
"name": "Path",
|
"name": "Path",
|
||||||
"value": "${env:Path};${workspaceFolder}\\..\\aqt\\6.4.2\\msvc2019_64\\bin\\;${workspaceFolder}\\..\\aqt\\6.4.2\\msvc2019_64\\modules\\;${workspaceFolder}\\..\\aqt\\6.4.2\\msvc2019_64\\qml\\;"
|
"value": "${env:Path};${workspaceFolder}\\..\\aqt\\6.5.0\\msvc2019_64\\bin\\;${workspaceFolder}\\..\\aqt\\6.5.0\\msvc2019_64\\modules\\;${workspaceFolder}\\..\\aqt\\6.5.0\\msvc2019_64\\qml\\;"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"type": "cppvsdbg",
|
"type": "cppvsdbg",
|
||||||
"program": "${workspaceFolder}/../build_ScreenPlay_Qt_6.4.2_MSVC_Debug/bin/ScreenPlayWidget.exe"
|
"program": "${workspaceFolder}/../build_ScreenPlay_Qt_6.5.0_MSVC_Debug/bin/ScreenPlayWidget.exe"
|
||||||
},
|
},
|
||||||
"osx": {
|
"osx": {
|
||||||
"MIMode": "lldb",
|
"MIMode": "lldb",
|
||||||
"program": "${workspaceFolder}/../build_ScreenPlay_Qt_6.3.2_Clang_Debug/bin/ScreenPlayWidget.app/Contents/MacOS/ScreenPlayWidget",
|
"program": "${workspaceFolder}/../build_ScreenPlay_Qt_6.5.0_Clang_Debug/bin/ScreenPlayWidget.app/Contents/MacOS/ScreenPlayWidget",
|
||||||
"type": "cppdbg"
|
"type": "lldb"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
},
|
},
|
||||||
"environment" : {
|
"environment" : {
|
||||||
"qt_path": "${sourceDir}/../aqt",
|
"qt_path": "${sourceDir}/../aqt",
|
||||||
"qt_version": "6.4.2",
|
"qt_version": "6.5.0",
|
||||||
"VCToolsVersion": "14.34.31933",
|
"VCToolsVersion": "14.34.31933",
|
||||||
"WindowsSDKVersion" : "10.0.22621.0",
|
"WindowsSDKVersion" : "10.0.22621.0",
|
||||||
"VCArch": "x64",
|
"VCArch": "x64",
|
||||||
@ -46,24 +46,24 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "windows-debug-qt-6.4.2",
|
"name": "windows-debug-qt-6.5.0",
|
||||||
"inherits": "default-windows",
|
"inherits": "default-windows",
|
||||||
"displayName": "MSVC K3000 Qt 6.4.2 Debug",
|
"displayName": "MSVC K3000 Qt 6.5.0 Debug",
|
||||||
"binaryDir": "${sourceDir}/../build_ScreenPlay_Qt_6.4.2_MSVC_Debug",
|
"binaryDir": "${sourceDir}/../build_ScreenPlay_Qt_6.5.0_MSVC_Debug",
|
||||||
"environment": {
|
"environment": {
|
||||||
"qt_version": "6.4.2"
|
"qt_version": "6.5.0"
|
||||||
},
|
},
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"CMAKE_BUILD_TYPE": "Debug"
|
"CMAKE_BUILD_TYPE": "Debug"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "windows-relwithdebinfo-qt-6.4.2",
|
"name": "windows-relwithdebinfo-qt-6.5.0",
|
||||||
"inherits": "default-windows",
|
"inherits": "default-windows",
|
||||||
"displayName": "MSVC K3000 Qt 6.4.2 RelWithDebInfo",
|
"displayName": "MSVC K3000 Qt 6.5.0 RelWithDebInfo",
|
||||||
"binaryDir": "${sourceDir}/../build_ScreenPlay_Qt_6.4.2_MSVC_RelWithDebInfo",
|
"binaryDir": "${sourceDir}/../build_ScreenPlay_Qt_6.5.0_MSVC_RelWithDebInfo",
|
||||||
"environment": {
|
"environment": {
|
||||||
"qt_version": "6.4.2"
|
"qt_version": "6.5.0"
|
||||||
},
|
},
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
|
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
|
||||||
@ -74,7 +74,7 @@
|
|||||||
"displayName": "ScreenPlay 64bit Debug Linux",
|
"displayName": "ScreenPlay 64bit Debug Linux",
|
||||||
"description": "Linux only!",
|
"description": "Linux only!",
|
||||||
"generator": "Ninja",
|
"generator": "Ninja",
|
||||||
"binaryDir": "${sourceDir}/../build_ScreenPlay_Qt_6.4.2_GCC_Debug",
|
"binaryDir": "${sourceDir}/../build_ScreenPlay_Qt_6.5.0_GCC_Debug",
|
||||||
"condition": {
|
"condition": {
|
||||||
"type": "equals",
|
"type": "equals",
|
||||||
"lhs": "${hostSystemName}",
|
"lhs": "${hostSystemName}",
|
||||||
@ -91,7 +91,7 @@
|
|||||||
"CMAKE_CXX_COMPILER": "g++",
|
"CMAKE_CXX_COMPILER": "g++",
|
||||||
"CMAKE_C_COMPILER": "gcc",
|
"CMAKE_C_COMPILER": "gcc",
|
||||||
"CMAKE_BUILD_TYPE": "Debug",
|
"CMAKE_BUILD_TYPE": "Debug",
|
||||||
"CMAKE_PREFIX_PATH": "$env{qt_path}/6.4.2/gcc_64",
|
"CMAKE_PREFIX_PATH": "$env{qt_path}/6.5.0/gcc_64",
|
||||||
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/../vcpkg/scripts/buildsystems/vcpkg.cmake",
|
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/../vcpkg/scripts/buildsystems/vcpkg.cmake",
|
||||||
"VCPKG_TARGET_TRIPLET": "x64-linux"
|
"VCPKG_TARGET_TRIPLET": "x64-linux"
|
||||||
}
|
}
|
||||||
@ -100,7 +100,7 @@
|
|||||||
"name": "linux-relwithdebinfo",
|
"name": "linux-relwithdebinfo",
|
||||||
"displayName": "ScreenPlay 64bit RelWithDebInfo Linux",
|
"displayName": "ScreenPlay 64bit RelWithDebInfo Linux",
|
||||||
"inherits":"linux-debug",
|
"inherits":"linux-debug",
|
||||||
"binaryDir": "${sourceDir}/../build_ScreenPlay_Qt_6.4.2_GCC_RelWithDebInfo",
|
"binaryDir": "${sourceDir}/../build_ScreenPlay_Qt_6.5.0_GCC_RelWithDebInfo",
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
|
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
|
||||||
}
|
}
|
||||||
@ -110,7 +110,7 @@
|
|||||||
"displayName": "ScreenPlay 64bit Debug osx",
|
"displayName": "ScreenPlay 64bit Debug osx",
|
||||||
"description": "Osx only!",
|
"description": "Osx only!",
|
||||||
"generator": "Ninja",
|
"generator": "Ninja",
|
||||||
"binaryDir": "${sourceDir}/../build_ScreenPlay_Qt_6.3.2_Clang_Debug",
|
"binaryDir": "${sourceDir}/../build_ScreenPlay_Qt_6.5.0_Clang_Debug",
|
||||||
"condition": {
|
"condition": {
|
||||||
"type": "equals",
|
"type": "equals",
|
||||||
"lhs": "${hostSystemName}",
|
"lhs": "${hostSystemName}",
|
||||||
@ -127,7 +127,7 @@
|
|||||||
"CMAKE_CXX_COMPILER": "clang++",
|
"CMAKE_CXX_COMPILER": "clang++",
|
||||||
"CMAKE_C_COMPILER": "clang",
|
"CMAKE_C_COMPILER": "clang",
|
||||||
"CMAKE_BUILD_TYPE": "Debug",
|
"CMAKE_BUILD_TYPE": "Debug",
|
||||||
"CMAKE_PREFIX_PATH": "$env{qt_path}/6.3.2/macos",
|
"CMAKE_PREFIX_PATH": "$env{qt_path}/6.5.0/macos",
|
||||||
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/../vcpkg/scripts/buildsystems/vcpkg.cmake"
|
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/../vcpkg/scripts/buildsystems/vcpkg.cmake"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -135,7 +135,7 @@
|
|||||||
"name": "osx-relwithdebinfo",
|
"name": "osx-relwithdebinfo",
|
||||||
"displayName": "ScreenPlay 64bit RelWithDebInfo osx",
|
"displayName": "ScreenPlay 64bit RelWithDebInfo osx",
|
||||||
"inherits": "osx-debug",
|
"inherits": "osx-debug",
|
||||||
"binaryDir": "${sourceDir}/../build_ScreenPlay_Qt_6.3.2_Clang_RelWithDebInfo",
|
"binaryDir": "${sourceDir}/../build_ScreenPlay_Qt_6.5.0_Clang_RelWithDebInfo",
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
|
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,7 @@ Q_IMPORT_QML_PLUGIN(ScreenPlayWorkshopPlugin)
|
|||||||
|
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
qputenv("QT_MEDIA_BACKEND","ffmpeg");
|
||||||
#if defined(Q_OS_WIN)
|
#if defined(Q_OS_WIN)
|
||||||
// https://bugreports.qt.io/browse/QTBUG-72028
|
// https://bugreports.qt.io/browse/QTBUG-72028
|
||||||
qputenv("QT_QPA_PLATFORM", "windows:darkmode=2");
|
qputenv("QT_QPA_PLATFORM", "windows:darkmode=2");
|
||||||
|
@ -20,7 +20,8 @@ Q_IMPORT_QML_PLUGIN(ScreenPlaySysInfoPlugin)
|
|||||||
Q_IMPORT_QML_PLUGIN(ScreenPlayWeatherPlugin)
|
Q_IMPORT_QML_PLUGIN(ScreenPlayWeatherPlugin)
|
||||||
|
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
qputenv("QT_MEDIA_BACKEND","ffmpeg");
|
||||||
QApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
|
QApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
|
||||||
QtWebEngineQuick::initialize();
|
QtWebEngineQuick::initialize();
|
||||||
|
|
||||||
@ -42,7 +43,7 @@ int main(int argc, char* argv[])
|
|||||||
if (argumentList.length() == 1) {
|
if (argumentList.length() == 1) {
|
||||||
window.setActiveScreensList({ 0 });
|
window.setActiveScreensList({ 0 });
|
||||||
// window.setProjectPath("test");
|
// window.setProjectPath("test");
|
||||||
window.setProjectPath("C:/Program Files (x86)/Steam/steamapps/workshop/content/672870/1958068741");
|
window.setProjectPath("C:/Program Files (x86)/Steam/steamapps/workshop/content/672870/19112022140605-Horde 1980");
|
||||||
window.setAppID("test");
|
window.setAppID("test");
|
||||||
window.setVolume(1);
|
window.setVolume(1);
|
||||||
window.setFillMode("fill");
|
window.setFillMode("fill");
|
||||||
|
@ -14,6 +14,7 @@ Q_IMPORT_QML_PLUGIN(ScreenPlayWeatherPlugin)
|
|||||||
|
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
qputenv("QT_MEDIA_BACKEND","ffmpeg");
|
||||||
QtWebEngineQuick::initialize();
|
QtWebEngineQuick::initialize();
|
||||||
QApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
|
QApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ SCREENPLAY_VERSION = "0.15.0-RC4"
|
|||||||
|
|
||||||
|
|
||||||
QT_PATH = Path.cwd().parent.parent.joinpath("aqt")
|
QT_PATH = Path.cwd().parent.parent.joinpath("aqt")
|
||||||
QT_VERSION = "6.4.2" if sys.platform != "darwin" else "6.3.2"
|
QT_VERSION = "6.5.0"
|
||||||
QT_BIN_PATH = QT_PATH.joinpath(f"{QT_VERSION}/{QT_PLATFORM}/bin")
|
QT_BIN_PATH = QT_PATH.joinpath(f"{QT_VERSION}/{QT_PLATFORM}/bin")
|
||||||
QT_TOOLS_PATH = QT_PATH.joinpath("Tools/")
|
QT_TOOLS_PATH = QT_PATH.joinpath("Tools/")
|
||||||
QT_IFW_VERSION = "4.5"
|
QT_IFW_VERSION = "4.5"
|
||||||
|
Loading…
Reference in New Issue
Block a user