Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. windeployqt fails to install qml library
Forum Updated to NodeBB v4.3 + New Features

windeployqt fails to install qml library

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 1 Posters 243 Views
  • 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.
  • R Offline
    R Offline
    Redman
    wrote on last edited by Redman
    #1

    Hello,

    I compiled QtOpcUa module from source.
    This also includes a qml library which can be imported as

    import QtOpcUa as QtOpcUa
    

    When running my built app with QtCreator, there is no problem parsing that file.

    After installing my application I can not find the QtOpcUa qml library in my deploy folder.

    Application CmakeList

    # Define target
    project(Client)
    qt_add_executable(${PROJECT_NAME}
            src/main.cpp
    )
    set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME ${PROJECT_NAME})
    
    qt_add_qml_module(${PROJECT_NAME}
        URI ${PROJECT_NAME}
        QML_FILES
            qml/application.qml
    
    # Link against libraries
    target_link_libraries(${PROJECT_NAME} PRIVATE
        Qt${QT_MAJOR_VERSION}::Gui
        Qt${QT_MAJOR_VERSION}::Quick
        Qt${QT_MAJOR_VERSION}::QuickControls2
        Qt${QT_MAJOR_VERSION}::OpcUa
    )
    
    qt_generate_deploy_qml_app_script(
    	TARGET ${PROJECT_NAME}
    	OUTPUT_SCRIPT deploy_script
    )
    install(SCRIPT ${deploy_script})
    

    Deploy folder structure
    fa6eb138-355e-4e4f-bdbf-28a4d2bfe9f8-image.png

    Inside qml folder (here I would expect QtOpcUa)
    52541ec9-0192-4df5-b684-bb52beb7387f-image.png

    If I copy the folder QT_INSTALL_DIR\6.7.2\msvc2019_64\qml\QtOpcUa into above mentioned directory, everything works fine.

    Now my question:
    How do I describe in CMakeLists that the QtOpcUa folder must be installed also?

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Redman
      wrote on last edited by
      #2

      No one has a clue on how to achieve this?

      1 Reply Last reply
      0

      • Login

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