Installation: Difference between revisions

From Alida
Jump to navigationJump to search
No edit summary
Line 46: Line 46:


Just unzip the archive to a directory of your choice and follow the instructions in the README file included.<br> The project already defines all repositories and dependencies required to use Alida's functionality.
Just unzip the archive to a directory of your choice and follow the instructions in the README file included.<br> The project already defines all repositories and dependencies required to use Alida's functionality.
== C++ ==
The C++ implementation of Alida currently works only on Linux machines.
For installing Alida perform the following steps:
# Download the tar or zip archive from the [[Downloads]] section of this website.
# Extract the archive to a directory of your choice which we denote by ''ALIDA_HOME'' in the following.
# Download [http://loki-lib.sourceforge.net/index.php?n=Main.HomePage Loki], i.e. go to the [http://sourceforge.net/projects/loki-lib/files/Loki/ SourceForge project page] and download release 0.1.7 of the Loki library.
# Extract the Loki archive to the folder ''ALIDA_HOME/external''.<br>Alternatively you can extract it somewhere else and set a link to that directory in ''ALIDA_HOME/external''.
# Define an environment variable ''''ALIDA_CPP'''' with the path of your Alida installation, i.e. the path of ''ALIDA_HOME''.
# Enter the directory ''ALIDA_HOME/src'' and type 'make'.
# The demo operator and the command line operator runner will be built.<br>To run the demo operator, enter the directory ''ALIDA_HOME/src/runner/o.<your-machine>'' and execute it with
<pre>./ALDOpRunner DemoOperator intval=4711 doubleval=0.999999 floatval=0.123 stringval="Alida-Cpp"</pre>
==== Optional: include OpenCV demo operator and provider ====
To activate the OpenCV demo you need to have the OpenCV available on your system. Install instructions can be found [http://opencv.willowgarage.com/wiki/InstallGuide here].<br>
To build the OpenCV related classes of Alida edit the configuration file ''ALIDA_HOME/src/config.mk''.<br>
On top of the file you find a configuration section which defines three variables:
<pre>
#############################################################################
# user-specific configuration
#############################################################################
OPENCV_SUPPORT = no
OPENCV_INCLUDE = /usr/include
OPENCV_LIB = /usr/lib
</pre>
Change the value of '''OPENCV_SUPPORT''' to 'yes' and set include and library path variables according to your OpenCV installation.<br>
Afterwards rebuild Alida by running 'make clean all'. The OpenCV demo operator can be run with
<pre>
./ALDOpRunner DemoOperatorOpenCV inputImg=<example_image> sigma=151
</pre>

Revision as of 17:35, 22 January 2016

On this page you find install instructions for Alida in C++ and in Java.

Java

Running Alida's operator runners and Grappa from command line

Extract the download Alida_bin.zip and change the current working directory to the top level directory of the extracted files.

You can start grappa using

tcsh ./runAlida.tcsh 

or

bash ./runAlida.bash

If you grant execute permissions to these scripts you can start them directly, e.g.

./runAlida.tcsh

If you in addition modify the variable ALIDA_HOME in these scripts you can start them from any any directory.

To start the graphical user interface to configure and start operators you may use

./runAlida.tcsh guioprunner

The command line interface is invoked, e.g., via

./runAlida.tcsh oprunner -h

which displays the help message.


Using Alida as a library in your own code

For using Alida as a library in your own code the most easy way to fulfill all requirements and dependencies is to use Maven.
Since Alida version 2.4 we offer a template Maven project which you can use as a starting point for your work:

  • Maven-Template Project: zip

Just unzip the archive to a directory of your choice and follow the instructions in the README file included.
The project already defines all repositories and dependencies required to use Alida's functionality.