Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt6 LottieQt Application Won't Launch After Deployment (Windows 10)
Forum Updated to NodeBB v4.3 + New Features

Qt6 LottieQt Application Won't Launch After Deployment (Windows 10)

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
1 Posts 1 Posters 60 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tuhlnaa
    wrote on 29 Apr 2025, 09:15 last edited by tuhlnaa
    #1

    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

    1. Downloaded the DirectX Shader Compiler and added the bin/x64 directory to my system PATH
    2. 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")
            }
        }
    }
    

    937f97ce-9347-4b27-b0f9-ce32229898e0-image.png

    Any help or suggestions would be greatly appreciated.

    Thank you!

    1 Reply Last reply
    0

    1/1

    29 Apr 2025, 09:15

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved