Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 2.11 KB

README.md

File metadata and controls

32 lines (21 loc) · 2.11 KB

CameraMouseSuite - cross-platform version

Configuring the environment

Mac OS X

  1. If Xcode is not already installed, install it
  2. 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.
  3. Install OpenCV (with Homebrew, for example: brew install opencv)
  4. Install pkg-config (with Homebrew: brew install pkg-config)
  5. Open QT Creator, then open the .pro file, CameraMouseSuite-cross-platform.pro.
  6. Run the program by pressing cmd-R, or click on the Build menu, then click Run.

Troubleshooting

Qt Creator says you must install Xcode

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).

Permission issue when installing opencv or pkg-config with brew

If you get a permission error regarding /usr/local/Frameworks, copy and paste the steps into your terminal, as explained here:

  1. sudo mkdir /usr/local/Frameworks
  2. sudo chown $(whoami):admin /usr/local/Frameworks

Windows

  1. Install Qt Creator (with Qt 5.X)
  2. Install OpenCV (the easiest way is to use the pre-built libraries
  3. Set the environment variable OPENCV_DIR as described here
  4. Set the environment variable OPENCV_INCLUDE to the OpenCV include directory