Skip to content

Latest commit

 

History

History
148 lines (99 loc) · 2.94 KB

INSTALL.md

File metadata and controls

148 lines (99 loc) · 2.94 KB

Makhber - Installation Notes

Generic requirements

In order to compile Makhber, you need to install the following libraries. Easiest is to use your package manager to install prebuilt versions.

  • Qt >= 5.12
  • Qwt >= 6.1
  • GSL
  • muParser
  • zlib

For the optional Python scripting feature, you also need:

  • Python >= 3.5
  • PyQt5
  • sip >= 4.19
  • PyQt-builder (with sip >= 5)

For testing:

  • GoogleTest

Linux

  1. Install Qt using the official online installer or using the package manager:

    sudo apt install \
      qtbase5-dev \
      libqt5svg5-dev \
      libqt5opengl5-dev \
      qttools5-dev
  2. Install the required packages:

    sudo apt install libqwt-qt5-dev libgsl-dev libmuparser-dev zlib1g-dev
  3. Install python modules (optional):

    Using the package manager:

    sudo apt install pyqt5-dev python3-pyqt5

    Or using pip:

    pip3 install sip pyqt5 pyqt-builder
  4. Install GoogleTest (optional):

    sudo apt install libgtest-dev
  5. In the top level directory:

    mkdir build && cd build
    cmake .. <CMake-Options> <Project-Options>
    make

Windows - MSVC

  1. Install Qt using the official online installer or using vcpkg

    vcpkg install qt5-base qt5-svg qt5-tools qt5-translations --triplet x64-windows
  2. Install the required packages using vcpkg:

    vcpkg install qwt gsl muparser zlib --triplet x64-windows
  3. Install python modules (optional) using pip:

    pip3 install sip pyqt5 pyqt-builder
  4. Install GoogleTest (optional) using vcpkg:

    vcpkg install gtest --triplet x64-windows
  5. In the top level directory:

    mkdir build
    cd build
    cmake .. <CMake-Options> <Project-Options> -DCMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake
    cmake --build . --config <CONFIG>

macOS

  1. Install Qt either using the official online installer or using homebrew

    brew install qt@5
  2. Install the required packages using homebrew:

    brew install qwt gsl muparser
  3. Install GoogleTest (optional) using vcpkg:

    brew install googletest
  4. In the top level directory:

    mkdir build && cd build
    cmake .. <CMake-Options> <Project-Options>
    make

Build Options

CMake Options

-DCMAKE_BUILD_TYPE=<CONFIG> : Release or Debug

-DCMAKE_INSTALL_PREFIX=<Path> : Where to install the project

Project Options

-DMAKHBER_BUILD_TESTS=<ON/OFF> : Enable/Disable testing (default:off)

-DMAKHBER_SCRIPTING_PYTHON=<ON/OFF> : Enable/Disable Python scripiting (default:off)

-DMAKHBER_ORIGIN_IMPORT=<ON/OFF> : Enable importing originLab projects (deafult:on)