Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1434

"clang: error: invalid deployment target for -stdlib=libc++ (requires OS X 10.7 or later)" when building Qt Quick Application

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 1.13.0
    • 1.13.0
    • General
    • None
    • 1301eb87fd40d200310365f7553ab4b901a855d8 (qbs/qbs/1.13)

    Description

      [12:53:03] <micurtis> after my macbook had some updates, i now get "clang: error: invalid deployment target for -stdlib=libc++ (requires OS X 10.7 or later)" when building a qt application. i've rebuilt the qt version i'm using to build but it didn't help
      [12:53:17] <micurtis> is this something we need to fix in qt or is it user error?
      [12:54:58] <micurtis> reduced compile output: /usr/bin/clang++ -O2 -Wall -Wextra -target x86_64-apple-macosx10.6-macho -F/Users/mitch/dev/qt5-slate-fw/qtbase/lib [snip] -I/Users/mitch/dev/slate/lib -std=c+11 -stdlib=libc+ -o /Users/mitch/dev/slate-qt5_slate_fw-Release/qtc_qt5_slate_fw_Release/app.7d104347/3a52ce780950d4d9/qrc_fonts.cpp.o -c /Users/mitch/dev/slate-qt5_slate_fw-Release/qtc_qt5_slate_fw_Release/app.7d104347/qrc_fonts.cpp

      The following code provided by Christian is a workaround:

      cpp.minimumMacosVersion: "10.7"
      

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes