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

QMAKE_MAC_SDK ignored under Mac OSX PPC

    XMLWordPrintable

Details

    • macOS

    Description

      When building the xcode project with xcodebuild,

      the linker fails because it has no directions where to find the i386 versions of the system libraries. Despite the QMAKE_MAC_SDK variable being set in the project file (and it works as expected under i386) it is ignored for the i386 build on the PPC platform.

      A work around for this problem was to replace the QMAKE_MAC_SDK line by the following three lines:
      QMAKE_CFLAGS += -isysroot /Developer/SDKs/MacOSX10.4u.sdk
      QMAKE_CXXFLAGS += -isysroot /Developer/SDKs/MacOSX10.4u.sdk
      QMAKE_LFLAGS += -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk

      A real fix would however be qmake using the QMAKE_MAC_SDK variable when compiling i386 versions on a PPC platform.

      Attachments

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

        Activity

          People

            stormols Marius Storm-Olsen
            admin Administrator
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes