Compile Plug on Ubuntu 21.10

I'm not a developer and the last time I compiled a C source code was in the 90's on Commodore Amiga, using GCC. 
Finding all the packages needed for the compilation on my Ubuntu 21.10 laptop took a long time and I had to understand how CMakefile works, but in the end I succeded!

To compile Plug from source code I needed to install some packages:

apt-get install unzip cmake libusb-1.0-0-dev build-essential pkg-config googletest qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools libgmock-dev

I got the source code from GitHub:
wget https://github.com/offa/plug/archive/refs/heads/master.zip

Then I unzipped the code and cd to the source folder; from source folder I run the following commands:

mkdir build && cd build
cmake ..
make
make unittest
make install

When the compilation completed, I run the executable:

plug




Commenti

Post popolari in questo blog

Build the footswitch (part 2)

Build the footswitch (part 1)

Add more preset selections to Plug