Dicaffeine Dicaffeine

Yuri2 compilation


At first you will need to install the basic packages for compilation:

apt install build-essential git curl cmake-curses-gui libjsoncpp-dev libx264-dev libx265-dev libjpeg-dev libpng-dev libcurl4-openssl-dev libiec61883-dev libavc1394-dev libavcodec-dev libavutil-dev libavformat-dev libswscale-dev libglew-dev libsdl1.2-dev libsdl2-dev libboost-all-dev -y

And the script for an automated NDI libraries download:

# download
wget https://dicaffeine.com/_media/bin:scripts:dicaffeine_get_ndi5.sh
# mark as an executable
chmod +x "./bin:scripts:dicaffeine_get_ndi5.sh"
# run it
sudo "./bin:scripts:dicaffeine_get_ndi5.sh" install x86_64-linux-gnu

When finished, download the latest Yuri2 source code, enter the directory and switch to the dicaffeine branch.

# download
git clone https://github.com/melnijir/libyuri.git
# enter the directory
cd ./libyuri
# switch branch
git checkout dicaffeine 

Now you're ready to build your own Yuri2 binary, create build directory and run the compilation:

# create directory
mkdir build
# enter the directory
cd ./build
# configure libyuri
# start compilation, you can add parameter "-j X" where X means to start the build process in parallel in multiple processes
make -j6
# create system package

If everything worked, the package is ready for installation or you can run Yuri2 directly from the build directory:

# run directly
./bin/yuri2 -h
# or install the package
sudo dpkg -i ./yuri2-2.8.0-XXX.deb