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

Android: make install in qttools fails because of install path

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.3.0 Beta1
    • Fix Version/s: None
    • Component/s: Build tools: qmake
    • Labels:
      None
    • Environment:
      Linux
    • Platform/s:
      Android
    • Commits:
      c0e94dd0933c549f35d05318cdcd97572c61fabf

      Description

      When building Qt for Android configured with "-prefix ..." and "-make tools", "make install" does not use the given prefix for qttools which are built for the target system (Qt Assistant etc.). Instead it tries to install them to $(INSTALL_ROOT)/libs/$$ANDROID_TARGET_ARCH/. This leads to failure for an unprivileged user and empty INSTALL_ROOT.

      I would expect to see these binaries (.so) installed to the same prefix as the other target binaries.

      (Note: This configuration works in cross-development for Windows on Linux and allows to build Qt Assistant for later deployment to Windows.)

      My analysis:

      • The non-standard target install path comes from mkspecs/features/android, if !android_app && android_install.
      • mkspecs/android-g++/qmake.conf does not set android_app but android_install.
      • android_app is set in mkspecs/features/java.prf and in mkspecs/unsupported/android-g++/qmake.conf [!].

      I guess these mkspecs result in the intented behaviour when deploying apps which use Qt but they misbehave when installing apps which are part of Qt.

      Either this should be fixed, or these tools should not be build/installed for Android.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              qtbuildsystem Qt Build System Team
              Reporter:
              dg0yt Kai Pastor
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes