Skip to content

Prerequisites

uboot edited this page Aug 4, 2015 · 5 revisions

This page outlines the necessary and recommended prerequisites for the development of stromx and stromx-studio on Linux and Windows.

Stromx relies on several third-party libraries for its full functionality. However, the build the core library only boost++ is necessary. To get serialization support in the runtime library xercesc and libzip are additionally required. The cv* libraries provide image processing operators and rely on opencv. The Python bindings of stromx require a Python distribution. Finally, cppunit is needed to build the unit tests.

Stromx-studio depends only on the runtime library of stromx and Qt. The cv* libraries and hence opencv are not required but it is much more fun if they are available. However, the version of stromx runtime used together with stromx-studio must support serialization, i.e. it must have been compiled and linked against xercesc and libzip.

The recommended tools are mainly for development and design (the UML tool) and are not required to build either stromx or stromx-studio.

Linux

Necessary prerequisites

  • boost++: Download using the package manager of your distribution.
  • CMake: Download using the package manager of your distribution.
  • git: Download using the package manager of your distribution.

Recommended prerequisites

  • opencv: Check the latest version from here or download using the package manager of your distribution.
  • doxygen: Download using the package manager of your distribution.
  • cppunit: Download using the package manager of your distribution.
  • libzip: Download using the package manager of your distribution.
  • xerces-c: Download using the package manager of your distribution.
  • python: Download using the package manager of your distribution.

Prerequisites for stromx-studio

  • Qt4 or Qt5: Download using the package manager of your distribution.

Recommended tools

  • Visual Paradigm for UML: Download the free community edition for Linux here.
  • KDevelop4: Download using the package manager of your distribution.
  • Eclipse is an alternative to using KDevelop4: Download using the package manager of your distribution and consider this manual to import the project.

Windows

Necessary prerequisites

  • Visual C++: Download Visual Studio 2010 C++ Express and install. Stromx can also be build with Visual Studio 2008 SP1 (SP1 is required for std::tr1).
  • Stromx requires the header file stdint.h which seems to be part of Visual Studio 2010 only. For Visual Studio 2008 download it from msinttypes and copy it to a location which is part searched for includes by Visual Studio. The msinttypes package also provides inttypes.h which must be copied to the same location for both versions of Visual Studio.
  • boost++: Download the installer from boostpro and install the multithreaded release and/or debug DLLs (depending on whether you plan to build the release and/or debug version of stromx).
  • CMake: Download here and install.
  • git: Download here and install.

Recommended prerequisites

  • opencv: Download the Windows superpack here and install it to C:\\openv. Compile it using CMake. It seems to be okay to use the source directory as build directory. It is also okay to delete all unused binaries (like version for x64 if you are working on an x86 machine, android version etc.) which saves a lot of space.
  • doxygen: Download here and install.
  • cppunit: Download the source here and compile a static library using this CppUnitCMake file in src/cppunit.
  • xerces-c: Download the version for your version of Visual Studio here and unpack.
  • libzip: The sources of this library can be obtained here. Libzip requires zlib to compile which can be obtained here. The source packages of both libraries contain CMake files. It is advisable to choose the source directory as build directory in the CMake configuration. Note that even if the complete solutions can not successfully be compiled chances are that the libraries could be build.
  • python: Download (version 2.7 has been tested) (here)[http://www.python.org/getit/].

Prerequisites for stromx-studio

  • Qt4 or Qt5: Download here for your version of Visual Studio.

Recommended tools

  • Visual Paradigm for UML: Download the free community edition for Windows here.

Configuration

  • Set the environment variable BOOST_ROOT.
  • Set the environment variable XERCESC_ROOT.
  • Add the paths to the zlib, libzip, xercesc, boost++ and opencv DLLs to Path.