Skip to content

Installation Guide

JoeyMa edited this page Apr 14, 2022 · 5 revisions

This page provides instructions for how to correctly install the Guitartuner application.

This part is mainly discussing about software part required to run the program.

For hardware and driver part, please refer to the link, please make sure your hardware is configured correctly before next step.

Prerequisites

In order for the Guitartuner program to function correctly, the following prerequisites must first be installed on the Raspberry Pi:

  • git
  • cmake
  • libboost-test-dev
  • fftw3
  • qt5
  • qwt

To install these prerequisites, run the following in a terminal:

sudo apt-get install libasound2-dev python3-pip libboost-test-dev libfftw3-dev qtdeclarative5-dev-tools libqwt-qt5-dev qtmultimedia5-dev qtbase5-dev

linking

sudo ldconfig

Installing Guitartuner

Once the prerequisites are installed, the application can be downloaded and built.

git clone https://github.com/LancerMar/GuitarTuner
cd GuitarTuner

Run the executable

You can compile the release version of our project by using following command on RaspberryPi

mkdir release
cd release/
cmake -DCMAKE_BUILD_TYPE=Release ..
make

The guitartuner is the excutable file, run it.

./guitartuner

Debug

You can compile the debug version of our project by using following command on RaspberryPi

mkdir debug
cd debug/
cmake -DCMAKE_BUILD_TYPE=Debug ..
make

The guitartuner is the excutable file

You can use

gdb -tui guitartuner

to debug this program

Running Tests

To run the unit tests

make test

Clone this wiki locally