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

Qt 5.1.0 static build fails for android

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Out of scope
    • Affects Version/s: 5.1.0
    • Fix Version/s: None
    • Component/s: Build System
    • Labels:
      None
    • Environment:
      Android Arm7- xbuild on Ubuntu 32 bit
    • Platform/s:
      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

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

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes