A manual installation might be required to avoid conflicts with an already existing installation of some of the Dragonfly App dependencies. Specifically the Automatic installation installs:
- FFMPEG version 3.4.2.
- OpenCV version 3.4.1.
To proceed with the manual installation:
- Update and upgrade the repositories first
sudo apt-get -y update
sudo apt-get -y upgrade - Install the following packages from the APT package manager:
sudo apt-get -y install cmake
sudo apt-get -y install git
sudo apt-get -y install libgtk2.0-dev
sudo apt-get -y install yasm
sudo apt-get -y install libgstreamer1.0-dev
sudo apt-get -y install libgstreamer-plugins-base1.0-dev
sudo apt-get -y install gstreamer1.0-libav
sudo apt-get -y install gstreamer1.0-plugins-bad
sudo apt-get -y install gstreamer1.0-tools
sudo apt-get -y install gstreamer1.0-plugins-good
sudo apt-get -y install gstreamer1.0-plugins-ugly
sudo apt-get -y install gstreamer1.0-nice
sudo apt-get -y install ant
sudo apt-get -y install openjdk-11-jdk - Install wget
sudo apt install wget
- Download the Ubuntu 20.04 LTS archive or the Ubuntu 18.04.6 archive with one of these 2 commands:
wget https://dragonflyupdate.s3.eu-central-1.amazonaws.com/dragonfly-deployment-2.4/dragonfly-installation-linux-2.4.0.21-Ubuntu20.zip
wget https://dragonflyupdate.s3.eu-central-1.amazonaws.com/dragonfly-deployment-2.4/dragonfly-installation-linux-2.4.0.21-Ubuntu18.zip -
Extract the Ubuntu 20.04 LTS archive or the Ubuntu 18.04.6 archive with one of these 2 commands:
unzip dragonfly-installation-linux-2.4.0.21-Ubuntu20.zip
unzip dragonfly-installation-linux-2.4.0.21-Ubuntu18.zip - Install FFMPEG 3.4.2:
cd dragonfly-linux/data
tar -xvf ffmpeg-3.4.2.tar.xz
cd ffmpeg-3.4.2
./configure --enable-nonfree --enable-pic --enable-shared
make -j4
sudo make install - Set some environment variables:
jvm=$( ls /usr/lib/jvm | grep "1.11.0-openjdk" )
export JAVA_HOME=/usr/lib/jvm/${jvm}
export ANT_HOME=/usr/share/ant/
- Install OpenCV 3.4.1 (note that the
make -j4
can take some time to complete):
cd dragonfly-linux/data
unzip opencv-3.4.1.zip
cd opencv-3.4.1
mkdir build
cd build
cmake ..
make -j4
sudo make install - Install the Dragonfly App:
# Extract the dragonfly archive
cd dragonfly-linux/data
mkdir application
unzip -o dfja-2.4-dist.zip -d application# Copy the OpenCV java library in the Dragonfly directory
cp /usr/local/share/OpenCV/java/libopencv_java341.so ./system/lib/
chmod +x ./system/lib/libopencv_java341.so - Install the following 2 packages:
sudo apt-get -y install ffmpeg
sudo apt-get -y install libswresample-dev
During the installation you will be asked if you intend to install the dependencies needed to use our experimental depth prediction algorithm that makes use of the NVIDIA GPU with CUDA. Please answer NO!