跳到內容
  • 版面
  • 最新
  • 標籤
  • 熱門
  • 使用者
  • 群組
  • 搜尋
  • Get Qt Extensions
  • Unsolved
Collapse
品牌標誌
  1. 首頁
  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

已排程 已置頂 已鎖定 已移動 Solved Mobile and Embedded
28 貼文 7 Posters 11.4k 瀏覽 4 Watching
  • 從舊到新
  • 從新到舊
  • 最多點贊
回覆
  • 在新貼文中回覆
登入後回覆
此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
  • 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 離線
    K 離線
    koahnig
    寫於 最後由 編輯
    #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 條回覆 最後回覆
    0
    • K koahnig

      @Blaster

      On which OS are you working?

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

      BlasterB 離線
      BlasterB 離線
      Blaster
      寫於 最後由 編輯
      #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 條回覆 最後回覆
      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 離線
        jsulmJ 離線
        jsulm
        Lifetime Qt Champion
        寫於 最後由 編輯
        #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 條回覆 最後回覆
        0
        • jsulmJ jsulm

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

          BlasterB 離線
          BlasterB 離線
          Blaster
          寫於 最後由 編輯
          #5

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

          jsulmJ dream_captainD 2 條回覆 最後回覆
          0
          • BlasterB Blaster

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

            jsulmJ 離線
            jsulmJ 離線
            jsulm
            Lifetime Qt Champion
            寫於 最後由 編輯
            #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 條回覆 最後回覆
            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 離線
              BlasterB 離線
              Blaster
              寫於 最後由 編輯
              #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 條回覆 最後回覆
              0
              • BlasterB Blaster

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

                dream_captainD 離線
                dream_captainD 離線
                dream_captain
                寫於 最後由 編輯
                #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 條回覆 最後回覆
                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 離線
                  BlasterB 離線
                  Blaster
                  寫於 最後由 編輯
                  #9

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

                  dream_captainD 1 條回覆 最後回覆
                  0
                  • BlasterB Blaster

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

                    dream_captainD 離線
                    dream_captainD 離線
                    dream_captain
                    寫於 最後由 編輯
                    #10

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

                    BlasterB 1 條回覆 最後回覆
                    0
                    • dream_captainD dream_captain

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

                      BlasterB 離線
                      BlasterB 離線
                      Blaster
                      寫於 最後由 編輯
                      #11

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

                      dream_captainD 1 條回覆 最後回覆
                      0
                      • BlasterB Blaster

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

                        dream_captainD 離線
                        dream_captainD 離線
                        dream_captain
                        寫於 最後由 編輯
                        #12

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

                        BlasterB 1 條回覆 最後回覆
                        0
                        • dream_captainD dream_captain

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

                          BlasterB 離線
                          BlasterB 離線
                          Blaster
                          寫於 最後由 編輯
                          #13

                          @dream_captain Where is that going exactly?

                          dream_captainD 1 條回覆 最後回覆
                          0
                          • BlasterB Blaster

                            @dream_captain Where is that going exactly?

                            dream_captainD 離線
                            dream_captainD 離線
                            dream_captain
                            寫於 最後由 編輯
                            #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 條回覆 最後回覆
                            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 離線
                              BlasterB 離線
                              Blaster
                              寫於 最後由 編輯
                              #15

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

                              1 條回覆 最後回覆
                              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 離線
                                BlasterB 離線
                                Blaster
                                寫於 最後由 編輯
                                #16

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

                                1 條回覆 最後回覆
                                0
                                • Pablo J. RoginaP 離線
                                  Pablo J. RoginaP 離線
                                  Pablo J. Rogina
                                  寫於 最後由 編輯
                                  #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 條回覆 最後回覆
                                  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 離線
                                    BlasterB 離線
                                    Blaster
                                    寫於 最後由 編輯
                                    #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 條回覆 最後回覆
                                    0
                                    • Pablo J. RoginaP 離線
                                      Pablo J. RoginaP 離線
                                      Pablo J. Rogina
                                      寫於 最後由 編輯
                                      #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 條回覆 最後回覆
                                      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 離線
                                        BlasterB 離線
                                        Blaster
                                        寫於 最後由 編輯
                                        #20

                                        @Pablo-J.-Rogina Yes.. thanks

                                        1 條回覆 最後回覆
                                        0
                                        • BlasterB 離線
                                          BlasterB 離線
                                          Blaster
                                          寫於 最後由 編輯
                                          #21

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

                                          1 條回覆 最後回覆
                                          0

                                          • 登入

                                          • Login or register to search.
                                          • 第一個貼文
                                            最後的貼文
                                          0
                                          • 版面
                                          • 最新
                                          • 標籤
                                          • 熱門
                                          • 使用者
                                          • 群組
                                          • 搜尋
                                          • Get Qt Extensions
                                          • Unsolved