Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
6.9.0 Beta3
-
None
Description
My setup is using qt host build v 6.8.1 to configure android-build of v6.9
I'm using -DQT_NO_PACKAGE_VERSION_CHECK=TRUE so that it works.
While it works fine with most modules, it fails on qopcuaxmldatatypes2cpp
Note that if I use host-build v6.9.0-beta-3 the tool is found, so maybe qopcuaxmldatatypes2cpp doesn't honor -DQT_NO_PACKAGE_VERSION_CHECK=TRUE ?
Details below:
Configuration command
cmake -B debian/build-qtpdf-x86 -S . --log-level=STATUS \ -DCMAKE_INSTALL_PREFIX=/usr/lib/qt-android-6.9-x86 \ -DCMAKE_VERBOSE_MAKEFILE=ON \ -DBUILD_WITH_PCH=OFF \ -DANDROID_SDK_ROOT="/usr/lib/android-sdk/" \ -DCMAKE_TOOLCHAIN_FILE="/usr/lib/android-ndk"/build/cmake/android.toolchain.cmake \ -DANDROID_ABI=x86 \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_qtwayland=OFF \ -DQT_HOST_PATH=/usr \ -DQT_HOST_PATH_CMAKE_DIR=/usr/lib/$(dpkg-architecture -q DEB_HOST_MULTIARCH)/qt-android-6.8-host/cmake \ -GNinja -DQT_NO_PACKAGE_VERSION_CHECK=TRUE \ -DFEATURE_qtwebengine_build=OFF \ -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON
Output
-- Configuring submodule 'qtopcua' CMake Warning at /usr/lib/x86_64-linux-gnu/qt-android-6.8-host/cmake/Qt6CoreTools/Qt6CoreToolsConfigVersion.cmake:36 (message): Package Qt6CoreTools with version 6.8.1 was accepted as compatible because QT_NO_PACKAGE_VERSION_CHECK was set to TRUE. There is no guarantee the build will succeed. You can silence this warning by passing -DQT_NO_PACKAGE_VERSION_INCOMPATIBLE_WARNING=TRUE Call Stack (most recent call first): qtbase/cmake/QtPublicDependencyHelpers.cmake:100 (find_package) debian/build-qtpdf-x86/qtbase/lib/cmake/Qt6Core/Qt6CoreDependencies.cmake:40 (_qt_internal_find_tool_dependencies) debian/build-qtpdf-x86/qtbase/lib/cmake/Qt6Core/Qt6CoreConfig.cmake:55 (include) debian/build-qtpdf-x86/qtbase/lib/cmake/Qt6/Qt6Config.cmake:222 (find_package) qtopcua/CMakeLists.txt:14 (find_package) CMake Warning at /usr/lib/x86_64-linux-gnu/qt-android-6.8-host/cmake/Qt6QmlTools/Qt6QmlToolsConfigVersion.cmake:36 (message): Package Qt6QmlTools with version 6.8.1 was accepted as compatible because QT_NO_PACKAGE_VERSION_CHECK was set to TRUE. There is no guarantee the build will succeed. You can silence this warning by passing -DQT_NO_PACKAGE_VERSION_INCOMPATIBLE_WARNING=TRUE Call Stack (most recent call first): qtbase/cmake/QtPublicDependencyHelpers.cmake:100 (find_package) debian/build-qtpdf-x86/qtbase/lib/cmake/Qt6Qml/Qt6QmlDependencies.cmake:39 (_qt_internal_find_tool_dependencies) debian/build-qtpdf-x86/qtbase/lib/cmake/Qt6Qml/Qt6QmlConfig.cmake:56 (include) /usr/share/cmake-3.31/Modules/CMakeFindDependencyMacro.cmake:76 (find_package) qtbase/cmake/QtPublicDependencyHelpers.cmake:137 (find_dependency) debian/build-qtpdf-x86/qtbase/lib/cmake/Qt6Quick/Qt6QuickDependencies.cmake:45 (_qt_internal_find_qt_dependencies) debian/build-qtpdf-x86/qtbase/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake:53 (include) debian/build-qtpdf-x86/qtbase/lib/cmake/Qt6/Qt6Config.cmake:222 (find_package) qtopcua/CMakeLists.txt:15 (find_package) CMake Warning at /usr/lib/x86_64-linux-gnu/qt-android-6.8-host/cmake/Qt6WidgetsTools/Qt6WidgetsToolsConfigVersion.cmake:36 (message): Package Qt6WidgetsTools with version 6.8.1 was accepted as compatible because QT_NO_PACKAGE_VERSION_CHECK was set to TRUE. There is no guarantee the build will succeed. You can silence this warning by passing -DQT_NO_PACKAGE_VERSION_INCOMPATIBLE_WARNING=TRUE Call Stack (most recent call first): qtbase/cmake/QtPublicDependencyHelpers.cmake:100 (find_package) debian/build-qtpdf-x86/qtbase/lib/cmake/Qt6Widgets/Qt6WidgetsDependencies.cmake:39 (_qt_internal_find_tool_dependencies) debian/build-qtpdf-x86/qtbase/lib/cmake/Qt6Widgets/Qt6WidgetsConfig.cmake:53 (include) debian/build-qtpdf-x86/qtbase/lib/cmake/Qt6/Qt6Config.cmake:222 (find_package) qtopcua/CMakeLists.txt:15 (find_package) -- [QtOpcUa] Using Android SDK API android-34 from /usr/lib/android-sdk//platforms -- [QtOpcUa] CMAKE_STRIP (original): /usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip CMake Warning (dev) at qtbase/cmake/QtPublicSbomGenerationHelpers.cmake:73 (cmake_parse_arguments): The PROJECT_COMMENT keyword was followed by an empty string or no value at all. Policy CMP0174 is not set, so cmake_parse_arguments() will unset the arg_PROJECT_COMMENT variable rather than setting it to an empty string. Call Stack (most recent call first): qtbase/cmake/QtPublicSbomHelpers.cmake:217 (_qt_internal_sbom_begin_project_generate) qtbase/cmake/QtPublicSbomHelpers.cmake:438 (_qt_internal_sbom_begin_project) qtbase/cmake/QtPublicSbomHelpers.cmake:401 (_qt_internal_sbom_begin_qt_repo_project) qtbase/cmake/QtBuildRepoHelpers.cmake:355 (_qt_internal_sbom_auto_begin_qt_repo_project) qtbase/cmake/QtBuildRepoHelpers.cmake:562 (qt_build_repo_begin) qtopcua/CMakeLists.txt:29 (qt_build_repo) This warning is for project developers. Use -Wno-dev to suppress it. -- [QtOpcUa] Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR) (Required is at least version "3.0") -- [QtOpcUa] Could NOT find WrapOpenSSLHeaders (missing: OPENSSL_INCLUDE_DIR) (Required is at least version "3.0") -- [QtOpcUa] Could NOT find WrapOpenSSL (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR) (Required is at least version "3.0") -- [QtOpcUa] Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR) (Required is at least version "3.0") -- [QtOpcUa] Could NOT find WrapOpenSSLHeaders (missing: OPENSSL_INCLUDE_DIR) (Required is at least version "3.0") -- [QtOpcUa] Could NOT find WrapOpenSSL (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR) (Required is at least version "3.0") -- [QtOpcUa] Searching for tool 'Qt6::qopcuaxmldatatypes2cpp' in package Qt6OpcUaTools. -- Could NOT find Qt6OpcUaTools (missing: Qt6OpcUaTools_DIR) CMake Error at qtbase/cmake/QtToolHelpers.cmake:784 (message): Failed to find the host tool "Qt6::qopcuaxmldatatypes2cpp". It is part of the Qt6OpcUaTools package, but the package could not be found. Make sure you have built and installed the host OpcUa module, which will ensure the creation of the Qt6OpcUaTools package. Call Stack (most recent call first): qtbase/cmake/QtToolHelpers.cmake:83 (qt_internal_find_tool) qtopcua/tools/datatypecodegenerator/CMakeLists.txt:9 (qt_internal_add_tool) -- Configuring incomplete, errors occurred!
I noticed that the version reported by the binary is 1.0 in qt 6.8.1 and 1.1 in qt 6.9
qopcuaxmldatatypes2cpp 1.0 -> 6.8.1
qopcuaxmldatatypes2cpp 1.1 -> 6.9
BTW, configuring with 6.9 returns
– [QtOpcUa] Qt6::qopcuaxmldatatypes2cpp was found at /usr/lib/qt-android-6.9-host/bin/qopcuaxmldatatypes2cpp using package Qt6OpcUaTools.