Skip to content

Instantly share code, notes, and snippets.

@petonic
Forked from chriskacerguis/install.md
Last active June 9, 2021 12:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save petonic/d4a450c5227f718538f67a2595fb34f8 to your computer and use it in GitHub Desktop.
Save petonic/d4a450c5227f718538f67a2595fb34f8 to your computer and use it in GitHub Desktop.
Install OZWCP on Ubuntu

First, install some (probably) important libraries:

apt-get update
apt-get install libgnutls28-dev libgnutlsxx28

Download, build and install libmicrohttpd

cd
wget ftp://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.19.tar.gz
tar zxvf libmicrohttpd-0.9.19.tar.gz
mv libmicrohttpd-0.9.19 libmicrohttpd
cd libmicrohttpd
./configure
make
make install

Download and build the open-zwave library

cd
git clone https://github.com/OpenZWave/open-zwave.git
cd open-zwave
make

Download open-zwave-control-panel

cd
git clone https://github.com/OpenZWave/open-zwave-control-panel.git
cd open-zwave-control-panel

Open the Makefile and find the following line:

OPENZWAVE := ../
LIBMICROHTTPD := -lmicrohttpd

Change it to:

OPENZWAVE := ../open-zwave
LIBMICROHTTPD := /usr/local/lib/libmicrohttpd.a

Build ozwcp

make
ln -sd ../open-zwave/config

And finally, run it!

./ozwcp -p 8888
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment