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. Deploying QML shared library with qt_generate_deploy_qml_app_script

Deploying QML shared library with qt_generate_deploy_qml_app_script

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 229 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.
  • V Offline
    V Offline
    vrabar
    wrote on last edited by vrabar
    #1

    I am trying to build and deploy a shared library with cmake via qt_generate_deploy_qml_app_script.
    Everything is fine until I run cmake --install. I get this:
    No QML imports information recorded for target vulkanunderqml. The target
    must be an executable and qt_add_qml_module() must have been called with
    it. If using a CMake version lower than 3.19, ensure that the executable
    is manually finalized with qt_finalize_target(). Missing file:
    /media/voracity/volume_d/gitroot/player/qtplayerbindings/src/vulkanunderqml/player-build/.qt/deploy_qml_imports/vulkanunderqml.cmake
    Call Stack (most recent call first):
    .qt/deploy_qml_app_vulkanunderqml_02b1c1c4bb.cmake:5 (qt_deploy_qml_imports)
    cmake_install.cmake:69 (include)

    It says "The target must be an executable" and considering I ran the cmake file with an executable target and it worked I am now stuck wondering why doesn't it work with a shared library as a target and is there an alternative? Another thing to note is that qt_generate_deploy_app_script works perfectly fine.

    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