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++
QtWS25 Last Chance

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 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.HilkJ 1 Reply Last reply
    0
    • S Strohhut

      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.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on 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 last edited by Strohhut
        #3

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

        J.HilkJ 1 Reply Last reply
        0
        • S Strohhut

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

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on 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
          2
          • J.HilkJ J.Hilk

            @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 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.HilkJ 1 Reply Last reply
            0
            • S Strohhut

              @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.HilkJ Offline
              J.HilkJ Offline
              J.Hilk
              Moderators
              wrote on 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
              1
              • J.HilkJ J.Hilk

                @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 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.HilkJ J.Hilk

                  @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 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.HilkJ 1 Reply Last reply
                  1
                  • S Strohhut

                    @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.HilkJ Offline
                    J.HilkJ Offline
                    J.Hilk
                    Moderators
                    wrote on 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

                    • Login

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