Skip to content
Snippets Groups Projects

Dependencies

To save you from some inconveniences we provide the dependencies Boost, exprtk locally with our distribution. However, you are free to install those on your own and then provide our building tool with relevant paths to your own installations

Linux

  • make
  • C++ compiler

Windows

  • Visual Studio (install together with cl (check C++ options during installation) and SDK!)

Compilation

  • Clone the repository to your PC

    git clone git@code.it4i.cz:moldyn/lib4neuro.git

Linux (Debian-based)

  • Install package libboost-all-dev

    sudo apt-get install libboost-all-dev
  • Set EXPRTK_INCLUDE_DIR environmental variable to the path of your exprtk folder

    export EXPRTK_INCLUDE_DIR="path to the exprtk folder"

or alternativelly download the sources of Boost and exprtk via the download_dependencies.sh script located in the lib4Neuro/build_scripts/linux folder. Those will then be used automatically during the compilation of lib4neuro library

  • Go to the lib4Neuro folder

  • In the file build.sh set correctly variables BUILD_TYPE, CXX_COMPILER and C_COMPILER

  • Run

    ./build.sh

Windows

  • Run the Visual Studio Command Prompt (Start Menu -> Visual Studio *** -> Developer Command Prompt) and go to the lib4Neuro folder

  • If you have Boost already installed, set BOOST_ROOT environmental variable to the path of your folder containing Boost

      1. In Search, search for and then select: System (Control Panel)
      2. Click the Advanced system settings link.
      3. Click Environment Variables.
      4. In the New System Variable window, specify the value of the `BOOST_ROOT` environment variable
  • If you have exprtk already downloaded, set EXPRTK_INCLUDE_DIR environmental variable to the path of your exprtk folder

  • Alternativelly, if you want to avoid the hassle with downloading the dependencies yourselves, run build_scripts/windows/win_download_dependencies.bat which downloads the Boost and exprtk dependencies and stores them in the external_dependencies folder

  • Go to the lib4Neuro folder

  • In the file build.bat set correctly variables BUILD_TYPE, CXX_COMPILER and C_COMPILER, by default the build type is Debug and MSVC compiler is set

  • Run

    build.bat