Installation: Difference between revisions

From Alida
Jump to navigationJump to search
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
On this page you find install instructions for Alida in C++ and in Java.
On this page you find install instructions for Alida in Java.<br>
For information about the C++ implementation refer to the C++ page to be found [[CPlusPlus|here]].


== Java ==
== Installing and Using Alida's Java version ==
There are different ways how to get and install Alida which are listed and explained below. Just select the option fitting to your needs and follow the instructions.


Extract the download Alida_bin.zip and change the current working directory to the top level directory
=== Trying Alida: Alida's binary distribution ===
of the extracted files.
If you would like to see how Alida, its operator runners and Grappa work the easiest is to download and run its binary distribution from the Maven repository server: [https://moon.informatik.uni-halle.de/archiva/#artifact/de.unihalle.informatik.Alida/alida/2.7 Alida 2.7 on Maven repository server]
 
Download the binary zip archive from the Artifacts section and extract the zip file to a directory of your choice.<br>
Then change to that directory of the extracted files.
<p>
<p>
You can start grappa using
You can start Grappa (on Linux systems) using
<pre>
<pre>
tcsh share/scripts/runAlida.tcsh  
tcsh ./runAlida.tcsh  
</pre>
</pre>


Line 14: Line 19:


<pre>
<pre>
bash share/scripts/runAlida.bash
bash ./runAlida.bash
</pre>
</pre>


If you grant execute permissions to these scripts you can start them directly, e.g.
If you grant execute permissions to these scripts you can start them directly, e.g.
<pre>
<pre>
share/scripts/runAlida.tcsh
./runAlida.tcsh
</pre>
</pre>


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


To start the graphical user interface to configure and start operators you may use
To run the graphical user interface to configure and start operators you may use
<pre>
<pre>
share/scripts/runAlida.tcsh guioprunner
./runAlida.tcsh guioprunner
</pre>
</pre>


The command line interface is invoked, e.g., via
The command line interface is invoked, e.g., via
<pre>
<pre>
share/scripts/runAlida.tcsh oprunner -h
./runAlida.tcsh oprunner -h
</pre>
</pre>
which displays the help message.
which displays the help message.


== 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.
=== Using Alida as a library in your own code ===
# Extract the archive to a directory of your choice which we denote by ''ALIDA_HOME'' in the following.
For using Alida as a library in your own code the most easy way to fulfill all requirements and dependencies is to use Maven.<br> Since Alida version 2.4 we offer a template Maven project which you can use as a starting point for your work:
# 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''.
* Maven-Template Project: [http://www2.informatik.uni-halle.de/agprbio/alida/downloads/alida-project-template-maven-1.2-src.zip zip]<br>
# 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'.
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.
# 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>
=== Building Alida from the Github sources and Contributing ===
If you would like to build Alida by yourself, e.g., for modifying or extending core functionality you should build and install Alida from the Github sources.


==== Optional: include OpenCV demo operator and provider ====
==== Building Alida from the sources ====
For compiling Alida you need to have installed the following software on your computer:
* JDK 1.8
* Maven 3.x or higher


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>
For building Alida follow the instructions below:
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>
* clone Alida's repository on Github:<pre>git clone https://github.com/alida-hub/alida.git</pre>
#############################################################################
* compile the sources by running Maven as follows: <pre> mvn compile </pre>
# user-specific configuration
* for running included unit tests run: <pre> mvn test </pre>
#############################################################################
* to package a new release or snapshot run: <pre> mvn package </pre>
 
Further information about how to build and package sources using Maven can be found on [https://maven.apache.org/ Maven's webpage].<br>
Particulary the section [https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html Maven in 5 Minutes] might be of interest for beginners.
 
If you prefer to use an IDE like Eclipse you can easily import the Alida project into your workspace.<br>
Note that you need to install the 'm2e' extensions in Eclipse first.
 
Given that Maven is correctly installed in Eclipse just select 'File' -> 'Import...' and then under 'Maven' the item 'Existing Maven projects',<br> and select as root directory for the import the directory to where you cloned Alida's sources.<br> For all other settings you can just stick to the defaults.


OPENCV_SUPPORT = no
==== Contributing to Alida ====
OPENCV_INCLUDE = /usr/include
The easiest way to contribute to Alida is by making use of pull requests on Github.
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>
You can find documentation about pull requests and how to create them on [https://help.github.com/articles/proposing-changes-to-a-project-with-pull-requests/ Github].
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>

Latest revision as of 13:39, 21 July 2016

On this page you find install instructions for Alida in Java.
For information about the C++ implementation refer to the C++ page to be found here.

Installing and Using Alida's Java version

There are different ways how to get and install Alida which are listed and explained below. Just select the option fitting to your needs and follow the instructions.

Trying Alida: Alida's binary distribution

If you would like to see how Alida, its operator runners and Grappa work the easiest is to download and run its binary distribution from the Maven repository server: Alida 2.7 on Maven repository server

Download the binary zip archive from the Artifacts section and extract the zip file to a directory of your choice.
Then change to that directory of the extracted files.

You can start Grappa (on Linux systems) 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 directory.

To run 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.


Building Alida from the Github sources and Contributing

If you would like to build Alida by yourself, e.g., for modifying or extending core functionality you should build and install Alida from the Github sources.

Building Alida from the sources

For compiling Alida you need to have installed the following software on your computer:

  • JDK 1.8
  • Maven 3.x or higher

For building Alida follow the instructions below:

  • clone Alida's repository on Github:
    git clone https://github.com/alida-hub/alida.git
  • compile the sources by running Maven as follows:
     mvn compile 
  • for running included unit tests run:
     mvn test 
  • to package a new release or snapshot run:
     mvn package 

Further information about how to build and package sources using Maven can be found on Maven's webpage.
Particulary the section Maven in 5 Minutes might be of interest for beginners.

If you prefer to use an IDE like Eclipse you can easily import the Alida project into your workspace.
Note that you need to install the 'm2e' extensions in Eclipse first.

Given that Maven is correctly installed in Eclipse just select 'File' -> 'Import...' and then under 'Maven' the item 'Existing Maven projects',
and select as root directory for the import the directory to where you cloned Alida's sources.
For all other settings you can just stick to the defaults.

Contributing to Alida

The easiest way to contribute to Alida is by making use of pull requests on Github.

You can find documentation about pull requests and how to create them on Github.