Skip to content

Building open_iA

Bernhard Froehler edited this page Oct 11, 2018 · 12 revisions

We use CMake as build system. The currently supported (i.e. tested and known to be working) build environments are:

Creating an installer package

You can easily create an installer package. Make sure you have a working build (see above), then follow these steps:

  • In CMake, select the installer type you want to build.

    • Under Windows, we have tested CPACK_BINARY_NSIS. You will have to install the Nullsoft Installer System if you want to build your own installer packages (https://sourceforge.net/projects/nsis/)
    • Under Linux, we have tested CPACK_BINARY_STGZ, which will build a self-extracting tar.gz Archive (.sh extension). The package build process here requires the "patchelf" binary file to be installed and available in the path (should be available in the package repository of all major distributions).
  • In CMake, "Configure" and if everything is successful, "Generate".

  • Build in "Release" mode:

    • In Windows/Visual Studio, this can be selected as Configuration Type in the Visual Studio (Debug/MinSizeRel/RelWithDebInfo/Release combobox)
    • In Linux, this has to be manually specified in CMake under "CMAKE_BUILD_TYPE".
  • Build open_iA (see links at the beginning of this page)

  • Create installer package:

$ cpack

Example output (from Windows, having checked CPACK_BINARY_NSIS):

CPack: Create package using NSIS
CPack: Install projects
CPack: - Install project: open_iA
CPack: Create package
CPack: - package: C:/TOOLS/open_iA/bin/open_iA-2017.05.exe generated.

Clone this wiki locally