- If Xcode is not already installed, install it
- Install Qt Creator (with Qt 5.X). You can select a free, open source version. When installing it, select at least 1 version that is 5.1 or higher.
- Install OpenCV (with Homebrew, for example:
brew install opencv
) - Install pkg-config (with Homebrew:
brew install pkg-config
) - Open QT Creator, then open the
.pro
file,CameraMouseSuite-cross-platform.pro
. - Run the program by pressing cmd-R, or click on the
Build
menu, then clickRun
.
Make sure you have Xcode installed first. If you don't, Qt Creator may go into a loop during install and the only way out is to kill the install process and begin again. If you've installed Xcode and are still getting the error, according to these two sources one and two, open Xcode, go to Preferences, and change the Command Line Tools to point at the most recent version (Preferences -> Locations
, or Preferences -> Downloads -> Components
, depending on your version).
If you get a permission error regarding /usr/local/Frameworks
, copy and paste the steps into your terminal, as explained here:
sudo mkdir /usr/local/Frameworks
sudo chown $(whoami):admin /usr/local/Frameworks
- Install Qt Creator (with Qt 5.X)
- Install OpenCV (the easiest way is to use the pre-built libraries
- Set the environment variable
OPENCV_DIR
as described here - Set the environment variable
OPENCV_INCLUDE
to the OpenCVinclude
directory