Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-112004

qt-configure-module not working for android_armv7 on linux host

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • None
    • 6.4.3, 6.5.0 Beta3
    • Build System: CMake
    • None
    • Android, Linux/X11
    • f8c1fa1e1 (master)

    Description

      I'm using Qt 6.4.3 (via the online installer) on my Linux desktop computer, for applications with Android version available. (but Qt 6.5 beta 3 shows the same weakness)

      Now I'm usually patching QtConnectivity, and building QtMqtt and QtLocation (dev) for my applications.

      Unfortunately, the script to configure and build Qt modules is broken for Android armv7:

      Qt/6.4.3/android_armv7/bin/qt-configure-module

      I also found that many of the cmake-related scripts in 6.4.3/android_armv7/bin and lib/ contain Windows-style path descriptions, which renders them unusable for development on a Linux host.

      None of these problems show in the directories for other Android platforms (that are working fine):

      • android_arm64_v8a
      • android_x86
      • android_x86_64

       

       

      To build my modules I need to edit android_armv7/bin/target_qt.conf* and change the prefix :
      Prefix=C:/Qt/Qt-6.4.3
      to
      Prefix=/usr/local/Qt-6.4.3
       

      And android_armv7/lib/qt.toolchaine.cmake (around line 30):

      set(__qt_initially_configured_toolchain_file "C:/Utils/Android/android-ndk-r23b/build/cmake/android.toolchain.cmake")
      to
      set(__qt_initially_configured_toolchain_file "/opt/android/android-ndk-r23b/build/cmake/android.toolchain.cmake")

       

       

      But there must be more that I can't find, so I also need to start building the modules, and edit the generated build/CMakeCache.txt, and change the CMAKE_INSTALL_PREFIX:PATH=/usr/local/Qt-6.4.3 (it is using the C:/Qt/Qt-6.4.3 even with the previous edits)

      And that is not ideal.

      Also, very very similar to QT-BUG109857...

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              janihe Jani Heikkinen
              emeric Emeric Grange
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes