[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1010049: qt6-base-dev: should provide a QT_HOST_PATH directory for cross building



Actually the correct values seem to be:

-DQT_HOST_PATH=/usr
-DQT_HOST_PATH_CMAKE_DIR=/usr/lib/${DEB_HOST_MULTIARCH}/cmake

With these, it works for me when cross building Qt 6.4beta4 with 6.3.1 shipped by Debian (provided you also set -DQT_NO_PACKAGE_VERSION_CHECK=TRUE when using different Qt versions)


Le 6 septembre 2022 15:48:51 GMT+02:00, Fab Stz <fabstz-it@yahoo.fr> a écrit :
Hello.

I have a similar problem.

In addition to:
-DQT_HOST_PATH=/usr/lib/qt6

You must also set:
-DQT_HOST_PATH_CMAKE_DIR=/usr/lib/${DEB_HOST_MULTIARCH}/cmake

But then it still fails with this error now:

Configuring submodule 'qtbase'
-- Could NOT find Qt6CoreTools (missing: Qt6CoreTools_DIR)
CMake Error at qtbase/cmake/QtToolHelpers.cmake:184 (message):
Failed to find the host tool "Qt6::moc". It is part of the Qt6CoreTools
package, but the package could not be found. Make sure you have built and
installed the host Core module, which will ensure the creation of the
Qt6CoreTools package.
Call Stack (most recent call first):
qtbase/src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)



Any idea how to make it find the Qt core tools like moc?
The qt6-base-dev package is installed, as well as qt6-base-dev-tools

Regards


On Sat, 23 Apr 2022 15:14:55 +0200 Helmut Grohne <helmut@subdivi.de> wrote:
> Hi,
>
> On Sat, Apr 23, 2022 at 09:38:54AM +0200, Helmut Grohne wrote:
> > I expect that QT_HOST_PATH also needs to point to architecture-dependent
> > files (e.g. libraries). Qt5 has faced as similar problem and thus added
>
> Dmitry noted that none of Qt6's executables (possibly except for qmake)
> are architecture-dependent and encouraged me to try
> -DQT_HOST_PATH=/usr/lib/qt6. When you

Reply to: