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
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Solved Mobile and Embedded
28 Posts 7 Posters 11.4k Views 4 Watching
  • 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.
  • BlasterB Blaster

    Hello, since a couple of days ago I am trying to enter the world of mobile application development. I am using Qt 5.8 with Qt Creator 4.1.1 to develop android applications.
    I took an example of the ones that come in Qt, to test the configuration of Qt Creator and it throws me the following errors:

    #error Qt requires a C++11 compiler and yours does not seem to be that
    
    #error "Qt requires C++11 support"
    

    Please, help me with that

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

    @Blaster

    On which OS are you working?

    Did you install an Android pre-build using the online installer?

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

    BlasterB 1 Reply Last reply
    0
    • K koahnig

      @Blaster

      On which OS are you working?

      Did you install an Android pre-build using the online installer?

      BlasterB Offline
      BlasterB Offline
      Blaster
      wrote on last edited by
      #3

      @koahnig I'm working on Windows 10 Fall Creators Update and I have not installed an Android pre-build using the online installer because I have not access to internet at home

      jsulmJ 1 Reply Last reply
      0
      • BlasterB Blaster

        @koahnig I'm working on Windows 10 Fall Creators Update and I have not installed an Android pre-build using the online installer because I have not access to internet at home

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #4

        @Blaster You need Qt built for Android if you want to develop for Android.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        BlasterB 1 Reply Last reply
        0
        • jsulmJ jsulm

          @Blaster You need Qt built for Android if you want to develop for Android.

          BlasterB Offline
          BlasterB Offline
          Blaster
          wrote on last edited by
          #5

          @jsulm How do I get it? Can you share a link for download a offline installer?

          jsulmJ dream_captainD 2 Replies Last reply
          0
          • BlasterB Blaster

            @jsulm How do I get it? Can you share a link for download a offline installer?

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #6

            @Blaster I'm not sure there is one - I cannot find it on the Qt website. I always use the online installer and Qt Maintenance Tool.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            BlasterB 1 Reply Last reply
            0
            • jsulmJ jsulm

              @Blaster I'm not sure there is one - I cannot find it on the Qt website. I always use the online installer and Qt Maintenance Tool.

              BlasterB Offline
              BlasterB Offline
              Blaster
              wrote on last edited by
              #7

              @jsulm So what do you suggest?
              I have the Qt Creator 4.4.1 with Qt 5.8 ... is there no way to activate C++11 support?

              1 Reply Last reply
              0
              • BlasterB Blaster

                @jsulm How do I get it? Can you share a link for download a offline installer?

                dream_captainD Offline
                dream_captainD Offline
                dream_captain
                wrote on last edited by
                #8

                @Blaster
                if you need Qt 5.8, you can download it from archive:

                if you need the latest version, you can grab the offline installer from here

                BlasterB 1 Reply Last reply
                0
                • dream_captainD dream_captain

                  @Blaster
                  if you need Qt 5.8, you can download it from archive:

                  if you need the latest version, you can grab the offline installer from here

                  BlasterB Offline
                  BlasterB Offline
                  Blaster
                  wrote on last edited by
                  #9

                  @dream_captain What I want is to solve the error mentioned above

                  dream_captainD 1 Reply Last reply
                  0
                  • BlasterB Blaster

                    @dream_captain What I want is to solve the error mentioned above

                    dream_captainD Offline
                    dream_captainD Offline
                    dream_captain
                    wrote on last edited by
                    #10

                    @Blaster
                    What compiler are you using?
                    Please, post a screenshot of active kit (Options->Build&Run->Kits tab)

                    BlasterB 1 Reply Last reply
                    0
                    • dream_captainD dream_captain

                      @Blaster
                      What compiler are you using?
                      Please, post a screenshot of active kit (Options->Build&Run->Kits tab)

                      BlasterB Offline
                      BlasterB Offline
                      Blaster
                      wrote on last edited by
                      #11

                      @dream_captain ![alt text](0_1511859200450_Captura de pantalla (1).png image url)
                      These are the kits

                      dream_captainD 1 Reply Last reply
                      0
                      • BlasterB Blaster

                        @dream_captain ![alt text](0_1511859200450_Captura de pantalla (1).png image url)
                        These are the kits

                        dream_captainD Offline
                        dream_captainD Offline
                        dream_captain
                        wrote on last edited by
                        #12

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

                        BlasterB 1 Reply Last reply
                        0
                        • dream_captainD dream_captain

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

                          BlasterB Offline
                          BlasterB Offline
                          Blaster
                          wrote on last edited by
                          #13

                          @dream_captain Where is that going exactly?

                          dream_captainD 1 Reply Last reply
                          0
                          • BlasterB Blaster

                            @dream_captain Where is that going exactly?

                            dream_captainD Offline
                            dream_captainD Offline
                            dream_captain
                            wrote on 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.

                            BlasterB 2 Replies Last reply
                            0
                            • dream_captainD dream_captain

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

                              BlasterB Offline
                              BlasterB Offline
                              Blaster
                              wrote on 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
                              • dream_captainD dream_captain

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

                                BlasterB Offline
                                BlasterB Offline
                                Blaster
                                wrote on 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
                                • Pablo J. RoginaP Offline
                                  Pablo J. RoginaP Offline
                                  Pablo J. Rogina
                                  wrote on 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

                                  BlasterB 1 Reply Last reply
                                  0
                                  • Pablo J. RoginaP Pablo J. Rogina

                                    @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.

                                    BlasterB Offline
                                    BlasterB Offline
                                    Blaster
                                    wrote on 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
                                    • Pablo J. RoginaP Offline
                                      Pablo J. RoginaP Offline
                                      Pablo J. Rogina
                                      wrote on 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

                                      BlasterB 1 Reply Last reply
                                      1
                                      • Pablo J. RoginaP Pablo J. Rogina

                                        @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)"

                                        BlasterB Offline
                                        BlasterB Offline
                                        Blaster
                                        wrote on last edited by
                                        #20

                                        @Pablo-J.-Rogina Yes.. thanks

                                        1 Reply Last reply
                                        0
                                        • BlasterB Offline
                                          BlasterB Offline
                                          Blaster
                                          wrote on last edited by
                                          #21

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

                                          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