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!
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
wget https://github.com/offa/plug/
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
make
make unittest
make install
When the compilation completed, I run the executable:
plug
Commenti
Posta un commento