So, for my project, I needed an Intel Universal build of the OpenCV library. The copy of the OpenCV source I have on my machine is version 3.0.0 and it has worked well for me, so I'll start with that. My build machine is running macOS 10.12 and has Xcode 8 installed on it. OpenCV uses cmake for its build system, so you have to download and install the CMake app for macOS. I got my copy from https://cmake.org I referred to the article listed on Wired Watershed to help me get started. I made the following changes to the project once CMake.app was done processing the source folder.
- Set CMAKE_OSX_ARCHITECTURES value to $(ARCHS_STANDARD_32_64_BIT)
- Set CMAKE_OSX_DEPLOYMENT to 10.8, since my project needed it.
- Unchecked 1394
- I unchecked WITH_LAPACK
- I had to go into the Xcode project and set the C version to c11, and the C++ version to c++14.