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

MacPorts noreply at macports.org
Fri Aug 9 18:31:17 UTC 2019


#58811: opencv @3.4.7+universal: no matching function for call to 'max'; no viable
conversion from 'NSRect' to 'CGRect'
------------------------+--------------------
 Reporter:  ryandesign  |      Owner:  (none)
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:
 Keywords:              |       Port:  opencv
------------------------+--------------------
 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;
                    ^            ~~~~~~~~~~~~~~~~~~~
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/58811>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list