Last active
May 2, 2021 07:26
-
-
Save kbialek/625bfe7c3a285529989374b9febd5ac8 to your computer and use it in GitHub Desktop.
Build logiops for Ubuntu 20.04 using Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/PixlOne/logiops does not build under Ubuntu 20.04 | |
# This gist show how to build the library using Ubuntu 20.10 running in a docker container | |
# Clone the repo | |
git clone git@github.com:PixlOne/logiops.git | |
cd logiops | |
git checkout v0.2.3 | |
# Start Ubuntu 20.10 docker container | |
docker run -ti --rm -v $(pwd):/logiops ubuntu:20.10 /bin/bash | |
# In the docker container | |
apt update | |
apt install build-essential | |
apt install cmake libevdev-dev libudev-dev libconfig++-dev | |
cd /logiops | |
mkdir docker-build | |
cd docker-build | |
cmake .. | |
make | |
exit | |
# Prepare for installation | |
mkdir build | |
cd build | |
cmake .. | |
vim Makefile | |
# go to line 84 | |
# comment out dependency on preinstall goal, so it look like this | |
# install: # preinstall | |
# save and exit vim | |
# Copy the binary | |
cp ../docker-build/logid . | |
# Install the service | |
sudo make install | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment