Build fails on Mac OS X 10.10 Yosemite Beta due to highgui/src/window_cocoa.mm (Bug #3737)


Added by Zafer ARICAN almost 11 years ago. Updated about 10 years ago.


Status:Done Start date:2014-06-04
Priority:Normal Due date:
Assignee:- % Done:

100%

Category:-
Target version:2.4.10
Affected version:2.4.9 (latest release) Operating System:Mac OSX
Difficulty: HW Platform:x64
Pull request:

Description

It gives an error at <opencv_src_dir>/modules/highgui/src/window_cocoa.mm at line 153. It cannot assign setActivationPolicy to an "int".

153: [application setActivationPolicy:0 /*NSApplicationActivationPolicyRegular*/];

changing the line to

153: [application setActivationPolicy:NSApplicationActivationPolicyRegular];

solved the problem for me but I am not sure it is the right fix.


History

Updated by Ilya Lavrenov almost 11 years ago

Hi Zafer, thanks for the report. Could you create a PR with this patch?

Updated by Mike Maraya over 10 years ago

  • Status changed from New to Done
  • % Done changed from 0 to 100

Updated by Denis Gottardello about 10 years ago

I have the same problem with all OpenCV releases.
Can you exmplain better how can I apploy the patch?

Also available in: Atom PDF