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. Could not find a package configuration file provided by "Qt6HostInfo" at cross-compile

Could not find a package configuration file provided by "Qt6HostInfo" at cross-compile

Scheduled Pinned Locked Moved Solved Qt 6
4 Posts 3 Posters 3.0k Views
  • 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.
  • D Offline
    D Offline
    debian
    wrote on last edited by
    #1

    Hello!
    According to new cross-compile rules we are should have prebuilded host tools, I was make this, but this is require additional time. Some time ago Qt-6.2.4 was added to Debian repo named bullseye-backports. May this is allow safe my time? I was install qmake6 and other packages and turn off compile Qt for host before cross-compile. Unfortunately I was stop at qtbase configure

    ................
    -- CMAKE_BUILD_TYPE was set to: 'RelWithDebInfo'
    CMake Error at cmake/QtSetup.cmake:229 (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.
    Call Stack (most recent call first):
      cmake/QtBuildInternals/QtBuildInternalsConfig.cmake:229 (include)
      cmake/QtBuildInternals/QtBuildInternalsConfig.cmake:372 (qt_build_internals_set_up_private_api)
      CMakeLists.txt:109 (qt_build_repo_begin)
    -- Configuring incomplete, errors occurred!
    .............
    

    Why? Can I use external prebuilded Qt for cross-compile?
    Thank you.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      debian
      wrote on last edited by
      #2

      Ok, I'm force Qt6HostInfo_DIR=/usr/lib/x86_64-linux-gnu/cmake/ Qt6HostInfo via cmake parametrs, look like this is solve issue.

      1 Reply Last reply
      2
      • J Offline
        J Offline
        Jack.X
        wrote on last edited by
        #3

        May I ask what is the specific command, I also encountered this problem, and still can't solve it.

        1 Reply Last reply
        0
        • N Offline
          N Offline
          nsvipul
          wrote last edited by
          #4

          Could not find a package configuration file provided by "Qt6HostInfo" with
          any of the following names:

          1 Reply Last reply
          0

          • Login

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