Skip to content

Build and Run on Host Computer

Félix Roy edited this page Nov 26, 2019 · 3 revisions

Introduction

This wiki page explains how to build and run the Steno application direcly on the host computer.

Procedure

Secure Boot

You can disable secure boot in the system BIOS)

Depedencies

Here are the dependencies to install.

sudo apt-get install libssl-dev ffmpeg libpulse-dev libfftw3-dev cmake build-essential libconfig-dev libasound2-dev libgl1-mesa-dev

SSL : libssl-dev
FFmpeg : ffmpeg
Pulse Audio : libpulse-dev
ODAS : cmake build-essential libfftw3-dev libconfig-dev libasound2-dev
Qt : libgl1-mesa-dev

Qt

  1. Download the latest version of qt online installer : https://download.qt.io/archive/online_installers/3.1/

  2. Make the installer runnable

    chmod +x ./qt-unified-linux-x64-3.1.1-online.run
    
  3. Run the installer

    ./qt-unified-linux-x64-3.1.1-online.run
    
  4. Select QtCreator and Qt 5.12.6 then start the installation

Git Repository

Clone the git repository. It contains useful scripts to make target setup easier.

git clone https://github.com/introlab/rendezvous.git $HOME/rendezvous

NOTE - For the rest of the procedure, it will be assume that the git repository location is $HOME/rendezvous

ODAS

Launch the setup script

cd $HOME/rendezvous
./scripts/odas_setup.sh

Yolov3

Launch the setup script

cd $HOME/rendezvous
./scripts/yolo_setup.sh

V4l2loopback

  1. Launch the setup script

    cd $HOME/rendezvous
    sudo ./scripts/v4l2_loopback_setup.sh
    
  2. Reboot and make sure the service is running afterwards

    service stenocam status
    

NOTE - To remove a v4l2loopback device : sudo rmmod v4l2loopback NOTE - If this part fails,

Pulse Audio

cd $HOME/rendezvous
sudo ./scripts/StenoMics/automation.sh

Build and Run in QtCreator

  1. Open QtCreator

  2. Open Options window via Tools/Options... then go to Kits options

  3. In Kits tab make sure the default kit has the following :

    • Compiler C : GCC(C, x86 64bit in /usr/bin)
    • Compiler C++ : GCC(C++, x86 64bit in /usr/bin)
    • Debugger : System GDC at /usr/bin/gdb
    • Qt version : Qt 5.12.6 GCC 64bit
  4. Open $HOME/rendezvous/steno/steno.pro project file.

  5. In the Configure Project window select default kit and press Configure Project

  6. In Projects make sure Shadow build is disable and that build configuration is Release

  7. Open steno.pro file in the editor and command line 6

    target = #jetson_tx2

  8. To build right click on the root folder and select Rebuild

  9. To run left click on the green play button