Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-106021

Wrong install path for shared example project

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.2, 6.5
    • Build System: CMake
    • None

    Description

      The shared examples project (examples/quick/shared) gets installed into wrong path when the examples are build with the declarative module (-DQT_BUILD_EXAMPLES=ON). When built separately, the installation goes to correct paths.

      $ ~/Qt/6.5.0/gcc_64/bin/qt-cmake-private ~/development/qt/qt5/qtdeclarative -DQT_BUILD_EXAMPLES=ON
      $ cmake --build . --target examples/quick/animation/install
      [0/1] Install the project...
      -- Install configuration: "RelWithDebInfo"
      -- Up-to-date: /home/sapiippo/Qt/6.5.0/gcc_64/examples/quick/animation/examples/quick/animation/shared/libanimation_shared.so
      -- Up-to-date: /home/sapiippo/Qt/6.5.0/gcc_64/examples/quick/animation/examples/quick/animation/shared/qmldir
      -- Up-to-date: /home/sapiippo/Qt/6.5.0/gcc_64/examples/quick/animation/./animationexample
      
      $ ~/Qt/6.5.0/gcc_64/examples/quick/animation/animationexample  
      qrc:/qt/qml/animation/animation.qml:5:1: module "shared" is not installed  
           import shared as Examples 
      $ ~/Qt/6.5.0/gcc_64/bin/qt-cmake-private ~/development/qt/qt5/qtdeclarative/examples/quick/animation/
      $ DESTDIR=/tmp cmake --build . --target install
      [0/1] Install the project...
      -- Install configuration: ""
      -- Installing: /tmp/usr/local/examples/quick/animation/shared/libanimation_shared.so
      -- Set runtime path of "/tmp/usr/local/examples/quick/animation/shared/libanimation_shared.so" to "$ORIGIN/../../lib"
      -- Installing: /tmp/usr/local/examples/quick/animation/shared/qmldir
      -- Installing: /tmp/usr/local/examples/quick/animation/animationexample
      -- Set runtime path of "/tmp/usr/local/examples/quick/animation/animationexample" to "" 

       

      Attachments

        Issue Links

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

          Activity

            People

              qtbuildsystem Qt Build System Team
              sapiippo Samuli Piippo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes