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. Setting up the android tool chain
QtWS25 Last Chance

Setting up the android tool chain

Scheduled Pinned Locked Moved Solved Mobile and Embedded
4 Posts 3 Posters 536 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.
  • S Offline
    S Offline
    sirAnton
    wrote on last edited by
    #1

    Hello, i have no luck with setting up the android tool chain. NDK r21+Sdk+Qt 5.9.9
    I have installed the NDK and SDK ( Sdk over the android developer suite) (https://doc.qt.io/qt-5/android-getting-started.html)
    In the Qt Creator under Devices the green arrows shows NDK SDK and Java OK.
    But if i want to compile any example project i get errors:
    qmake -> Cannot run target compiler i686-linux-android-g++
    Ok the g++ is not include the NDK r21
    cmake -> No target architecture defined in json file.
    CLang ok, androiddeployqt Error 2,(android developer suite works ok with emulator)
    Thanks for help.

    J.HilkJ K 2 Replies Last reply
    0
    • S sirAnton

      Hello, i have no luck with setting up the android tool chain. NDK r21+Sdk+Qt 5.9.9
      I have installed the NDK and SDK ( Sdk over the android developer suite) (https://doc.qt.io/qt-5/android-getting-started.html)
      In the Qt Creator under Devices the green arrows shows NDK SDK and Java OK.
      But if i want to compile any example project i get errors:
      qmake -> Cannot run target compiler i686-linux-android-g++
      Ok the g++ is not include the NDK r21
      cmake -> No target architecture defined in json file.
      CLang ok, androiddeployqt Error 2,(android developer suite works ok with emulator)
      Thanks for help.

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by J.Hilk
      #2

      hi and welcome @sirAnton said in Setting up the android tool chain:

      NDK r21+Sdk+Qt 5.9.9

      you actually quoted the android getting started page in your post,

      6a76c4d9-b788-40d8-a5bb-90d6fd30e4f9-image.png

      you're using the wrong NDK version for Qt 5.9


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      2
      • S sirAnton

        Hello, i have no luck with setting up the android tool chain. NDK r21+Sdk+Qt 5.9.9
        I have installed the NDK and SDK ( Sdk over the android developer suite) (https://doc.qt.io/qt-5/android-getting-started.html)
        In the Qt Creator under Devices the green arrows shows NDK SDK and Java OK.
        But if i want to compile any example project i get errors:
        qmake -> Cannot run target compiler i686-linux-android-g++
        Ok the g++ is not include the NDK r21
        cmake -> No target architecture defined in json file.
        CLang ok, androiddeployqt Error 2,(android developer suite works ok with emulator)
        Thanks for help.

        K Offline
        K Offline
        koahnig
        wrote on last edited by koahnig
        #3

        @sirAnton

        Hi and welcome in devnet forum

        @sirAnton said in Setting up the android tool chain:

        Hello, i have no luck with setting up the android tool chain. NDK r21+Sdk+Qt 5.9.9

        This will not work. NDK is too young for it.

        Try a recent version of Qt libs compiled for Android with a recent version of SDK and NDK.

        For Qt 5.12.1 you can use
        ab7d9852-3b10-4552-8409-5391cd5db17c-image.png

        For Qt5.14.1
        8eab917b-8fc7-41c0-9c11-b5998c0274eb-image.png

        That is on windows 10 64 bit

        AFAIK the compiler changed with Qt5.12. You would need to check docs what was recommended with Qt5.9.

        Vote the answer(s) that helped you to solve your issue(s)

        1 Reply Last reply
        2
        • S Offline
          S Offline
          sirAnton
          wrote on last edited by
          #4

          Thanks,
          ( I have installed Qt5.14.1 and changed the Sdk to 26.x.x)

          1 Reply Last reply
          2

          • Login

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