Merge pull request #9 from guh/add-build-instructions

Add build instruction and close #4
This commit is contained in:
Simon Stürz 2019-01-10 23:59:10 +01:00 committed by GitHub
commit 9c9182b2aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,39 @@
This daemon allows to set up the wireless network using a bluetooth LE connection. The daemon will automatically start a bluetooth low energy server 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. 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 qt5-default 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
## 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 # Config file
nymea-networkmanager will search for a config file in the following locations (in this order): nymea-networkmanager will search for a config file in the following locations (in this order):