I tried to install OpenCV3 for Mac with the following command in terminal:
brew install opencv3 --with-contrib -with-ffmpeg
It repeatedly gets stuck at this point:
cmake .. -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE
Can someone please tell me how to fix this?
You need to install Xcode command line tools first. Go to the AppStore and download and install Xcode from Apple for free.
Then run:
to get
make
,cmake
, and all the command-line development tools.Also, consider adding the QuickTime back-end, by additionally specifying
--with-qt5
, i.e.:That gives you extra options to save the images you generate and display with the
highgui
module.