From 12fec331153667f0ef5261f89b7a7e20fe81aecc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Thu, 10 Jan 2019 21:00:50 +0100 Subject: [PATCH 1/3] Add build instruction and close #4 --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index add43d9..90a29cb 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,33 @@ This daemon allows to set up the wireless network using a bluetooth LE connection. The daemon will automatically start a bluetooth low energy server if the system is currently not connected to any network. Once the system is connected, the daemon will shutdown the bluetooth server. +# Build + +First you have to install build dependencies: + + $ sudo apt update + $ sudo apt install qtbase5-dev qtbase5-dev-tools libqt5bluetooth5 qtconnectivity5-dev git + +Clone the source code and change into the source directory + + $ git clone https://github.com/guh/nymea-networkmanager.git + $ cd nymea-networkmanager + +Create the build directory + + $ mkdir build + $ cd build + +And finally build the daemon and library + + $ qmake .. + $ make -j$(nproc) + +You can run the daemon directly with following command + + $ sudo LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/libnymea-networkmanager/ ./nymea-networkmanager/nymea-networkmanager + + # Config file nymea-networkmanager will search for a config file in the following locations (in this order): From 81c86ce789ebb83f1bea66b6a582723759824158 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Thu, 10 Jan 2019 21:14:30 +0100 Subject: [PATCH 2/3] Add qt5-default package to build instructions --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 90a29cb..948a84a 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ if the system is currently not connected to any network. Once the system is conn First you have to install build dependencies: $ sudo apt update - $ sudo apt install qtbase5-dev qtbase5-dev-tools libqt5bluetooth5 qtconnectivity5-dev git + $ sudo apt install qt5-default qtbase5-dev qtbase5-dev-tools libqt5bluetooth5 qtconnectivity5-dev git Clone the source code and change into the source directory From f498d3175f858a27595c6ccaf33f0856d8e01e3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Thu, 10 Jan 2019 23:58:40 +0100 Subject: [PATCH 3/3] Add debian package build instructions --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 948a84a..2f52326 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,12 @@ You can run the daemon directly with following command $ sudo LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/libnymea-networkmanager/ ./nymea-networkmanager/nymea-networkmanager +## Building the debian package +In order to build a debian package you can do following: + + $ sudo apt install debhelper dh-systemd + $ dpkg-buildpackage -us -uc -tc + # Config file nymea-networkmanager will search for a config file in the following locations (in this order):