Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. My built and deployed Qt application does not start.
Forum Updated to NodeBB v4.3 + New Features

My built and deployed Qt application does not start.

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 4 Posters 359 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.
  • K Offline
    K Offline
    k_miya
    wrote last edited by
    #1

    After building and deploying the executable file, nothing happened when I ran it.
    Even when launching the executable file from the command prompt, nothing happened.

    When I redirected the standard output after execution to a file,
    only the output from C++'s std::cout was recorded.


    I built and deployed the Qt application in the following environment.
    (Since Qt installed via vcpkg did not work properly, I am using Qt installed via the Qt installer.)

    • OS: windows 11
    • Compiler : cl
    • terminal : Developer Command Prompt for VS 2022 (x64)
    • Build System : CMake 3.22
    • Generator : Ninja 1.13.1
    • Qt version : 6.9.3

    The source code is reused from Qt Academy courses.

    • How to Expose C++ to QML?
      https://github.com/qt-learning/how-to-expose-c-to-qml

    Some changes have been made to the source code.

    main.cpp

    #include <QGuiApplication>
    #include <QQmlApplicationEngine>
    #include <QDebug>
    #include <iostream>
    
    int main(int argc, char *argv[])
    {
        // https://stackoverflow.com/a/25266269
        // QCoreApplication::addLibraryPath("./");
    
        std::cout << "--- Standard C++ main() started ---" << std::endl;
        std::cout.flush();
    
        qDebug() << "=== main() started ===";
        try
        {
            qDebug() << "Creating QGuiApplication...";
            QGuiApplication app(argc, argv);
            qDebug() << "QGuiApplication created successfully.";
    
            qDebug() << "Creating QQmlApplicationEngine...";
            QQmlApplicationEngine engine;
            qDebug() << "QQmlApplicationEngine created successfully.";
    
            const QUrl url(u"qrc:/QmlCppExample/main.qml"_qs);
            qDebug() << "Loading QML file:" << url.toString();
    
            QObject::connect(&engine, &QQmlApplicationEngine::objectCreated, &app, [url](QObject *obj, const QUrl &objUrl)
                             {
                if (!obj && url == objUrl) {
                    qDebug() << "ERROR: Failed to create QML object!";
                    QCoreApplication::exit(-1);  
                } else if (obj) {
                    qDebug() << "QML root object created successfully.";
                } }, Qt::QueuedConnection);
    
            // catch QML Warnings and Errors
            QObject::connect(&engine, &QQmlApplicationEngine::warnings,
                             [](const QList<QQmlError> &warnings)
                             {
                                 for (const QQmlError &e : warnings)
                                 {
                                     qDebug() << "QML WARNING:" << e.toString();
                                 }
                             });
    
            engine.load(url);
    
            qDebug() << "Entering event loop with app.exec()...";
            int result = app.exec();
            qDebug() << "app.exec() returned with code:" << result;
            return result;
        }
        catch (const std::exception &e)
        {
            qDebug() << "STD EXCEPTION:" << e.what();
        }
        catch (...)
        {
            qDebug() << "UNKNOWN EXCEPTION OCCURRED";
        }
    
        return -1;
    }
    
    

    CMakeLists.txt

    cmake_minimum_required(VERSION 3.16)
    
    project(qml-cpp-example VERSION 0.1 LANGUAGES CXX)
    
    set(CMAKE_AUTOMOC ON)
    set(CMAKE_CXX_STANDARD 17)
    set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
    
    find_package(Qt6 COMPONENTS Quick REQUIRED)
    qt_standard_project_setup()
    
    # QTP0001ポリシーをNEWに設定し、警告を抑制。
    qt_policy(SET QTP0001 NEW)
    
    qt_add_executable(appqml-cpp-example
        main.cpp
    )
    
    qt_add_qml_module(appqml-cpp-example
        URI QmlCppExample
        VERSION 1.0
        QML_FILES main.qml 
        RESOURCES assets/circular-saw.gif assets/built-with-qt-badge.png
    )
    
    set_target_properties(appqml-cpp-example PROPERTIES
        MACOSX_BUNDLE_GUI_IDENTIFIER my.example.com
        MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
        MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
        MACOSX_BUNDLE TRUE
        WIN32_EXECUTABLE TRUE
    )
    
    target_link_libraries(appqml-cpp-example
        PRIVATE Qt6::Quick)
    
    # target_link_libraries(appqml-cpp-example
    #     PRIVATE Qt6::Core Qt6::Gui Qt6::Qml Qt6::Quick)
    
    
    ####################### 
    # install settings
    #######################
    install(TARGETS appqml-cpp-example
        BUNDLE DESTINATION .
        RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
        LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
    )
    
    # Qt deploy setting
    qt_generate_deploy_qml_app_script(
        TARGET appqml-cpp-example
        OUTPUT_SCRIPT deploy_script
        MACOS_BUNDLE_POST_BUILD
        NO_UNSUPPORTED_PLATFORM_ERROR
        DEPLOY_USER_QML_MODULES_ON_UNSUPPORTED_PLATFORM
        DEPLOY_TOOL_OPTIONS ${deploy_tool_options_arg}
    )
    
    message(STATUS "--")
    message(STATUS "deploy_script :" ${deploy_script})
    message(STATUS "--")
    
    install(SCRIPT ${deploy_script})
    
    

    CMakePresets.json

    {
      "version": 2,
      "configurePresets": [
        {
          "name": "vcpkg-x64-windows-debug-base",
          "generator": "Ninja",
          "binaryDir": "${sourceDir}/build/debug",
          "cacheVariables": {
            "CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
            "CMAKE_PREFIX_PATH": "$env{VCPKG_ROOT}/installed/x64-windows/share/Qt6",
            "CMAKE_CXX_COMPILER": "cl",
            "CMAKE_INSTALL_PREFIX": {
              "type": "PATH",
              "value": "${sourceDir}/install/debug"
            },
            "CMAKE_BUILD_TYPE": "Debug"
          },
          "hidden": true
        },
        {
          "name": "vcpkg-x64-windows-release-base",
          "generator": "Ninja",
          "binaryDir": "${sourceDir}/build/release",
          "cacheVariables": {
            "CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
            "CMAKE_PREFIX_PATH": "$env{VCPKG_ROOT}/installed/x64-windows/share/Qt6",
            "CMAKE_CXX_COMPILER": "cl",
            "CMAKE_INSTALL_PREFIX": {
              "type": "PATH",
              "value": "${sourceDir}/install/release"
            },
            "CMAKE_BUILD_TYPE": "Release"
          },
          "hidden": true
        },
        {
          "name": "msvc-x64-debug-base",
          "generator": "Ninja",
          "binaryDir": "${sourceDir}/build/debug",
          "cacheVariables": {
            "CMAKE_CXX_COMPILER": "cl",
            "CMAKE_INSTALL_PREFIX": {
              "type": "PATH",
              "value": "${sourceDir}/install/debug"
            },
            "CMAKE_BUILD_TYPE": "Debug"
          },
          "hidden": true
        },
        {
          "name": "msvc-x64-release-base",
          "generator": "Ninja",
          "binaryDir": "${sourceDir}/build/release",
          "cacheVariables": {
            "CMAKE_CXX_COMPILER": "cl",
            "CMAKE_INSTALL_PREFIX": {
              "type": "PATH",
              "value": "${sourceDir}/install/release"
            },
            "CMAKE_BUILD_TYPE": "Release"
          },
          "hidden": true
        }
      ]
    }
    
    

    CMakeUserPresets.json

    {
      "version": 2,
      "configurePresets": [
        {
          "name": "vcpkg-x64-windows-debug",
          "inherits": "vcpkg-x64-windows-debug-base",
          "environment": {
            "VCPKG_ROOT": "D:\\vcpkg"
          }
        },
        {
          "name": "vcpkg-x64-windows-release",
          "inherits": "vcpkg-x64-windows-release-base",
          "environment": {
            "VCPKG_ROOT": "D:\\vcpkg"
          }
        },
        {
          "name": "msvc-x64-debug",
          "inherits" : "msvc-x64-debug-base",
          "cacheVariables": {
            "CMAKE_PREFIX_PATH": "D:\\Qt\\6.9.3\\msvc2022_64"
          }
        },
        {
          "name": "msvc-x64-release",
          "inherits" : "msvc-x64-release-base",
          "cacheVariables": {
            "CMAKE_PREFIX_PATH": "D:\\Qt\\6.9.3\\msvc2022_64"
          }
        }
      ]
    }
    
    

    The build procedure is as follows:

    • Launch Developer Command Prompt for VS 2022 (x64).
    • cmake configure
    cmake --preset msvc-x64-debug
    
    • cmake build and install
    cmake --build build\debug --target install
    

    Launching the Executable File

    Launch the executable file from the following path using the Command Prompt.

    > install\debug\bin\appqml-cpp-example.exe
    
    # Nothing happens and it ends.
    

    When I attempted to redirect to a file, only the following was output.

    > install\debug\bin\appqml-cpp-example.exe > log.txt 2>&1
    
    # log.txt
    --- Standard C++ main() started ---
    
    1 Reply Last reply
    0
    • W Offline
      W Offline
      Wladimir Leuschner
      wrote last edited by
      #2

      With windeployqt there is a utility with the installation of Qt to help deploying apps. There is no need to write an own deployment script. The documentation for the usage of the windeployqt tool can be found at https://doc.qt.io/qt-6/windows-deployment.html

      B K 2 Replies Last reply
      1
      • W Wladimir Leuschner

        With windeployqt there is a utility with the installation of Qt to help deploying apps. There is no need to write an own deployment script. The documentation for the usage of the windeployqt tool can be found at https://doc.qt.io/qt-6/windows-deployment.html

        B Offline
        B Offline
        Bonnie
        wrote last edited by Bonnie
        #3

        @Wladimir-Leuschner Well, actually qt_generate_deploy_qml_app_script in cmake will automatically call windeployqt.

        @k_miya You can also post your cmake build output, it should show how windeployqt runs and what files it copies.

        @k_miya said in My built and deployed Qt application does not start.:

        When I attempted to redirect to a file, only the following was output.

        This doesn't prove the application does not start. Default qDebug in a Qt GUI application does not write to stdout/stderr so even the application runs normally you won't see them in the log, only cout lines will.

        [Added]
        I just tried your main.cpp and CMakeLists.txt, this line is the problem

        qt_policy(SET QTP0001 NEW)

        I don't know why but it seems to disable the qrc system and make the qml can't be read by the application.
        You should find something that can start and debug an application, for example I use QtCreator to do that, if you haven't installed it you can also use WinDbg.
        I start the exe by QtCreator or WinDbg and can see output telling me the qml cannot be found.

        JKSHJ 1 Reply Last reply
        1
        • W Wladimir Leuschner

          With windeployqt there is a utility with the installation of Qt to help deploying apps. There is no need to write an own deployment script. The documentation for the usage of the windeployqt tool can be found at https://doc.qt.io/qt-6/windows-deployment.html

          K Offline
          K Offline
          k_miya
          wrote last edited by
          #4

          @Wladimir-Leuschner
          Thank you for your post.
          I agree with what @Bonnie is saying.

          I would like to avoid running windeploy manually and just execute the cmake command.
          I used the following article as a reference for the qt_generate_deploy_qml_app_script in CMakeLists.txt.
          https://www.qt.io/blog/cmake-deployment-api


          @Bonnie
          Thank you for actually trying out the code.

          qt_policy(SET QTP0001 NEW)
          

          When I ran the command cmake --preset msvc-x64-debug,
          a warning message appeared, so I added this line to CMakeLists.txt to suppress it.
          I will comment out the relevant section in CMakeLists.txt and try building and deploying.

          I used vscode to write the code, but I would also like to try Qt Creator.

          1 Reply Last reply
          0
          • B Bonnie

            @Wladimir-Leuschner Well, actually qt_generate_deploy_qml_app_script in cmake will automatically call windeployqt.

            @k_miya You can also post your cmake build output, it should show how windeployqt runs and what files it copies.

            @k_miya said in My built and deployed Qt application does not start.:

            When I attempted to redirect to a file, only the following was output.

            This doesn't prove the application does not start. Default qDebug in a Qt GUI application does not write to stdout/stderr so even the application runs normally you won't see them in the log, only cout lines will.

            [Added]
            I just tried your main.cpp and CMakeLists.txt, this line is the problem

            qt_policy(SET QTP0001 NEW)

            I don't know why but it seems to disable the qrc system and make the qml can't be read by the application.
            You should find something that can start and debug an application, for example I use QtCreator to do that, if you haven't installed it you can also use WinDbg.
            I start the exe by QtCreator or WinDbg and can see output telling me the qml cannot be found.

            JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote last edited by JKSH
            #5

            @Bonnie said in My built and deployed Qt application does not start.:

            this line is the problem

            qt_policy(SET QTP0001 NEW)

            I don't know why but it seems to disable the qrc system and make the qml can't be read by the application.

            That policy doesn't disable the qrc system. Rather, it puts QML modules under a new standard location (described at https://www.qt.io/blog/whats-new-for-qml-modules-in-6.5 )

            @k_miya said in My built and deployed Qt application does not start.:

                const QUrl url(u"qrc:/QmlCppExample/main.qml"_qs);
            

            With the QTP0001 policy, the URL is now qrc:/qt/qml/QmlCppExample/main.qml.

            a warning message appeared, so I added this line to CMakeLists.txt to suppress it.
            I will comment out the relevant section in CMakeLists.txt and try building and deploying.

            The current recommended approach is:

            1. Change qt_standard_project_setup() to qt_standard_project_setup(6.5) (this has the same effect as writing "qt_policy(SET QTP0001 NEW)")
            2. Rename the file from main.qml to Main.qml ('m' -> 'M')
            3. Replace engine.load(url); with engine.loadFromModule("QmlCppExample", "Main"); (so that you only need to know the module name, you don't need to know the URL)

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            1 Reply Last reply
            0
            • K Offline
              K Offline
              k_miya
              wrote last edited by
              #6

              I made the following changes to each file:

              CMakeLists.txt

              • Deleted qt_policy(SET QTP0001 NEW)
              • Added REQUIRES 6.5 to the qt_standard_project_setup argument

              main.cpp

              • Added using namespace Qt::Literals::StringLiterals; after include.
              • Changed url(u"qrc:/QmlCppExample/main.qml"_qs) to url("qrc:/qt/qml/QmlCppExample/main.qml"_s)
                • For this, I referred to the following: https://www.qt.io/blog/whats-new-for-qml-modules-in-6.5

              Console log for cmake configure

              > cmake --preset msvc-x64-debug  
              Preset CMake variables:
              
                CMAKE_BUILD_TYPE="Debug"
                CMAKE_CXX_COMPILER="cl"
                CMAKE_INSTALL_PREFIX:PATH="E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/install/debug"
                CMAKE_PREFIX_PATH="D:\Qt\6.9.3\msvc2022_64"
              
              -- The CXX compiler identification is MSVC 19.38.33134.0
              -- Detecting CXX compiler ABI info
              -- Detecting CXX compiler ABI info - done
              -- Check for working CXX compiler: D:/ProgramFiles/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe - skipped
              -- Detecting CXX compile features
              -- Detecting CXX compile features - done
              -- Looking for C++ include pthread.h
              -- Looking for C++ include pthread.h - not found
              -- Found Threads: TRUE  
              -- Performing Test HAVE_STDATOMIC
              -- Performing Test HAVE_STDATOMIC - Success
              -- Found WrapAtomic: TRUE  
              -- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR) 
              -- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR) 
              -- --
              -- deploy_script :E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/build/debug/.qt/deploy_qml_app_appqml_cpp_example_f260af503d.cmake
              -- --
              -- Configuring done
              -- Generating done
              -- Build files have been written to: E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/build/debug
              

              Console log for cmake build and install

              > cmake --build build\debug --target install 
              [19/20] Install the project...-- Install configuration: "Debug"
              -- Installing: E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/install/debug/bin/appqml-cpp-example.exe
              -- Installing: E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/install/debug/qml/QtQuick/qmldir
              -- Installing: E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/install/debug/qml/QtQuick/qtquick2plugind.dll
              -- Installing: E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/install/debug/qml/QtQml/qmldir
              -- Installing: E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/install/debug/qml/QtQml/qmlplugind.dll
              -- Installing: E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/install/debug/qml/QtQml/Models/qmldir
              -- Installing: E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/install/debug/qml/QtQml/Models/modelsplugind.dll
              -- Installing: E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/install/debug/qml/QtQml/WorkerScript/qmldir
              -- Installing: E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/install/debug/qml/QtQml/WorkerScript/workerscriptplugind.dll
              -- Installing: E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/install/debug/qml/QtQuick/Controls/Basic/qmldir
              -- Installing: E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/install/debug/qml/QtQuick/Controls/Basic/qtquickcontrols2basicstyleplugind.dll
              -- Installing: E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/install/debug/qml/QtQuick/Templates/qmldir
              -- Installing: E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/install/debug/qml/QtQuick/Templates/qtquicktemplates2plugind.dll
              -- Installing: E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/install/debug/qml/QtQuick/Controls/impl/qmldir
              -- Installing: E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/install/debug/qml/QtQuick/Controls/impl/qtquickcontrols2implplugind.dll
              -- Installing: E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/install/debug/qml/QtQuick/Controls/Basic/impl/qmldir
              -- Installing: E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/install/debug/qml/QtQuick/Controls/Basic/impl/qtquickcontrols2basicstyleimplplugind.dll
              -- Installing: E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/install/debug/qml/QtQuick/Shapes/qmldir
              -- Installing: E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/install/debug/qml/QtQuick/Shapes/qmlshapesplugind.dll
              -- Installing: E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/install/debug/qml/Qt/labs/qmlmodels/qmldir
              -- Installing: E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/install/debug/qml/Qt/labs/qmlmodels/labsmodelsplugind.dll
              -- Writing E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/install/debug/bin/qt.conf
              -- Running Qt deploy tool for E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/build/debug/appqml-cpp-example.exe in working directory 'E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/install/debug'
              'D:/Qt/6.9.3/msvc2022_64/bin/windeployqt.exe' 'E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/build/debug/appqml-cpp-example.exe' '--dir' '.' '--libdir' 'bin' '--plugindir' 'plugins' '--qml-deploy-dir' 'qml' '--translationdir' 'translations' '--force' '--qtpaths' 'D:/Qt/6.9.3/msvc2022_64/bin/qtpaths6.exe' 'qml/QtQuick/qtquick2plugind.dll' 'qml/QtQml/qmlplugind.dll' 'qml/QtQml/Models/modelsplugind.dll' 'qml/QtQml/WorkerScript/workerscriptplugind.dll' 'qml/QtQuick/Controls/Basic/qtquickcontrols2basicstyleplugind.dll' 'qml/QtQuick/Templates/qtquicktemplates2plugind.dll' 'qml/QtQuick/Controls/impl/qtquickcontrols2implplugind.dll' 'qml/QtQuick/Controls/Basic/impl/qtquickcontrols2basicstyleimplplugind.dll' 'qml/QtQuick/Shapes/qmlshapesplugind.dll' 'qml/Qt/labs/qmlmodels/labsmodelsplugind.dll'
              E:\work\024_Qt\QtAcademy\how-to-expose-c-to-qml\build\debug\appqml-cpp-example.exe 64 bit, debug executable [QML]
              Adding in plugin type generic for module: Qt6Gui
              Adding in plugin type iconengines for module: Qt6Gui
              Adding Qt6Svg for qsvgicond.dll from plugin type: iconengines
              Adding in plugin type imageformats for module: Qt6Gui
              Adding in plugin type networkinformation for module: Qt6Network
              Adding in plugin type platforms for module: Qt6Gui
              Adding in plugin type qmltooling for module: Qt6Qml
              Adding in plugin type tls for module: Qt6Network
              Skipping plugin qopensslbackendd.dll. Use -force-openssl or specify -openssl-root if you want to use it.
              Direct dependencies: Qt6Core Qt6Gui Qt6LabsQmlModels Qt6Network Qt6OpenGL Qt6Qml Qt6QmlMeta Qt6QmlModels Qt6QmlWorkerScript Qt6Quick Qt6QuickControls2 Qt6QuickControls2Basic Qt6QuickControls2BasicStyleImpl Qt6QuickControls2Impl Qt6QuickShapes Qt6QuickTemplates2
              All dependencies   : Qt6Core Qt6Gui Qt6LabsQmlModels Qt6Network Qt6OpenGL Qt6Qml Qt6QmlMeta Qt6QmlModels Qt6QmlWorkerScript Qt6Quick Qt6QuickControls2 Qt6QuickControls2Basic Qt6QuickControls2BasicStyleImpl Qt6QuickControls2Impl Qt6QuickShapes Qt6QuickTemplates2
              To be deployed     : Qt6Core Qt6Gui Qt6LabsQmlModels Qt6Network Qt6OpenGL Qt6Qml Qt6QmlMeta Qt6QmlModels Qt6QmlWorkerScript Qt6Quick Qt6QuickControls2 Qt6QuickControls2Basic Qt6QuickControls2BasicStyleImpl Qt6QuickControls2Impl Qt6QuickShapes Qt6QuickTemplates2 Qt6Svg
              Updating Qt6Cored.dll.
              Updating Qt6Guid.dll.
              Updating Qt6LabsQmlModelsd.dll.
              Updating Qt6Networkd.dll.
              Updating Qt6OpenGLd.dll.
              Updating Qt6Qmld.dll.
              Updating Qt6QmlMetad.dll.
              Updating Qt6QmlModelsd.dll.
              Updating Qt6QmlWorkerScriptd.dll.
              Updating Qt6Quickd.dll.
              Updating Qt6QuickControls2d.dll.
              Updating Qt6QuickControls2Basicd.dll.
              Updating Qt6QuickControls2BasicStyleImpld.dll.
              Updating Qt6QuickControls2Impld.dll.
              Updating Qt6QuickShapesd.dll.
              Updating Qt6QuickTemplates2d.dll.
              Updating Qt6Svgd.dll.
              Updating opengl32sw.dll.
              Updating d3dcompiler_47.dll.
              Updating dxcompiler.dll.
              Updating dxil.dll.
              Updating concrt140d.dll.
              Updating msvcp140_1d.dll.
              Updating msvcp140_2d.dll.
              Updating msvcp140d.dll.
              Updating msvcp140d_atomic_wait.dll.
              Updating msvcp140d_codecvt_ids.dll.
              Updating vccorlib140d.dll.
              Updating vcruntime140_1d.dll.
              Updating vcruntime140_threadsd.dll.
              Updating vcruntime140d.dll.
              Creating directory E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/install/debug/plugins/generic.
              Updating qtuiotouchplugind.dll.
              Creating directory E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/install/debug/plugins/iconengines.
              Updating qsvgicond.dll.
              Creating directory E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/install/debug/plugins/imageformats.
              Updating qgifd.dll.
              Updating qicod.dll.
              Updating qjpegd.dll.
              Updating qsvgd.dll.
              Creating directory E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/install/debug/plugins/networkinformation.
              Updating qnetworklistmanagerd.dll.
              Creating directory E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/install/debug/plugins/platforms.
              Updating qwindowsd.dll.
              Creating directory E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/install/debug/plugins/qmltooling.
              Updating qmldbg_debuggerd.dll.
              Updating qmldbg_inspectord.dll.
              Updating qmldbg_locald.dll.
              Updating qmldbg_messagesd.dll.
              Updating qmldbg_natived.dll.
              Updating qmldbg_nativedebuggerd.dll.
              Updating qmldbg_previewd.dll.
              Updating qmldbg_profilerd.dll.
              Updating qmldbg_quickprofilerd.dll.
              Updating qmldbg_serverd.dll.
              Updating qmldbg_tcpd.dll.
              Creating directory E:/work/024_Qt/QtAcademy/how-to-expose-c-to-qml/install/debug/plugins/tls.
              Updating qcertonlybackendd.dll.
              Updating qschannelbackendd.dll.
              Creating translations...
              Creating qt_ar.qm...
              Creating qt_bg.qm...
              Creating qt_ca.qm...
              Creating qt_cs.qm...
              Creating qt_da.qm...
              Creating qt_de.qm...
              Creating qt_en.qm...
              Creating qt_es.qm...
              Creating qt_fa.qm...
              Creating qt_fi.qm...
              Creating qt_fr.qm...
              Creating qt_gd.qm...
              Creating qt_he.qm...
              Creating qt_hr.qm...
              Creating qt_hu.qm...
              Creating qt_it.qm...
              Creating qt_ja.qm...
              Creating qt_ka.qm...
              Creating qt_ko.qm...
              Creating qt_lg.qm...
              Creating qt_lv.qm...
              Creating qt_nl.qm...
              Creating qt_nn.qm...
              Creating qt_pl.qm...
              Creating qt_pt_BR.qm...
              Creating qt_ru.qm...
              Creating qt_sk.qm...
              Creating qt_sv.qm...
              Creating qt_tr.qm...
              Creating qt_uk.qm...
              Creating qt_zh_CN.qm...
              Creating qt_zh_TW.qm...
              

              I finally got it to run.
              17bb2e3f-9931-4f37-8572-50070cb50b75-image.png

              Thank you for your comments so far.
              I would like to close this topic as resolved.

              1 Reply Last reply
              0
              • K k_miya has marked this topic as solved

              • Login

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