Prerequisites

The Programming B2000++ code and examples are integrated in the b2programming package available from the git repository.

In addition Programming B2000++ code and examples, development tools are required. We presume a certain familiarity with these tools, such as a text editor, cmake, make files, and one of the Linux shells (all examples in this document refer to the bash shell).

We recommend to make a copy of the b2programming package for applying modifications.

The following packages are required for working with the Programming B2000++ code and examples:

  • An installed version of B2000++, MemCom, and baspl++ or the source to built by yourself.

  • A text editor for editing C++ files, make files, and test data (or an IDE).

  • The code development packages of your Linux distribution (C++ environment, the Python 3.6+ environment, and all relevant libraries.

  • The cmake build system, version 3.22+.

  • The make utility: make will compile and link code.

  • The baspl++ viewer, the B2000++ browser, and Python code.

The B2000++ and all tools must have been built from the source code and must be accessible. We recommend to build the packages under a Python virtual environment in the user space.

This document refers to a number of environment variables pointing to specific directories, such as the source code top-level directory, the build-top-level directory. The following environment variables are used throughout this document:

  • VIRTUAL_ENV is the path to the virtual environment directory,

    i.e to the built package installation directory. If a virtual environment is installed.

    export SMR_PREFIX=$HOME/SMR
    
  • SMR_PREFIX is the path to the built package installation directory (equal to $VIRTUAL_ENV).

    export SMR_PREFIX=$HOME/SMR
    
  • SMR_SRC is the path to the source code (git checked out) packages.

    export B2SRC=$HOME/SMR