I've added opencv as follows
Download it and build it
git clone https://github.com/opencv/opencv
cd opencv
mkdir build && cd build
cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=../install ..
sudo make -j$(sysctl -n hw.logicalcpu)
sudo make install
Go to install
Copy all .a files from lib and lib/opencv4/3rdparty/ into your project. I.e. MyProject/Libraries/
Get to install/include/opencv4/ and copy the opencv2 folder into your project.
Go to your project settings Targets -> Search Paths -> Header Search Paths
Add the following path $(PROJECT_DIR)/Path/to/opencv2/
NOTE: I currently have a problem with my Xcode and I guess it's related to opencv, so you may also encounter this issue.
Ryan
Topic:
Developer Tools & Services
SubTopic:
Developer Forums
Tags: