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

Yocto: unable to build with CMake against qtserialbus: canbusutil not found (qtserialbus-native)

    XMLWordPrintable

Details

    • Linux/Yocto
    • 9334145f37 (yocto/meta-qt6/dev) 8870361c97 (yocto/meta-qt6/6.3) 4ffc6cb405 (yocto/meta-qt6/6.2) 4ffc6cb405 (yocto/meta-qt6/lts-6.2) 8870361c97 (yocto/meta-qt6/6.3.1) 4ffc6cb405 (yocto/meta-qt6/lts-6.2.5) 8870361c97 (yocto/meta-qt6/6.3.2)

    Description

      We build a software in the Yocto build process which uses qtserialbus.

      Until the following commit it was possible to build the software by adding "qtserialbus-native" to DEPENDS so that canbusutil is found: https://code.qt.io/cgit/yocto/meta-qt6.git/commit/?id=7a505d351e57ea18182df078abaaeed089dc360a&h=6.3

      The above commit removes the package and the following build problem occurs:

       

      | CMake Error at /home/mak/yocto-raspberrypi-latest/build/tmp/work/cortexa53-poky-linux/smartcore/2.2+gitAUTOINC+3970c5b703-r0/recipe-sysroot/usr/lib/cmake/Qt6SerialBusTools/Qt6SerialBusToolsTargets.cmake:85 (message):
      | The imported target "Qt6::canbusutil" references the file
      | 
      | "/home/mak/yocto-raspberrypi-latest/build/tmp/work/cortexa53-poky-linux/smartcore/2.2+gitAUTOINC+3970c5b703-r0/recipe-sysroot/usr/bin/canbusutil"
      | 
      | but this file does not exist. Possible reasons include:
      | 
      | * The file was deleted, renamed, or moved to another location.
      | 
      | * An install or uninstall procedure did not complete successfully.
      | 
      | * The installation package was faulty and contained
      | 
      | "/home/mak/yocto-raspberrypi-latest/build/tmp/work/cortexa53-poky-linux/smartcore/2.2+gitAUTOINC+3970c5b703-r0/recipe-sysroot/usr/lib/cmake/Qt6SerialBusTools/Qt6SerialBusToolsTargets.cmake"
      | 
      | but not all the files it references.
      | 
      | Call Stack (most recent call first):
      | /home/mak/yocto-raspberrypi-latest/build/tmp/work/cortexa53-poky-linux/smartcore/2.2+gitAUTOINC+3970c5b703-r0/recipe-sysroot/usr/lib/cmake/Qt6SerialBusTools/Qt6SerialBusToolsConfig.cmake:47 (include)
      | /home/mak/yocto-raspberrypi-latest/build/tmp/work/cortexa53-poky-linux/smartcore/2.2+gitAUTOINC+3970c5b703-r0/recipe-sysroot/usr/lib/cmake/Qt6SerialBus/Qt6SerialBusDependencies.cmake:76 (find_package)
      | /home/mak/yocto-raspberrypi-latest/build/tmp/work/cortexa53-poky-linux/smartcore/2.2+gitAUTOINC+3970c5b703-r0/recipe-sysroot/usr/lib/cmake/Qt6SerialBus/Qt6SerialBusConfig.cmake:50 (include)
      | /home/mak/yocto-raspberrypi-latest/build/tmp/work/cortexa53-poky-linux/smartcore/2.2+gitAUTOINC+3970c5b703-r0/recipe-sysroot/usr/lib/cmake/Qt6/Qt6Config.cmake:223 (find_package)
      | modules/systeminfos/CMakeLists.txt:12 (find_package)
      | 
      | 
      | CMake Warning at /home/mak/yocto-raspberrypi-latest/build/tmp/work/cortexa53-poky-linux/smartcore/2.2+gitAUTOINC+3970c5b703-r0/recipe-sysroot/usr/lib/cmake/Qt6/Qt6Config.cmake:223 (find_package):
      | Found package configuration file:
      | 
      | /home/mak/yocto-raspberrypi-latest/build/tmp/work/cortexa53-poky-linux/smartcore/2.2+gitAUTOINC+3970c5b703-r0/recipe-sysroot/usr/lib/cmake/Qt6SerialBus/Qt6SerialBusConfig.cmake
      | 
      | but it set Qt6SerialBus_FOUND to FALSE so package "Qt6SerialBus" is
      | considered to be NOT FOUND.
      | Call Stack (most recent call first):
      | modules/systeminfos/CMakeLists.txt:12 (find_package)
      | 
      | 
      | -- Configuring incomplete, errors occurred!
      | See also "/home/mak/yocto-raspberrypi-latest/build/tmp/work/cortexa53-poky-linux/smartcore/2.2+gitAUTOINC+3970c5b703-r0/build/CMakeFiles/CMakeOutput.log".
      | WARNING: exit code 1 from a shell command.
      ERROR: Task (/home/mak/yocto-raspberrypi-latest/yocto/meta-smartcore/recipes-core/smartcore/smartcore_git.bb:do_configure) failed with exit code '1' 
      

       

       

      Why is canbusutil searched at all at this point, which is only needed when running on the target system?

      Is there a way to compile our software?

      Attachments

        Issue Links

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

          Activity

            People

              sapiippo Samuli Piippo
              matthias_klein Matthias Klein
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes