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. I can' compile for Android / No puedo compilar para Android
QtWS25 Last Chance

I can' compile for Android / No puedo compilar para Android

Scheduled Pinned Locked Moved Solved Mobile and Embedded
28 Posts 7 Posters 10.4k 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.
  • D dream_captain
    28 Nov 2017, 15:06

    @Blaster
    Seems it's MinGW related problem. Try to add -std=gnu++11 to your build command.

    B Offline
    B Offline
    Blaster
    wrote on 28 Nov 2017, 15:08 last edited by
    #13

    @dream_captain Where is that going exactly?

    D 1 Reply Last reply 28 Nov 2017, 15:13
    0
    • B Blaster
      28 Nov 2017, 15:08

      @dream_captain Where is that going exactly?

      D Offline
      D Offline
      dream_captain
      wrote on 28 Nov 2017, 15:13 last edited by
      #14

      @Blaster
      I use msvc build, so can't point the exact location. Look for something like "make arguments" in Projects->Build Steps.

      B 2 Replies Last reply 28 Nov 2017, 15:20
      0
      • D dream_captain
        28 Nov 2017, 15:13

        @Blaster
        I use msvc build, so can't point the exact location. Look for something like "make arguments" in Projects->Build Steps.

        B Offline
        B Offline
        Blaster
        wrote on 28 Nov 2017, 15:20 last edited by
        #15

        @dream_captain Nothing happens. The same error is maintained. I'm going to download the latest version of Qt to try.

        1 Reply Last reply
        0
        • D dream_captain
          28 Nov 2017, 15:13

          @Blaster
          I use msvc build, so can't point the exact location. Look for something like "make arguments" in Projects->Build Steps.

          B Offline
          B Offline
          Blaster
          wrote on 28 Nov 2017, 15:30 last edited by
          #16

          @dream_captain I was doing what you told me wrong. Now it gives me a single error, which says "invalid option - ="

          1 Reply Last reply
          0
          • P Offline
            P Offline
            Pablo J. Rogina
            wrote on 28 Nov 2017, 18:57 last edited by
            #17

            @Blaster could it be possible for you to reinstall Qt and start from scratch? It seems that you'll be looking for a needle in a haystack.
            If you really need to stick to Qt 5.8 release under Windows, use this link for the offline installer.

            Upvote the answer(s) that helped you solve the issue
            Use "Topic Tools" button to mark your post as Solved
            Add screenshots via postimage.org
            Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

            B 1 Reply Last reply 28 Nov 2017, 19:13
            0
            • P Pablo J. Rogina
              28 Nov 2017, 18:57

              @Blaster could it be possible for you to reinstall Qt and start from scratch? It seems that you'll be looking for a needle in a haystack.
              If you really need to stick to Qt 5.8 release under Windows, use this link for the offline installer.

              B Offline
              B Offline
              Blaster
              wrote on 28 Nov 2017, 19:13 last edited by
              #18

              @Pablo-J.-Rogina let's see, and the option to reinstall the used, the same failure remains. I'm not attached to version 5.8, that's what I have, but I'm downloading version 5.9 to use that ... let's see how it goes

              1 Reply Last reply
              0
              • P Offline
                P Offline
                Pablo J. Rogina
                wrote on 28 Nov 2017, 19:20 last edited by
                #19

                @Blaster please be aware that if you want to develop Qt application for Android, before Qt release 5.9.x the installer must refer to Android :-) i.e. "Qt 5.6.3 for Android (Linux 64-bit, 744 MB)"

                Upvote the answer(s) that helped you solve the issue
                Use "Topic Tools" button to mark your post as Solved
                Add screenshots via postimage.org
                Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                B 1 Reply Last reply 29 Nov 2017, 14:14
                1
                • P Pablo J. Rogina
                  28 Nov 2017, 19:20

                  @Blaster please be aware that if you want to develop Qt application for Android, before Qt release 5.9.x the installer must refer to Android :-) i.e. "Qt 5.6.3 for Android (Linux 64-bit, 744 MB)"

                  B Offline
                  B Offline
                  Blaster
                  wrote on 29 Nov 2017, 14:14 last edited by
                  #20

                  @Pablo-J.-Rogina Yes.. thanks

                  1 Reply Last reply
                  0
                  • B Offline
                    B Offline
                    Blaster
                    wrote on 2 Feb 2018, 19:49 last edited by
                    #21

                    There is no way that I can compile in Qt for android

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 2 Feb 2018, 20:21 last edited by
                      #22

                      Hi,

                      Did you install all the prerequisites listed here ?

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

                      B 1 Reply Last reply 2 Feb 2018, 20:29
                      0
                      • S SGaist
                        2 Feb 2018, 20:21

                        Hi,

                        Did you install all the prerequisites listed here ?

                        B Offline
                        B Offline
                        Blaster
                        wrote on 2 Feb 2018, 20:29 last edited by
                        #23

                        @SGaist I think the only thing that may be giving the problem is the NDK. The one I have is the r8c. You could put a link to the NDK r10e to download it, which is not from Google. Is that the Google link is not allowed for my country. I am cuban

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on 2 Feb 2018, 20:32 last edited by
                          #24

                          Do you mean that this link doesn't work ?

                          By the way, why are you using such an old version of Qt ? The current version is 5.10 and Qt Creator is at 4.5.

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

                          B 1 Reply Last reply 2 Feb 2018, 20:41
                          0
                          • S SGaist
                            2 Feb 2018, 20:32

                            Do you mean that this link doesn't work ?

                            By the way, why are you using such an old version of Qt ? The current version is 5.10 and Qt Creator is at 4.5.

                            B Offline
                            B Offline
                            Blaster
                            wrote on 2 Feb 2018, 20:41 last edited by
                            #25

                            @SGaist The link does work, but it is not available for my country. So I can not access it, thanks to the economic and commercial blockade that the US has against Cuba. Anyway I will use a WebProxy to access.
                            I'm using this version of Qt because it's the one I could access, thanks to a friend. I'm a big fan of Qt and I recommend it to all the developers I know. Thanks for everything.

                            1 Reply Last reply
                            0
                            • B Offline
                              B Offline
                              Blaster
                              wrote on 3 May 2018, 18:47 last edited by
                              #26

                              Sorry for the delay in publishing my solution. The problem was the ndk version, thanks to all those who responded

                              P 1 Reply Last reply 3 May 2018, 18:48
                              0
                              • B Blaster
                                3 May 2018, 18:47

                                Sorry for the delay in publishing my solution. The problem was the ndk version, thanks to all those who responded

                                P Offline
                                P Offline
                                Pablo J. Rogina
                                wrote on 3 May 2018, 18:48 last edited by
                                #27

                                @Blaster ok, so if your issue is solved please don't forget to mark your post as such.

                                Upvote the answer(s) that helped you solve the issue
                                Use "Topic Tools" button to mark your post as Solved
                                Add screenshots via postimage.org
                                Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                                1 Reply Last reply
                                0
                                • E Offline
                                  E Offline
                                  efofex
                                  wrote on 17 Nov 2019, 04:07 last edited by
                                  #28

                                  SOMETIMES, this will not be a configuration issue as mentioned in other answers. In my case, the problem was one file that happened to have been saved with a .CPP extension rather than .cpp. QMake (Qt5) was misidentifying the file and trying to compile it with the C compiler rather than the C++ compiler. The QMake from Qt4 was not exhibiting this issue. Renaming the file fixed the issue.

                                  My comment at the time was "Could this really be that f&%%& simple!!"

                                  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