Skip to content

Linux build from console

IKhonakhbeeva edited this page Apr 21, 2019 · 3 revisions

Instruction to build on linux from console

Prebuild action

Install Qt

Download Qt installer
Run it and get packages "Deskktop gcc 64-bit" and "Qt Script" (from any Qt version)

Download necessary packages

  • $ sudo apt-get install git libgl-dev libpulse-dev libusb-1.0-0-dev

Get source files

  • $ git clone https://github.com/trikset/trik-studio/ [<clone_dir>]
  • $ cd <clone_dir>
  • $ git submodule update --init --recursive

Install python

  • $ ./buildScripts/with_pyenv python --version
    This must return "Python 3.5.6"
    If not - read the pyenv manual

Build

  • $ mkdir <build_dir> && cd <build_dir>
  • $ <clone_dir>/buildScripts/with_pyenv <qt_bin_dir>/qmake <clone_dir>/studio.pro CONFIG+=release
    Where <qt_bin_dir> is something like ~/Qt/5.11.3/gcc_64/bin
  • $ <clone_dir>/buildScripts/with_pyenv make -j$(nproc) qmake_all
  • $ <clone_dir>/buildScripts/with_pyenv make -j$(nproc) all