[MacPorts] #65827: qt55-qtmultimedia @5.5.1_1, qt56-qtmultimedia @5.6.3_0: error: cannot initialize a variable of type 'CALayer *' with an rvalue of type 'NSInteger' (aka 'long')
MacPorts
noreply at macports.org
Mon Sep 12 03:32:08 UTC 2022
#65827: qt55-qtmultimedia @5.5.1_1, qt56-qtmultimedia @5.6.3_0: error: cannot
initialize a variable of type 'CALayer *' with an rvalue of type
'NSInteger' (aka 'long')
-------------------------+-------------------------------------------------
Reporter: | Owner: (none)
chrstphrchvz |
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: qt55-qtmultimedia qt56-qtmultimedia
-------------------------+-------------------------------------------------
I attempted to fix this issue in [73de07729d5e/macports-ports], but the
patch for avfvideowindowcontrol.mm does not work for Qt 5.5 and 5.6 since
`QT_HAS_INCLUDE()` is only defined by qtbase in 5.7 and later (see
qcompilerdetection.h):
{{{
avfvideowindowcontrol.mm:38:5: error: function-like macro 'QT_HAS_INCLUDE'
is not defined
#if QT_HAS_INCLUDE(<AppKit/AppKit.h>)
^
avfvideowindowcontrol.mm:42:5: error: function-like macro 'QT_HAS_INCLUDE'
is not defined
#if QT_HAS_INCLUDE(<UIKit/UIKit.h>)
^
…
avfvideowindowcontrol.mm:205:14: error: cannot initialize a variable of
type 'CALayer *' with an rvalue of type 'NSInteger' (aka 'long')
CALayer *nativeLayer = [m_nativeView layer];
^ ~~~~~~~~~~~~~~~~~~~~
}}}
Another patch is needed for the same issue in avfvideowidget.mm in Qt 5.5:
{{{
avfvideowidget.mm:106:14: error: cannot initialize a variable of type
'CALayer *' with an rvalue of type 'NSInteger' (aka 'long')
CALayer *nativeLayer = [m_nativeView layer];
^ ~~~~~~~~~~~~~~~~~~~~
}}}
It is likely that I can investigate and propose a fix for this soon.
--
Ticket URL: <https://trac.macports.org/ticket/65827>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list