Qt6 LottieQt Application Won't Launch After Deployment (Windows 10)
-
wrote on 29 Apr 2025, 09:15 last edited by tuhlnaa
Environment
- Operating System: Windows 10
- Qt Version: 6.9.0 msvc2022_64
- Compiler: MSVC 2022 (64-bit)
- Application Type: QML application using Qt.labs.lottieqt 1.0
Issue Description
I'm developing a Qt QML application that uses LottieQt for animations. The application builds successfully and runs fine within Qt Creator. However, when I deploy it using windeployqt and try to run the standalone executable, the application window does not open. There are no visible error messages.
Initially, windeployqt showed the following warning:
Warning: Cannot find any version of the dxcompiler.dll and dxil.dll.
I've addressed this by downloading the DirectX Shader Compiler and adding the x64 directory containing dxcompiler.dll and dxil.dll to my system PATH. This made the warning disappear, but the application still won't launch after deployment.
What I've Tried
- Downloaded the DirectX Shader Compiler and added the bin/x64 directory to my system PATH
- Confirmed that the application works fine when I remove the LottieQt code
Deployment Command
windeployqt --dir "D:\Qt-exe-distribution-test" appuntitled1.exe -qmldir C:\Qt\6.9.0\msvc2022_64\qml
Code
import QtQuick import QtQuick.Effects import QtQuick.Controls import QtQuick.Controls.Material import QtQuick.Layouts import Qt.labs.platform // For FileDialog import Qt.labs.lottieqt 1.0 Window { width: 640 height: 480 visible: true title: qsTr("Hello World") // Other UI components... LottieAnimation { quality: LottieAnimation.MediumQuality source: "qrc:/resources/circle-animation.json" loops: LottieAnimation.Infinite autoPlay: true onStatusChanged: { if (status === LottieAnimation.Ready) { // any activities needed before // playing starts go here gotoAndPlay(startFrame); } } onFinished: { console.log("Finished playing") } } }
Any help or suggestions would be greatly appreciated.
Thank you!
1/1