Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Android Building and cannot find -lc++
Forum Updated to NodeBB v4.3 + New Features

Android Building and cannot find -lc++

Scheduled Pinned Locked Moved Solved Installation and Deployment
4 Posts 3 Posters 412 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.
  • M Offline
    M Offline
    Mandeep.Chaudhary
    wrote on last edited by Mandeep.Chaudhary
    #1

    Hi,

    I am trying to make an app for android. So far the app is working on desktop. But as soon as I change its kit to android Clang Qt 5.12.4 for android ARMv7 and try to build it.

    It shows me an error with " error: cannot find -lc++
    clang++: error: linker command failed with exit code 1 (use -v to see invocation)"

    I have used "android-ndk-r16b" and JDK "1.8.0_141".

    I am using QT Creator 4.10.0 Based on Qt 5.13.1 (Clang 10.0 (Apple), 64 bit)

    Please help me to build/compile it. I can see my android device under compatible devices in qt.

    J.HilkJ 1 Reply Last reply
    0
    • M Mandeep.Chaudhary

      Hi,

      I am trying to make an app for android. So far the app is working on desktop. But as soon as I change its kit to android Clang Qt 5.12.4 for android ARMv7 and try to build it.

      It shows me an error with " error: cannot find -lc++
      clang++: error: linker command failed with exit code 1 (use -v to see invocation)"

      I have used "android-ndk-r16b" and JDK "1.8.0_141".

      I am using QT Creator 4.10.0 Based on Qt 5.13.1 (Clang 10.0 (Apple), 64 bit)

      Please help me to build/compile it. I can see my android device under compatible devices in qt.

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      hi @mandeep-chaudhary and welcome

      you're not the first with the issue, see
      https://forum.qt.io/topic/101322/what-s-the-problem-android-compile-error


      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
      2
      • M Offline
        M Offline
        Mandeep.Chaudhary
        wrote on last edited by
        #3

        Thank You very much problem is solved . It was basically by using ndk 20r and modifying qmake.conf file as mentioned in the post suggested by you.

        Thank You !!!

        aha_1980A 1 Reply Last reply
        3
        • M Mandeep.Chaudhary

          Thank You very much problem is solved . It was basically by using ndk 20r and modifying qmake.conf file as mentioned in the post suggested by you.

          Thank You !!!

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @mandeep-chaudhary

          So please mark this topic as SOLVED too. Thanks!

          Qt has to stay free or it will die.

          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