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. qmake is using wrong path to clang++

qmake is using wrong path to clang++

Scheduled Pinned Locked Moved Solved Mobile and Embedded
androidqt5.12.xclang++qmake
9 Posts 2 Posters 1.8k 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
    Strohhut
    wrote on 28 Oct 2019, 11:27 last edited by Strohhut
    #1

    Hi,

    I am using Qt 5.12.2

    when building my android app I get an Error Message:

    Cannot run target compiler '/home/me/android-ndk-r10e/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++'
    

    When I look at the path, qmake trys to use clang++ from I not existing folder (llvm does not exist, its called llvm-3.6). I then took a look at the folder specified in the Kit and there the path to the clang++ is set right. Why does it use a different one that the one set in the Kit?

    Edit
    After adding a manual Kit and new manual clang++ compiler to make sure the paths are right, qmake uses the right compiler but a new error appears:

    Wrong Format libQt5Quick.so
    

    So I still can not build my application.

    J 1 Reply Last reply 28 Oct 2019, 11:39
    0
    • S Strohhut
      28 Oct 2019, 11:27

      Hi,

      I am using Qt 5.12.2

      when building my android app I get an Error Message:

      Cannot run target compiler '/home/me/android-ndk-r10e/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++'
      

      When I look at the path, qmake trys to use clang++ from I not existing folder (llvm does not exist, its called llvm-3.6). I then took a look at the folder specified in the Kit and there the path to the clang++ is set right. Why does it use a different one that the one set in the Kit?

      Edit
      After adding a manual Kit and new manual clang++ compiler to make sure the paths are right, qmake uses the right compiler but a new error appears:

      Wrong Format libQt5Quick.so
      

      So I still can not build my application.

      J Online
      J Online
      J.Hilk
      Moderators
      wrote on 28 Oct 2019, 11:39 last edited by
      #2

      @Strohhut what is the NDK version you're using?


      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
      0
      • S Offline
        S Offline
        Strohhut
        wrote on 28 Oct 2019, 11:46 last edited by Strohhut
        #3

        @J-Hilk I am using NDK r10e but also tried with r14b and the latest version r20

        J 1 Reply Last reply 28 Oct 2019, 11:51
        0
        • S Strohhut
          28 Oct 2019, 11:46

          @J-Hilk I am using NDK r10e but also tried with r14b and the latest version r20

          J Online
          J Online
          J.Hilk
          Moderators
          wrote on 28 Oct 2019, 11:51 last edited by
          #4

          @Strohhut 5.12 requieres at least ndk-r18b (IIRC)
          also you need to completely delete and rebuild your shadow build folder after changing the ndk


          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.

          S 1 Reply Last reply 28 Oct 2019, 11:56
          2
          • J J.Hilk
            28 Oct 2019, 11:51

            @Strohhut 5.12 requieres at least ndk-r18b (IIRC)
            also you need to completely delete and rebuild your shadow build folder after changing the ndk

            S Offline
            S Offline
            Strohhut
            wrote on 28 Oct 2019, 11:56 last edited by
            #5

            @J-Hilk oh thanks i did not know that thanks!

            I think I am getting closer or not ... now i have 11 Errors:

            skipping incompatible /home/me/Qt/5.12.2/android_armv7/lib/(11 libs here)
            
            J 1 Reply Last reply 28 Oct 2019, 12:08
            0
            • S Strohhut
              28 Oct 2019, 11:56

              @J-Hilk oh thanks i did not know that thanks!

              I think I am getting closer or not ... now i have 11 Errors:

              skipping incompatible /home/me/Qt/5.12.2/android_armv7/lib/(11 libs here)
              
              J Online
              J Online
              J.Hilk
              Moderators
              wrote on 28 Oct 2019, 12:08 last edited by
              #6

              @Strohhut
              mmh, can you post the actual error message ?
              And I would suggest to update to the lastest 5.12 release (5.12.5) if you can


              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.

              S 2 Replies Last reply 28 Oct 2019, 12:55
              1
              • J J.Hilk
                28 Oct 2019, 12:08

                @Strohhut
                mmh, can you post the actual error message ?
                And I would suggest to update to the lastest 5.12 release (5.12.5) if you can

                S Offline
                S Offline
                Strohhut
                wrote on 28 Oct 2019, 12:55 last edited by
                #7

                @J-Hilk I updated to Qt 5.12.5 now I just have one error:

                /home/me/Qt/5.12.5/android_armv7/lib/libQt5Quick.so:-1: error: error adding symbols: File in wrong format
                
                1 Reply Last reply
                0
                • J J.Hilk
                  28 Oct 2019, 12:08

                  @Strohhut
                  mmh, can you post the actual error message ?
                  And I would suggest to update to the lastest 5.12 release (5.12.5) if you can

                  S Offline
                  S Offline
                  Strohhut
                  wrote on 28 Oct 2019, 13:08 last edited by
                  #8

                  @J-Hilk After updating and reinstalling basically everything it is working now ... I dont exactly know why but it does.

                  Thank you very much for your help!

                  J 1 Reply Last reply 28 Oct 2019, 13:14
                  1
                  • S Strohhut
                    28 Oct 2019, 13:08

                    @J-Hilk After updating and reinstalling basically everything it is working now ... I dont exactly know why but it does.

                    Thank you very much for your help!

                    J Online
                    J Online
                    J.Hilk
                    Moderators
                    wrote on 28 Oct 2019, 13:14 last edited by
                    #9

                    @Strohhut
                    no problem, I was close to the end of my suggestions...
                    So great it's not working !

                    Setting up a working android toolchain can be cumbersome 🙈

                    Son't forget to use the topic tools to set the topic to solved :)


                    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
                    1

                    1/9

                    28 Oct 2019, 11:27

                    • Login

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