Windows Edit

Installation of ImageNet Designer Edit

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 Edit


  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!)
    1. ;C:/mingw/bin (for MinGW compiler)
    2. ;C:/cygwin/bin (for Cygwin compiler)
    3. ;C:/Qt/4.7.3/bin (for Qt libraries)
    4. (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")
    1. C:\Programme\ImageNet Designer\build\libImageNetExternal\MinGW
  3. Compile
    1. make -f libImageNetExternal.mak all

Solutions to Compilation Problems Edit

problem reason solution
Der Befehl "make" ist entweder falsch geschrieben oder konnte nicht gefunden werden. English: 'make' is not recognized as an internal or external command, operable program or batch file. Cygwin is missing in the PATH variable Add to variable "Path": ";C:\cygwin\bin" Notice: Always close and open again the console after you change the system variables otherwise they have no effect.
cv.h: No such file or directory OpenCV headers were not found add the variable OPENCV_ROOT=C:/OpenCV2.1 Notice: The slash is very important! Do not use a backslash.
QString: No such file or directory Qt headers were not found add the variable QTDIR=C:/Qt/4.7.3 Notice: The slash is very important! Do not use a backslash.
moc: Command not found Meta Object Compiler of Qt is not in the Path variable Add to variable "Path": ";C:/Qt/4.7.3/bin"
cannot find -lmingw32 MinGW library was not found Add to variable "Path": ";C:/mingw/bin" - Important!: Put the MinGW variable in front of Cygwin. Maybe you have to clean (make -f libImagenetExternal.mak clean) the source directory.

How to create a Windows Installer Edit

  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 (
  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) Edit

Preliminaries Edit

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
tar -xjf OpenCV-2.1.0.tar.bz2
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

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

Download precompiled ImageNets Edit

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

Download ImageNets

tar -xzvf download
sudo ln -s ~/imagenets/lib/ /usr/lib/
sudo ln -s ~/imagenets/lib/ /usr/lib/ //from version 2.2

Building ImageNets Edit

Download current version

svn co

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/ /usr/lib/ #Add symbolic Link for libLogicNet

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

Build all Components

cd ~/imagenets/build

Build ImageNet Designer

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

Build one Plugin

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