Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
None
-
6.1, 6.2.0 RC
-
None
Description
When configuring Qt declarative module to build tests for Android (eg. "-make tests" provided for the configure) and the host Qt is built without tests, the configure fails with:
CMake Error at qtbase/cmake/QtToolHelpers.cmake:41 (message): The tool "qjstest" has not been assigned to a module via TOOLS_TARGET (so it can't be found) and it can't be built (QT_WILL_BUILD_TOOLS is FALSE). Call Stack (most recent call first): qtdeclarative/tests/auto/qml/ecmascripttests/qjstest/CMakeLists.txt:8 (qt_internal_add_tool)
Apparently this is a limitation of the current build system but preferably it should either work or fail more gracefully. The workaround for this is to build the host Qt also with the tests enabled first.
For clarity: this does not happen with non-cross builds (linux/mac/windows).
Attachments
Issue Links
- is duplicated by
-
QTBUG-96568 CMake error with qjstest not assigned to a module in Android builds
- Closed
-
QTBUG-94775 qtdeclarative cannot be built for Android with tests enabled
- Closed
- relates to
-
QTBUG-100047 Properly address distinction between various kinds of apps and tools that Qt provides
- Open
-
QTBUG-100040 Configuring qtdeclarative fails for qmljs, qmljsrootgen and qjstest fails when cross-compiling
- Closed
- resulted in
-
QTBUG-100048 Teach qt_internal_add_test to somehow handle pure qml tests on Android
- Reported