OpenZWave / node-openzwave-shared

OpenZWave addon for Node.js (all versions) including management and security functions
Other
199 stars 113 forks source link

Install Struggles on pi #245

Closed skavan closed 5 years ago

skavan commented 6 years ago

Hi,

Have installed openzwave source and built. Have installed openzwave comtrol panel. It works.

Now am trying to install "npm install openzwave-shared" and am getting this error: node-gyp rebuild

    make: Entering directory '/home/pi/.node-red/node_modules/openzwave-shared/build'
    CXX(target) Release/obj.target/openzwave_shared/src/callbacks.o
    In file included from ../src/callbacks.cc:18:0:
    ../src/openzwave.hpp:29:21: fatal error: Manager.h: No such file or directory
     #include "Manager.h"
                 ^
    compilation terminated.

My Manager.h source file is present in: /home/pi/open-zwave/cpp/src/Manager.h

How might I fix this road-block? raspberry pi stretch. node 8.11.1 npm 1.4.21

Thanks.

skavan commented 6 years ago

So - I copied all the .h files recursively into /usr/local/include and it now compiles!

    cd /home/pi/open-zwave
    sudo rsync -avm --include='*.h' -f 'hide,! */' src /usr/local/include
ekarak commented 5 years ago

Yes - the install script will look for OpenZWave headers in 'standard' locations (eg. /usr/include or /usr/local/include), and will not look at arbitrary locations in the disk.