What should be inside of Qt6HostInfoConfig.cmake?
-
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?
-
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)