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

Can not build (examples) with Android/UWP/WinRT

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P0: Blocker
    • Resolution: Done
    • Affects Version/s: 5.13.0 Beta4
    • Fix Version/s: 5.12.4, 5.13.0 Beta4
    • Component/s: Build tools: Other
    • Labels:
    • Environment:
      Ubuntu18.04 x64
      macOS10.13 x64
      Android NDK and SDK versions: same as coin uses in branch 5.13
    • Platform/s:
      Android, WinRT
    • Commits:
      009b9bd19e5c7daa183173d945c379f5b57f058d (qtqa/tqtc-coin-ci/master) f00de3322e05c62021082463b6de24805afc1355 (qt/qtbase) b5bb4f762c5caed28204487346d2e82138abf8c8 (qt/qtbase/5.12.4)

      Description

      Install 5.13.0 beta4 content from staging repository, Android x86 used in test (similar failure seen in RTA tests also with other Android targets on linux and macOS). Take any example and build with Creator or command line, build fails with:

      /opt/android/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -c -D__ANDROID_API__=21 -target i686-none-linux-android -mstackrealign -gcc-toolchain /opt/android/android-ndk-r19c/toolchains/x86-4.9/prebuilt/linux-x86_64 -fno-limit-debug-info -DANDROID_HAS_WSTRING --sysroot=/opt/android/android-ndk-r19c/sysroot -isystem /opt/android/android-ndk-r19c/sysroot/usr/include/i686-linux-android -isystem /opt/android/android-ndk-r19c/sources/cxx-stl/llvm-libc++/include -isystem /opt/android/android-ndk-r19c/sources/android/support/include -isystem /opt/android/android-ndk-r19c/sources/cxx-stl/llvm-libc++abi/include -fstack-protector-strong -DANDROID -O2 -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/home/qt/RTA/qt5/5.13.0/android_x86/include -I/home/qt/RTA/qt5/5.13.0/android_x86/include/QtWidgets -I/home/qt/RTA/qt5/5.13.0/android_x86/include/QtGui -I/home/qt/RTA/qt5/5.13.0/android_x86/include/QtCore -I. -I/home/qt/RTA/qt5/5.13.0/android_x86/mkspecs/android-clang -o moc_window.o moc_window.cpp
      /opt/android/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -D__ANDROID_API__=21 -target i686-none-linux-android -mstackrealign -gcc-toolchain /opt/android/android-ndk-r19c/toolchains/x86-4.9/prebuilt/linux-x86_64 -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a --sysroot=/opt/android/android-ndk-r19c/platforms/android-21/arch-x86/ -Wl,-soname,libspinboxes.so -Wl,-rpath=/home/qt/RTA/qt5/5.13.0/android_x86/lib -Wl,--no-undefined -Wl,-z,noexecstack -shared -o libspinboxes.so main.o window.o moc_window.o   /home/qt/RTA/qt5/5.13.0/android_x86/lib/libQt5Widgets.so -lQt5Gui -L/opt/android/android-ndk-r19c/sources/cxx-stl/llvm-libc++/libs/x86 /home/qt/RTA/qt5/5.13.0/android_x86/lib/libQt5Gui.so -lQt5Core /home/qt/RTA/qt5/5.13.0/android_x86/lib/libQt5Core.so -lGLESv2  -L/opt/android/android-ndk-r19c/sources/cxx-stl/llvm-libc++/libs/x86 /opt/android/android-ndk-r19c/sources/cxx-stl/llvm-libc++/libs/x86/libc++.so.21 -llog -lz -lm -ldl -lc
      /opt/android/android-ndk-r19c/toolchains/x86-4.9/prebuilt/linux-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin/ld: error: cannot find -lQt5Gui
      /opt/android/android-ndk-r19c/toolchains/x86-4.9/prebuilt/linux-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin/ld: error: cannot find -lQt5Core
      clang++: error: linker command failed with exit code 1 (use -v to see invocation)
      Makefile:244: recipe for target 'libspinboxes.so' failed
      make: *** [libspinboxes.so] Error 1
      

      On same machine (same virtual machine that coin uses, branch 5.13) install 5.13.0 beta3 content (found from production server) examples are build fine, issue is with beta4.

       

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              jbornema Joerg Bornemann
              Reporter:
              joaijala Johanna Äijälä
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes