Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-78077

Compiling projects to Android targets fail with "cannot find -lc++"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Duplicate
    • Affects Version/s: 5.12
    • Fix Version/s: None
    • Component/s: Build tools: qmake
    • Labels:
      None
    • Platform/s:
      Linux/X11

      Description

      Trying to compile any project to an Android target with give an error

      cannot find -lc++
      linker command failed with exit code 1 (use -v to see invocation)
      

      Adding the following to .pro file would fix this

      QMAKE_LFLAGS += -nostdlib++

      However, it would be better if this flag is added automatically or Android targets.

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              • Assignee:
                qtbuildsystem Qt Build System Team
                Reporter:
                assam Assam Boudjelthia
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes