Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Issues to build apk with qt creator

Issues to build apk with qt creator

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 1 Posters 365 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bensuperpc
    wrote on last edited by
    #1

    I can not create an APK with Qt creator, I can launch the application in the emulator but cannot build APK

    I followed this tutorial to install qt and install qt creator with the offline package : https://wiki.qt.io/Android https://doc.qt.io/qt-5/deployment-android.html

    I intall Clang-8 and GCC-8 and others dependencies for qt (like mesa-common-dev, libglu1-mesa-dev...)

    I tried to build these applications i have sames issues - https://github.com/ekke/c2gQtCon_x - https://github.com/ekke/c2gQtWS_x (with : https://github.com/ekke/statusbar) - Somes Exemples (like Qt SCXML Calculator)

    Qt output these errors: - :-1: error : error: cannot find -lc++ - :-1: error : linker command failed with exit code 1 (use -v to see invocation) You can see Qt Creator output (image) : https://drive.google.com/file/d/1lRe1Xs65EDs8aXZqFEbAxh8htjziQRRW/view?usp=sharing

    My config : drive.google.com/open?id=1nFpajqDdH6Jogq89h8aGYFu275nxt7mx

    Edit : i change API level 18 to 21 in these applications and i work with Qt5.13 and android NDK 20 on kubuntu 19.04

    1 Reply Last reply
    0
    • B Offline
      B Offline
      Bensuperpc
      wrote on last edited by
      #2

      Here is the complete output of the compilation

      /home/bensuperpc/android-ndk-r20/toolchains/x86_64-4.9/prebuilt/linux-x86_64/lib/gcc/x86_64-linux-android/4.9.x/../../../../x86_64-linux-android/bin/ld: error: cannot find -lc++
      clang++: error: linker command failed with exit code 1 (use -v to see invocation)
      make: *** [libbt_le_x.so] Error 1
      15:22:48: Le processus "/home/bensuperpc/android-ndk-r20/prebuilt/linux-x86_64/bin/make" s'est terminé avec le code 2.
      Erreur lors de la compilation/déploiement du projet bt_le_x (kit : Android for x86_64 (Clang Qt 5.13.0 for Android x86_64))
      When executing step "Make"
      
      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved