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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.2.0
    • 5.2.0
    • QPA
    • None
    • Mac 10.9, iOS sdk 7, Qt 5.2.0
    • 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

            vestbo Tor Arne Vestbø
            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