smartrent / grizzly

Elixir Z-Wave Library

Home Page:https://hex.pm/packages/grizzly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compiling zipgateway

tielur opened this issue · comments

I'm trying to find some instructions on how to compile the zipgateway for nerves. I haven't had any luck on finding those instructions.

I'm trying to compile them for the rpi3 target. How do I go about doing that?

Ahh I just noticed that the zipgateway has a README.raspberry_pi at Source/zipgateway-2.81.03-Source/usr/local. I'll attempt to follow those directions

It is also possible to compile it on OSX as well. I haven't done it, but it is possible.

brew install cmake openssl@1.1 bison pidof iproute2mac json-c
brew cask install tuntap

cd usr/local
mkdir build
cd build
cmake \
    -DOPENSSL_ROOT_DIR=$(brew --prefix openssl@1.1) \
    -DBISON_EXECUTABLE=$(brew --prefix bison)/bin/bison \
    ..
make -j4

That should get you close to where you need to be. My assumption is there is a strong possibility you might run into some CMake issues.

I want the compiling zipgateway story to be better, but I haven't had the time to explore it too much.

I have also sent you a DM in the Elixir Slack to discuss more details about your particular needs.

Talking with @mattludwigs via elixir slack helped me get going on raspberry pi. Closing this for now