Skip to content

Installation Guide

JoeyMa edited this page Apr 19, 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-all-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

Before compiling

you need to use the command

arecord -l

to find which card your sensor connected on your raspberry Pi

after that ,you can open the i2s_mems_mic.h find this line

char const* pcm_name = "plughw:1";//sound device name

make sure the number in "plughw:1" is your card number. For example, if your card number is "card 0" , then you should change "plughw:1" to "plughw:0" , in that way, after compiling, the program can run successfully

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