Building

Required build tools:

Required libraries:

The following steps describe how to compile the DJV source code and the third party libraries that it depends on.

Clone the repository:

git clone https://github.com/darbyjohnston/DJV.git djv-git

Create a new sub-directory and start the build:

mkdir djv-git-Debug
cd djv-git-Debug
cmake ../djv-git -DCMAKE_BUILD_TYPE=Debug -DCMAKE_FIND_FRAMEWORK="LAST"
make -j

Add the install path to your DYLD_LIBRARY_PATH:

export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$PWD/install/lib

Run the confidence tests:

make test

Run the djv player application:

./build/bin/djv

Packaging

Building a DMG package:

mkdir djv-git-Release
cd djv-git-Release
cmake ../djv-git -DCMAKE_BUILD_TYPE=Release -DDJV_BUILD_PACKAGE=TRUE -DCMAKE_FIND_FRAMEWORK="LAST"
make -j
cmake ../djv-git -DDJV_THIRD_PARTY_DISABLE_BUILD=TRUE
make package