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

qtdeclarative-examples: shared module installed to incorrect location

    XMLWordPrintable

Details

    Description

      cannot run quick, quickcontrol examples that "import shared [as ...]" or "import  Wearable[Style|Setting] or "import MyStyle"

      The binaries that do import the above, are unable to find shared object (.so) libraries as they are not installed in the correct location.

      I have noticed that the .so files are installed "one level" deeper than what the binary is expecting it to be:

      Taking qtdeclarative/examples/quick/views as an example, on target:

       

      $ find / -name shared | grep views
      /usr/share/examples/quick/views/share/examples/quick/views/shared
      $ ls /usr/share/examples/quick/views/share/examples/quick/views/shared/
      libviews_shared.so qmldir
      $ /usr/share/examples/quick/views/viewsexample
      qrc:/qt/qml/views/views.qml:5:1: module "shared" is not installed
          import shared as Examples
          ^
      

      I was able to run the viewsexample with the following symlink:

      $ ln -s /usr/share/examples/quick/views/share/examples/quick/views/shared/ /usr/share/examples/quick/views/shared
      

      The following examples have similar issue:

       

      qtdeclarative/examples$ grep -r --include=CMakeLists.txt "^add_subdirectory" | grep shared
      quick/particles/emitters/CMakeLists.txt:add_subdirectory("../../shared" "shared")
      quick/particles/imageparticle/CMakeLists.txt:add_subdirectory("../../shared" "shared")
      quick/particles/system/CMakeLists.txt:add_subdirectory("../../shared" "shared")
      quick/particles/itemparticle/CMakeLists.txt:add_subdirectory("../../shared" "shared")
      quick/particles/affectors/CMakeLists.txt:add_subdirectory("../../shared" "shared")
      quick/draganddrop/CMakeLists.txt:add_subdirectory("../shared" "shared")
      quick/views/CMakeLists.txt:add_subdirectory("../shared" "shared")
      quick/animation/CMakeLists.txt:add_subdirectory("../shared" "shared")
      quick/righttoleft/CMakeLists.txt:add_subdirectory("../shared" "shared")
      quick/imageelements/CMakeLists.txt:add_subdirectory("../shared" "shared")
      quick/delegatechooser/CMakeLists.txt:add_subdirectory("../shared" "shared")
      quick/multieffect/itemswitcher/CMakeLists.txt:add_subdirectory("../../shared" "shared")
      quick/multieffect/testbed/CMakeLists.txt:add_subdirectory("../../shared" "shared")
      quick/text/CMakeLists.txt:add_subdirectory("../shared" "shared")
      quick/threading/CMakeLists.txt:add_subdirectory("../shared" "shared")
      quick/canvas/CMakeLists.txt:add_subdirectory("../shared" "shared")
      quick/pointerhandlers/CMakeLists.txt:add_subdirectory("../shared" "shared")
      quick/shapes/CMakeLists.txt:add_subdirectory("../shared" "shared")
      quick/positioners/CMakeLists.txt:add_subdirectory("../shared" "shared")
      quick/touchinteraction/CMakeLists.txt:add_subdirectory("../shared" "shared")
      quick/window/CMakeLists.txt:add_subdirectory("../shared" "shared")
      
      ....
      
      quickcontrols/wearable/CMakeLists.txt:add_subdirectory(Wearable)
      quickcontrols/wearable/CMakeLists.txt:add_subdirectory(WearableSettings)
      quickcontrols/wearable/CMakeLists.txt:add_subdirectory(WearableStyle) quickcontrols/attachedstyleproperties/CMakeLists.txt:add_subdirectory(MyStyle) quick/customitems/painteditem/CMakeLists.txt:add_subdirectory(TextBalloon)
      

       

       

      Some ptests also have similar issues where files are not installed correctly, specifically, qtcoap, qtmqtt, qtdeviceutilities. I will create a separate defect for the ptest issues.

       

      STEPS TO REPRODUCE:

      Using master branches for openembedded-core, meta-openembedded, bitbake and dev branch for meta-qt6

      Setup build dir:

      ./oe-init-build-env <build_dir>

      Add to local.conf:

      PACKAGECONFIG:append:pn-qtdeclarative = " examples"
      IMAGE_INSTALL:append = " qtdeclarative-examples"
      DISTRO_FEATURES:append = " opengl x11"

      Build image:

      bitbake core-image-sato

      Run image using qemu or hardware and perform the steps in the description above.

       

       

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            ssajal Sakib Sajal
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes