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

Qt 5.1.0 static build fails for android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 5.1.0
    • Build System
    • None
    • Android Arm7- xbuild on Ubuntu 32 bit
    • Android

    Description

      Tried the static build for android:

       
      ./configure -static -prefix $PWD/qtbase -no-rpath -release -xplatform android-g++ -fontconfig -opengl es2 -nomake tests -compile-examples -nomake examples -skip qttranslations -skip qtwebkit -skip 
      qtserialport -skip qtwebkit-examples 
      

      Which produces this error:

        
      /home/jokeman/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86/bin/arm-linux-androideabi-g++ --sysroot=/home/jokeman/android-ndk-r8e/platforms/android-14/arch-arm/ -Wl,-soname,libqmlscene.so -Wl,-rpath-link=/home/jokeman/qt-android-5.1.1-rc1-static/qtbase/lib -Wl,--no-undefined -Wl,-z,noexecstack -shared -o /home/jokeman/qt-android-5.1.1-rc1-static/qtbase/bin/libqmlscene.so .obj/release-static/main.o .obj/release-static/libqmlscene.so_plugin_import.o   -L/home/jokeman/android-ndk-r8e/sources/cxx-stl/gnu-libstdc++/4.7/libs/armeabi-v7a -L/home/jokeman/android-ndk-r8e/platforms/android-14/arch-arm//usr/lib -L/home/jokeman/qt-android-5.1.1-rc1-static/qtbase/lib -lQt5Quick -lQt5Qml -lQt5V8 -lQt5Widgets -lQt5Network -lQt5Gui -lEGL -lQt5Core -lgnustl_shared -lsupc++ -llog -lc -lgcc -lz -lm -ldl -lqandroid -lGLESv2 
      /home/jokeman/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lqandroid
      collect2: error: ld returned 1 exit status
      

      Looks it must be missing an include path for the plugin, or maybe the name changed?

      Attachments

        Issue Links

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

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              jokeman Gary Hynes
              Votes:
              11 Vote for this issue
              Watchers:
              24 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes