smartrent / grizzly

Elixir Z-Wave Library
https://hex.pm/packages/grizzly
Apache License 2.0
91 stars 9 forks source link

Compiling zipgateway #153

Closed tielur closed 4 years ago

tielur commented 4 years ago

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?

tielur commented 4 years ago

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

mattludwigs commented 4 years ago

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.

tielur commented 4 years ago

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