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. cannot find -lc++ when building android app
Forum Updated to NodeBB v4.3 + New Features

cannot find -lc++ when building android app

Scheduled Pinned Locked Moved Solved Mobile and Embedded
5 Posts 4 Posters 985 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.
  • F Offline
    F Offline
    fazwi
    wrote on last edited by
    #1

    Hi,

    I'm on Pop!_OS (ubuntu based distro) running Qt creator 4.9.2 with Qt 5.13.0 and am currently trying to build an app for android. When I try to build my app for desktop I have no error, but when I try to build it for Android the Make command returns a error: cannot find -lc++.
    I also tried running one of the basics Qt example but I got the same response.

    I use the SDK 26.1.1 and the NDK 20.0.5594570.

    Any idea what I need to do to make it run?

    aha_1980A 1 Reply Last reply
    0
    • F fazwi

      Hi,

      I'm on Pop!_OS (ubuntu based distro) running Qt creator 4.9.2 with Qt 5.13.0 and am currently trying to build an app for android. When I try to build my app for desktop I have no error, but when I try to build it for Android the Make command returns a error: cannot find -lc++.
      I also tried running one of the basics Qt example but I got the same response.

      I use the SDK 26.1.1 and the NDK 20.0.5594570.

      Any idea what I need to do to make it run?

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

      @fazwi

      You should read

      https://forum.qt.io/topic/103713/error-cannot-find-lc-qt-5-12-android

      and

      https://forum.qt.io/topic/104325/error-cannot-find-lc-error-during-compilation-on-android

      for possible solutions.

      Qt has to stay free or it will die.

      1 Reply Last reply
      3
      • F Offline
        F Offline
        fazwi
        wrote on last edited by
        #3

        Thank you, I didn't find those links, I followed this one and it's working just fine now.

        1 Reply Last reply
        3
        • emartiE Offline
          emartiE Offline
          emarti
          wrote on last edited by
          #4

          I had same problem so NDK(v20) . I downloaded NDK older version (v19c) from https://developer.android.com/ndk/downloads/older_releases.html. It is solved this.

          A 1 Reply Last reply
          2
          • emartiE emarti

            I had same problem so NDK(v20) . I downloaded NDK older version (v19c) from https://developer.android.com/ndk/downloads/older_releases.html. It is solved this.

            A Offline
            A Offline
            Ar2uR
            wrote on last edited by
            #5

            @emarti
            when you want to use NDK 20

            pass to the compiler -nostdlib++
            or in the project file add this:

            android { QMAKE_LFLAGS += -nostdlib++ }

            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