How to Compile acidcamGL for macOS

Required libraries: libacidcam, GLFW, OpenGL, OpenCV, FFmpeg

Step 1: Install Homebrew (https://brew.sh)

Step 2: install Xcode command line tools.

Step 3: Then install the required libraries:

brew install glfw3 opencv ffmpeg

Depending on what is already installed, this could take quite some time.

Step 3: Download and install libacidcam

git clone https://github.com/lostjared/libacidcam.git
cd libacidcam
mkdir build && cd build
cmake ..
make -j4
sudo make install

Step 4: Download and install acidcamGL

git clone https://github.com/lostjared/acidcamGL.git
cd acidcamGL
mkdir build && cd build
cmake ..
make -j4
sudo make install

Post Install configuration:
Depending on what version of MacOS you are running you may have to export the DYLD_LIBRARY_PATH with the location of libacidcam.dylib. You can do this as follows.

export DYLD_LIBRARY_PATH=/usr/local/lib

Output location fo shaders: Depending on what shaders you want to use when running the program (your own or the ones I have provided) You can export the SHADER_PATH variable with there location. Enter the directory where you download acidcamGL in the terminal and issue:

export SHADER_PATH=`pwd`/filters

If you are in the directory with the filters folder it will output the correct location of the shaders. You can add the full pathname to your .bash_profile if you don't want do it every time you want to run the program.

You may have to allow the terminal to use your webcam and the first time you load the program it will take a while to come up. Enjoy
-Jared