Details

    • Technical task
    • Resolution: Done
    • P2: Important
    • None
    • Conan
    • Qt6 Installer Sprint 7, Qt6 Installer Sprint 8

    Description

      Recommended approach for end users to create distributable packages:

      • conan.cmake macro
      • INSTALL_FOLDER should not be used, not even with relative paths. Consuming projects will not be put to git with any work area related paths
      • use "-g deploy" generator -> conan deploys to current working directory, each package is deployed to it's own sub-directory which is named by the package name
      • "recommend using file(GET_RUNTIME_DEPENDENCIES) + install() for app deployment"
      • https://cmake.org/cmake/help/latest/command/file.html#get-runtime-dependencies
      • "you basically use it to create a script, which at make install time would use lld and friends to find the dependent .dll files, and they get copied/installed into the same location as your app"
      • "so you can zip up your app, extract it on another machine, and it would run fine"
      • "Of course that won't handle qt specifics like plugins or resources or translations or other things"
      • "But that's the status quo for cmake apps at the moment anyway"

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            iknd Iikka Eklund
            iknd Iikka Eklund
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes