Make sure you have these installed when trying the commands below.
- Qt (version 5.2 or higher)
- libqtwebkit
- Doxygen (for the documentation)
On an Ubuntu machine, these can be installed using the following commands:
sudo apt-get install qt5-default qttools5-dev-tools libqt5webkit5 doxygen
Additionally, OpenCV needs to be installed and build correctly so that it can be used in combination with Qt:
# install dependencies
sudo apt-get install build-essential
sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev v4l-utils
mkdir OpenCV3
cd OpenCV3
wget https://github.com/Itseez/opencv/archive/3.0.0.zip
unzip 3.0.0.zip
cd opencv-3.0.0
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D WITH_V4L=ON -D WITH_QT=ON -D WITH_OPENGL=ON ..
make -j 4
sudo make install
sudo /bin/bash -c 'echo "/usr/local/lib" > /etc/ld.so.conf.d/opencv.conf'
sudo ldconfig
In order to capture the drone streams, VLC and the corresponding library LibVLC need to be installed as well:
sudo apt-get install vlc libvlc-dev
To enable Qt to run with vlc, the following command needs to be run.
vlc --reset-plugins-cache
sudo /usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins/
To allow for testing, gstreamer-1.0 needs to be installed:
sudo apt-get install python-gi python3-gi \
gstreamer1.0-tools \
gir1.2-gstreamer-1.0 \
gir1.2-gst-plugins-base-1.0 \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-ugly \
gstreamer1.0-plugins-bad \
gstreamer1.0-libav
First of all, you will need the following commands:
git clone "git@github.ugent.be:shae/workstation"
cd workstation
qmake
After this, you have several possibilities:
- Build and execute the binary using
make release && ./bin/release/frontend
- If you're interested in the debug version, use the following instead:
make debug && ./bin/debug/frontend
- To run all unit tests
make && ./tests/frontend_unit_tests
- To create the documentation
cd .. doxygen docs/Doxyfile