From b78fa89cbea6a6beaaa321c88b9bbacb1c295766 Mon Sep 17 00:00:00 2001 From: Viktor Kopp Date: Thu, 8 Aug 2024 11:54:52 +0200 Subject: [PATCH] install qoffscreen plugin on windows (#510) https://github.com/COVESA/dlt-viewer/issues/508 Signed-off-by: Viktor Kopp --- build_sdk_windows_qt5_MSVC.bat | 3 +++ src/cmake/Windows.cmake | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/build_sdk_windows_qt5_MSVC.bat b/build_sdk_windows_qt5_MSVC.bat index b326229d..5dd48043 100644 --- a/build_sdk_windows_qt5_MSVC.bat +++ b/build_sdk_windows_qt5_MSVC.bat @@ -163,6 +163,9 @@ if %ERRORLEVEL% NEQ 0 GOTO ERROR_HANDLER copy %QTDIR%\plugins\platforms\qwindows.dll %DLT_VIEWER_SDK_DIR%\platforms if %ERRORLEVEL% NEQ 0 GOTO ERROR_HANDLER +copy %QTDIR%\plugins\platforms\qoffscreen.dll %DLT_VIEWER_SDK_DIR%\platforms +if %ERRORLEVEL% NEQ 0 GOTO ERROR_HANDLER + if "%QTNO%"=="5" ( copy %QTDIR%\plugins\styles\qwindowsvistastyle.dll %DLT_VIEWER_SDK_DIR%\styles if %ERRORLEVEL% NEQ 0 GOTO ERROR_HANDLER diff --git a/src/cmake/Windows.cmake b/src/cmake/Windows.cmake index 66b4dbc1..9f60bda7 100644 --- a/src/cmake/Windows.cmake +++ b/src/cmake/Windows.cmake @@ -26,6 +26,7 @@ install(FILES COMPONENT qt_libraries) install(FILES "${DLT_QT_LIB_DIR}/../plugins/platforms/qwindows.dll" + "${DLT_QT_LIB_DIR}/../plugins/platforms/qoffscreen.dll" DESTINATION "${DLT_EXECUTABLE_INSTALLATION_PATH}/platforms" COMPONENT qt_libraries) install(FILES @@ -61,4 +62,4 @@ if(INCLUDE_VC_REDIST) "${VC_REDIST_PATH}" DESTINATION "${DLT_EXECUTABLE_INSTALLATION_PATH}" COMPONENT vc_redist_x64) -endif() \ No newline at end of file +endif()