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
-
Install Qt using the official online installer or using the package manager:
sudo apt install \ qtbase5-dev \ libqt5svg5-dev \ libqt5opengl5-dev \ qttools5-dev
-
Install the required packages:
sudo apt install libqwt-qt5-dev libgsl-dev libmuparser-dev zlib1g-dev
-
Install python modules (optional):
Using the package manager:
sudo apt install pyqt5-dev python3-pyqt5
Or using pip:
pip3 install sip pyqt5 pyqt-builder
-
Install GoogleTest (optional):
sudo apt install libgtest-dev
-
In the top level directory:
mkdir build && cd build cmake .. <CMake-Options> <Project-Options> make
-
Install Qt using the official online installer or using vcpkg
vcpkg install qt5-base qt5-svg qt5-tools qt5-translations --triplet x64-windows
-
Install the required packages using vcpkg:
vcpkg install qwt gsl muparser zlib --triplet x64-windows
-
Install python modules (optional) using pip:
pip3 install sip pyqt5 pyqt-builder
-
Install GoogleTest (optional) using vcpkg:
vcpkg install gtest --triplet x64-windows
-
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>
-
Install Qt either using the official online installer or using homebrew
brew install qt@5
-
Install the required packages using homebrew:
brew install qwt gsl muparser
-
Install GoogleTest (optional) using vcpkg:
brew install googletest
-
In the top level directory:
mkdir build && cd build cmake .. <CMake-Options> <Project-Options> make
-DCMAKE_BUILD_TYPE=<CONFIG>
: Release or Debug
-DCMAKE_INSTALL_PREFIX=<Path>
: Where to install the project
-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)