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

Error compiling Qt for iOS in release mode and C++11

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: 5.2.0
    • Fix Version/s: 5.2.0
    • Component/s: QPA
    • Labels:
      None
    • Environment:
      Mac 10.9, iOS sdk 7, Qt 5.2.0
    • Platform/s:
      iOS/tvOS/watchOS

      Description

      I'm compiling Qt 5.2 for iOS from the release branch. I use Mac 10.9, Xcode5 last version. I enabled C++11 support in qtbase/configure. Then I ran

      ./configure -xplatform macx-ios-clang -release
      make
      

      Compilation fails because of a missing cast in src/plugins/platforms/ios/qiosinputcontext.mm line 153.

      m_curve = [notification.userInfo[UIKeyboardAnimationCurveUserInfoKey] integerValue] << 16;
      

      should be

      m_curve = (UIViewAnimationCurve)([notification.userInfo[UIKeyboardAnimationCurveUserInfoKey] integerValue] << 16);
      

      The cast doesn't seem to be in the stable branch either.

        Attachments

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

          Activity

            People

            Assignee:
            vestbo Tor Arne Vestbø
            Reporter:
            lasconic Lasconic
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes