ImageNet Designer - Installation Tutorial

= Windows =

Installation of ImageNet Designer
Get a precompiled Windows Installer Version of ImageNet Designer from here Installers

If you get an error message when starting the Designer, you might need to install
 * 1) Microsoft Visual C++ 2008 Redistributable Package
 * 2) New Graphics Drivers (AMD (Radeon) or nVidia)
 * 3) (DirectX)

How to compile a Plugin
Installations
 * 1) [Qt] (Qt libraries 4.7.3 for Windows (minGW 4.4, 319 MB))
 * 2) [MinGW] (MinGW libraries)
 * 3) [Cygwin] (Important Note: Some packages, needed for ImageNet Compilation ( make, gdb, g++ ) are not selected by default. Manually select them from Select Packages option while installing. The needed packages are found in the Devel Category. In order to select, click on 'Skip' under menu New )
 * 4) [OpenCV] (select the 2.1 version. win32.EXE, not ZIP!)

Setup System Variables (Start/Systemsteuerung/System/Erweitert/Umgebungsvariablen)
 * 1) OPENCV_ROOT=C:/OpenCV2.1 (forward slash is important! Do not use backward slash.)
 * 2) QTDIR=C:/Qt/4.7.3 (forward slash is important! Do not use backward slash.)
 * 3) add to PATH (the order is very important!)
 * 4) ;C:/mingw/bin (for MinGW compiler)
 * 5) ;C:/cygwin/bin (for Cygwin compiler)
 * 6) ;C:/Qt/4.7.3/bin (for Qt libraries)
 * 7) (totally you have to add to the existing Path variable at the end: ;C:/mingw/bin;C:/cygwin/bin;C:/Qt/4.7.3/bin)

Compilation can be done over the console:
 * 1) Open a console (Press "Windows-Key + R" and type in the popup-Window "cmd")
 * 2) Navigate to the compilation folder (Hint: Use Total Commander and Select from the Commands menu "Open command prompt window")
 * 3) C:\Programme\ImageNet Designer\build\libImageNetExternal\MinGW
 * 4) Compile
 * 5) make -f libImageNetExternal.mak all

How to create a Windows Installer

 * 1) Adjust the version number in package logicNet to number X.Y with current date
 * 2) Compile all needed components with the compile script etc/ImageNets/Scripts/Windows/00_cleanup_generate_make.bat
 * 3) Adjust the script etc/ImageNets/Scripts/Windows/10_copy.bat to your installation paths of Qt, OpenCV and ROOT
 * 4) run this script to create a folder next to your ROOT folder
 * 5) Start Advanced Installer (http://www.advancedinstaller.com/download.html)
 * 6) Select Simple Installer, Project Name: ImageNets, Company: IAT, Setup File Name: ImageNets_X.Y (X.Y is current version)
 * 7) Install Parameters: [WindowsVolume]/[ProductName]
 * 8) Setup Icon for Desktop Link: resources/ImageNets/icons/ImageNets_big.ico and remove the *.exe extension from the link.

= Linux (Ubuntu 10.04.1 LTS) =

Preliminaries
Install Ubuntu 10.04 LTS Download Ubuntu 10.04 LTS

Compile OpenCV 2.1 sudo apt-get install build-essential libgtk2.0-dev libavcodec-dev libavformat-dev libjpeg62-dev libtiff4-dev cmake libswscale-dev libjasper-dev cd wget http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.1/OpenCV-2.1.0.tar.bz2 tar -xjf OpenCV-2.1.0.tar.bz2 mkdir opencv.build cd opencv.build cmake ../OpenCV-2.1.0 make -j 2 sudo make install sudo ldconfig

Install OpenCV 2.1 (as alternative to compilation) I tested this in Ubuntu 11.10. Then the makefiles include dir of OpenCV has to be changed to /usr/include/opencv from /usr/local/include/opencv or you add a symbolic link: "sudo ln -s /usr/include/opencv /usr/local/include/opencv" sudo apt-get install libcv2.1 libcv-dev libcvaux2.1 libcvaux-dev libhighgui2.1 libhighgui-dev opencv-doc

change LOG_INFO to LOG_INFO_1 if you get compile problems due to cxflann.h sudo kate /usr/local/include/opencv/cxflann.h

Install Qt sudo apt-get install libqt4-dev

sudo mkdir /usr/include/qt4/include sudo ln -s /usr/include/qt4/* /usr/include/qt4/include

echo "export QTDIR=/usr/include/qt4" >> ~/.bashrc
 * 1) Set QT variable in ~/.bashrc (restart console)

Download precompiled ImageNets
This procedure is meant as an alternative to the afterwards mentioned svn & compilation method.

Download ImageNets cd wget http://sourceforge.net/projects/imagenets/files/ImageNets-unix/1.0.15/imagenets_1.0.15.tar.gz/download tar -xzvf download sudo ln -s ~/imagenets/lib/libLogicNet.so /usr/lib/libLogicNet.so sudo ln -s ~/imagenets/lib/libMVR.so /usr/lib/libMVR.so //from version 2.2

Building ImageNets
Download current version cd svn co https://imagenets.svn.sourceforge.net/svnroot/imagenets

Build LogicNetSVNRevisionParser, libLogicNet and libMVR(this is the basis for all other components) cd ~/imagenets/build/LogicNetSVNRevisionParser/nightly make -f *.mak all

cd ~/imagenets/build/libLogicNet/nightly make -f *.mak all sudo ln -s ~/imagenets/lib/libLogicNet.so /usr/lib/libLogicNet.so #Add symbolic Link for libLogicNet

cd ~/imagenets/build/libMVR/nightly make -f *.mak all sudo ln -s ~/imagenets/lib/libMVR.so /usr/lib/libMVR.so #Add symbolic Link for libMVR from version 2.2

Build all Components cd ~/imagenets/build ./makeAll

Build ImageNet Designer cd ~/imagenets/build/ImageNetDesigner/nightly make -f *.mak all

Build one Plugin cd ~/imagenets/build/libImageNet*/nightly make -f *.mak all