Linux
If you use Arch Linux, you may install the AUR package gerbil-git
.
Requirements
Gerbil was tested on Debian GNU/Linux, Arch Linux and Ubuntu using the GCC compiler.
Please check the requirements and install all needed libraries before continuing.
Make sure you have the matching Qt version installed (Qt5 for master
branch, Qt4 for qt4
branch) including development files.
On Debian and Ubuntu, for Qt5, this is libqt5opengl5-dev
, and for Qt4, libqt4-dev
.
Building
- Install all required libraries.
Obtain the software from Github or via:
git clone https://github.com/gerbilvis/gerbil.git
Run the
configure.sh
script included to initiate the CMake configuration. It takes the path to OpenCV as first argument (if OpenCV was installed through package management, call./configure.sh /usr
).If problems arise or further tuning is required, call
ccmake .
or consult the CMake documentation on altering the build configuration.Run
make
to build the binaries. You will find them in thebin
directory. The GUI version will be calledqgerbil
, the console versiongerbil
.
Note: The source does not come with a facility to install the software (i.e. make install
will not work).
Development
We recommend to use QtCreator as a development platform.
- Configure CMake and build the software as outlined above.
- In QtCreator, open
CMakeLists.txt
contained in the source root directory as a project. Then select the directory where you previously built the software (typically source root) as build directory. - QtCreator will ask you to run CMake within the import dialog. It should just run through using its cache in the build directory.