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

Building from Source error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P1: Critical
    • None
    • 6.0
    • Build System
    • None
    • Kubuntu 19.10
      openjdk 11.0.6
      android-sdk 25.0.0+12
      android-ndk-r21-linux-x86_64
    • Android

    Description

      I tried to build Qt for Android from dev branch using wiki instruction, but I got an error

      cd android/ && ( test -e Makefile || /home/andrey/Temp/Qt-dev1/qt5/qtbase/bin/qmake -o Makefile /home/andrey/Temp/Qt-dev1/qt5/qtbase/src/android/android.pro ) && make -f Makefile 
      make[3]: Entering directory '/home/andrey/Temp/Qt-dev1/qt5/qtbase/src/android'
      cd jar/ && ( test -e Makefile || /home/andrey/Temp/Qt-dev1/qt5/qtbase/bin/qmake -o Makefile /home/andrey/Temp/Qt-dev1/qt5/qtbase/src/android/jar/jar.pro ) && make -f Makefile 
      make[4]: Entering directory '/home/andrey/Temp/Qt-dev1/qt5/qtbase/src/android/jar'
      javac -source 7 -target 7 -Xlint:unchecked -bootclasspath /usr/lib/android-sdk//platforms/android-23/android.jar -cp /home/andrey/Temp/Qt-dev1/qt5/qtbase/src/android/jar/src/:/usr/lib/android-sdk//platforms/android-23/android.jar -d .classes src/org/qtproject/qt5/android/accessibility/QtAccessibilityDelegate.java src/org/qtproject/qt5/android/accessibility/QtNativeAccessibility.java src/org/qtproject/qt5/android/QtActivityDelegate.java src/org/qtproject/qt5/android/QtEditText.java src/org/qtproject/qt5/android/QtInputConnection.java src/org/qtproject/qt5/android/QtLayout.java src/org/qtproject/qt5/android/QtMessageDialogHelper.java src/org/qtproject/qt5/android/QtNative.java src/org/qtproject/qt5/android/QtNativeLibrariesDir.java src/org/qtproject/qt5/android/QtSurface.java src/org/qtproject/qt5/android/ExtractStyle.java src/org/qtproject/qt5/android/EditContextView.java src/org/qtproject/qt5/android/EditPopupMenu.java src/org/qtproject/qt5/android/CursorHandle.java src/org/qtproject/qt5/android/QtThread.java
      src/org/qtproject/qt5/android/QtActivityDelegate.java:1109: error: cannot access MenuBuilder
                          QtActivityDelegate.this.onCreatePopupMenu(popup.getMenu());
                                                                         ^
        class file for com.android.internal.view.menu.MenuBuilder not found
      src/org/qtproject/qt5/android/QtActivityDelegate.java:1110: error: cannot access MenuPresenter
                          popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {
                                                                                                   ^
        class file for com.android.internal.view.menu.MenuPresenter not found
      Note: Some input files use or override a deprecated API.
      Note: Recompile with -Xlint:deprecation for details.
      2 errors
      make[4]: *** [Makefile:313: .classes] Error 1
      make[4]: Leaving directory '/home/andrey/Temp/Qt-dev1/qt5/qtbase/src/android/jar'
      make[3]: *** [Makefile:49: sub-jar-make_first-ordered] Error 2
      make[3]: Leaving directory '/home/andrey/Temp/Qt-dev1/qt5/qtbase/src/android'
      make[2]: *** [Makefile:803: sub--home-andrey-Temp-Qt-dev1-qt5-qtbase-src-android-make_first] Error 2
      make[2]: Leaving directory '/home/andrey/Temp/Qt-dev1/qt5/qtbase/src'
      make[1]: *** [Makefile:51: sub-src-make_first] Error 2
      make[1]: Leaving directory '/home/andrey/Temp/Qt-dev1/qt5/qtbase'
      make: *** [Makefile:47: module-qtbase-make_first] Error 2
      

      Attachments

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

        Activity

          People

            taipan BogDan Vatra
            andrey_yashkin Andrey Yashkin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes