Skip to content

Build instructions for Linux

Hugues Delorme edited this page Mar 13, 2024 · 4 revisions

Dependencies

The following tools are required:

  • git
  • cmake
  • C++ 17 compiler(GCC ≥ 9 or LLVM/Clang ≥ 6)

The following libraries are required:

  • Qt ≥ 5.14
    Note: Qt5 and Qt6 are both supported
  • OpenCascade ≥ 7.3.0

The following libraries are optional:

  • Assimp ≥ 5.0
    Assimp provides support of more mesh formats in Mayo(eg FBX, Collada, 3MF, ...)

Install dependencies

Debian(Ubuntu)

sudo apt update
sudo apt install cmake git g++
sudo apt install qtbase5-dev libqt5svg5-dev libxcb-cursor0
sudo apt install libocct-data-exchange-dev libocct-draw-dev occt-misc libtbb2-dev libxi-dev
sudo apt install libassimp-dev  # Optional

Fedora

dnf update
dnf install make cmake git gcc-c++
dnf install qt5-qtbase qt5-qtsvg xcb-util-cursor
dnf install opencascade-devel
dnf install assimp assimp-devel  # Optional

Arch Linux

pacman -Syu
pacman -Sy make cmake git gcc
pacman -Sy qt5-base qt5-svg xcb-util-cursor
pacman -Sy opencascade libxi
pacman -Sy assimp  # Optional

Build & Run

git clone https://github.com/fougue/mayo.git
mkdir build-mayo && cd build-mayo
cmake ../mayo -DMayo_BuildPluginAssimp=ON
cmake --build . --config Release
./mayo