Opened 5 years ago

Last modified 2 years ago

#58811 assigned defect

opencv @3.4.7+universal: no matching function for call to 'max'; no viable conversion from 'NSRect' to 'CGRect'

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: cooljeanius (Eric Gallager)
Port: opencv

Description

opencv does not build with the universal variant:

.../modules/highgui/src/window_cocoa.mm:779:33: error: no matching function for call to 'max'
    mp.y *= (imageSize.height / std::max(viewSize.height, 1.));
                                ^~~~~~~~
.../modules/highgui/src/window_cocoa.mm:780:32: error: no matching function for call to 'max'
    mp.x *= (imageSize.width / std::max(viewSize.width, 1.));
                               ^~~~~~~~
.../modules/highgui/src/window_cocoa.mm:902:13: error: synthesized property 'image' must either be named the same as a compatible instance variable or must explicitly name an instance variable
@synthesize image;
            ^
.../modules/highgui/src/window_cocoa.mm:1024:20: error: no viable conversion from 'NSRect' (aka '_NSRect') to 'CGRect'
            CGRect sliderRect = slider.slider.frame;
                   ^            ~~~~~~~~~~~~~~~~~~~

Attachments (1)

main.log.bz2 (24.4 KB) - added by ryandesign (Ryan Carsten Schmidt) 5 years ago.

Download all attachments as: .zip

Change History (6)

Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.log.bz2 added

comment:1 Changed 5 years ago by kencu (Ken)

You may find this useful: 58390 as it reminds me of this error.

comment:2 Changed 4 years ago by mascguy (Christopher Nielsen)

Is this still an issue?

comment:3 Changed 4 years ago by mascguy (Christopher Nielsen)

Ryan, is this still an issue? If so, you can assign to me, and I'll take a look.

If not, can this ticket be closed?

comment:4 Changed 4 years ago by mf2k (Frank Schima)

Owner: set to mascguy
Status: newassigned

comment:5 Changed 2 years ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added
Note: See TracTickets for help on using tickets.