Ayoung
Ayoung

Reputation: 351

How can I install opencv with option --with-nonfree using brew

I installed opencv using brew on Mac. I need some option like nonfree, the command as follows:

brew install opencv --with-nonfree

But, this does't work. It just show:

Warning: opencv: this formula has no --with-nonfree option so it will be ignored!

Must I compile and install opencv from source code?

Upvotes: 2

Views: 1118

Answers (1)

bfontaine
bfontaine

Reputation: 19830

Homebrew already builds OpenCV with -DOPENCV_ENABLE_NONFREE=ON for you, so you don’t need to specify it:

brew install opencv

Use brew options opencv to get its options. Here it doesn’t output anything because Homebrew doesn’t support any option for that formula.

Upvotes: 3

Related Questions