Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. What should be inside of Qt6HostInfoConfig.cmake?
Forum Updated to NodeBB v4.3 + New Features

What should be inside of Qt6HostInfoConfig.cmake?

Scheduled Pinned Locked Moved Unsolved Qt 6
3 Posts 3 Posters 1.7k Views 1 Watching
  • 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.
  • B Offline
    B Offline
    bkh6722
    wrote on last edited by
    #1

    Following tutorial https://wiki.qt.io/Cross-Compile_Qt_6_for_Raspberry_Pi I have troubles with configuring Qt on host machine. The problem is caused by the missing Qt6HostInfoConfig.cmake file. The error is described as follows:

    Configuring submodule 'qtbase'
    CMake Error at qtbase/cmake/QtSetup.cmake:268 (find_package):
      Could not find a package configuration file provided by "Qt6HostInfo" with
      any of the following names:
    
        Qt6HostInfoConfig.cmake
        qt6hostinfo-config.cmake
    
      Add the installation prefix of "Qt6HostInfo" to CMAKE_PREFIX_PATH or set
      "Qt6HostInfo_DIR" to a directory containing one of the above files.  If
      "Qt6HostInfo" provides a separate development package or SDK, be sure it
      has been installed.
    

    In internet there is no official solutions, so I am clueless what to do. Probably I should create Qt6HostInfoConfig.cmake file and point to it from something. But what must be inside of that file?

    1 Reply Last reply
    0
    • F Offline
      F Offline
      flengrais
      wrote on last edited by
      #2

      I have the same problem, did you find a solution ? Thx.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Croitor Alexandru
        wrote on last edited by Croitor Alexandru
        #3

        Hi.

        Qt6HostInfoConfig.cmake should be found in the host (read desktop) Qt installation.

        You should not create the file yourself, but rather specify a -DQT_HOST_PATH=/path/to/host/qt argument when configuring the Qt for raspberry Pi, to a prebuilt / installed host Qt (for example, the one that comes with your distro, or the one from the Qt installer)

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved