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

Qt5 doesn't build on Mac OS X v10.6.7

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.0.0
    • 5.0.0
    • Core: Plugins
    • None
    • Mac OS X v10.6.7
    • macOS
    • c13b223979833327fc70f65ae6a847ef7142c847

    Description

      Qt5 is failing to build on SnowLeopard. The build error happens when it meets the file qtbase/src/plugins/platforms/cocoa/qnsview.mm:
      qnsview.mm: In function 'void -[QNSView handleMouseEvent:](QNSView*, _message_ref_t*, NSEvent*)':
      qnsview.mm:172: warning: 'NSWindow' may not respond to '-convertRectToScreen:'
      qnsview.mm:172: warning: (Messages without a matching method signature
      qnsview.mm:172: warning: will be assumed to return 'id' and accept
      qnsview.mm:172: warning: '...' as arguments.)
      qnsview.mm:172: error: conversion from 'objc_object*' to non-scalar type 'CGRect' requested
      make[5]: *** [.obj/debug-shared/qnsview.o] Error 1

      The problem is that convertRectToScreen is only available since v10.7, as it says on the documentation here: http://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSWindow_Class/Reference/Reference.html#//apple_ref/occ/instm/NSWindow/convertRectToScreen:

      Attachments

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

        Activity

          People

            sorvig Morten Sørvig
            rafael.lobo Rafael Brandao Lobo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes