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. Can't build for Android
Forum Update on Monday, May 27th 2025

Can't build for Android

Scheduled Pinned Locked Moved Solved Mobile and Embedded
9 Posts 2 Posters 750 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.
  • Angelo13CA Offline
    Angelo13CA Offline
    Angelo13C
    wrote on last edited by Angelo13C
    #1

    Hello guys

    I am making an instant messaging app (open source) with Qt, now I want to do some test on my android device.
    I've configured the Android SDK (28), Android NDK, OpenJDK

    When I try to build the app, the qmake runs succesfully, but the make step doesn't.
    This is the error Hastebin.com/ozebutodem.py

    I can give you more info if you request

    Here's the project: GitHub.com/Angelo13C/Ash-Messenger-Client/tree/Test

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      What version of Qt are you using ?
      What version of Qt Creator ?
      On what platform ?
      What version of the NDK ?
      What version of the JDK ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • Angelo13CA Offline
        Angelo13CA Offline
        Angelo13C
        wrote on last edited by
        #3

        Hi, thanks :D

        Qt 5.13.1 for Android ARM64-v8a
        Qt Creator 4.11.0
        Android ARM64-v8a
        NDK 20.1.5948944
        JDK java-1.8.0-openjdk-amd64

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          The include related errors are a bit strange. It looks like you are including librairies in your code rather than headers. Am I misreading the logs ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          Angelo13CA 2 Replies Last reply
          0
          • SGaistS SGaist

            The include related errors are a bit strange. It looks like you are including librairies in your code rather than headers. Am I misreading the logs ?

            Angelo13CA Offline
            Angelo13CA Offline
            Angelo13C
            wrote on last edited by
            #5

            @SGaist
            A library??

            I have published the code on GitHub GitHub.com/Angelo13C/Ash-Messenger-Client/tree/Test, I am not including any library (Ash_Messenger_Client is the name of the application, it's not a library)

            1 Reply Last reply
            0
            • Angelo13CA Offline
              Angelo13CA Offline
              Angelo13C
              wrote on last edited by
              #6
              This post is deleted!
              1 Reply Last reply
              0
              • SGaistS SGaist

                The include related errors are a bit strange. It looks like you are including librairies in your code rather than headers. Am I misreading the logs ?

                Angelo13CA Offline
                Angelo13CA Offline
                Angelo13C
                wrote on last edited by
                #7

                @SGaist
                Maybe I've installed the SDK in the wrong way.. I have only installed the NDK, SDK and OpenJDK and I've put the path in the qt creator Devices/Android menu

                1 Reply Last reply
                0
                • Angelo13CA Offline
                  Angelo13CA Offline
                  Angelo13C
                  wrote on last edited by
                  #8

                  I've found the problem..

                  Qt 5.12 has some problems with Precompiled Headers for Android only.. I switched to Qt 5.14, now it compiles correctly :D

                  1 Reply Last reply
                  2
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Glad you found out and thanks for sharing !

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    1

                    • Login

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