Hello,
I have trouble to install the pimatic-dht22-sensors plugin. I already know that it depends on the node module “node-dht22-sensor” and that this needs the “bcm2835” library (http://www.airspayce.com/mikem/bcm2835/) to work.
The bcm2835 library, wiringpi, etc. is installed, but I still get an compilationerror from node-gyp when I try to install the pimatic plugin.
I really don’t know what I am doing wrong. I’m using the most recent raspbian image (Linux pimatic 4.4.26-v7+ #915 SMP Thu Oct 20 17:08:44 BST 2016 armv7l GNU/Linux), Node.js version 4.4.5, npm version 2.15.5.
Below you can see the short error message, the complete Message is here (https://dl.dropboxusercontent.com/u/1004417/Errormessage.txt)
../node-dht-sensor.cpp:281:49: note: candidate is:
In file included from /root/.node-gyp/4.4.5/include/node/node.h:42:0,
from ../node-dht-sensor.cpp:1:
/root/.node-gyp/4.4.5/include/node/v8.h:4349:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>, int)
static Local<FunctionTemplate> New(
^
/root/.node-gyp/4.4.5/include/node/v8.h:4349:34: note: no known conversion for argument 1 from ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’ to ‘v8::Isolate*’
../node-dht-sensor.cpp: In function ‘v8::Handle<v8::Value> Read(const int&)’:
../node-dht-sensor.cpp:208:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
../node-dht-sensor.cpp: In function ‘v8::Handle<v8::Value> ReadSpec(const int&)’:
../node-dht-sensor.cpp:247:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
../node-dht-sensor.cpp: In function ‘v8::Handle<v8::Value> Initialize(const int&)’:
../node-dht-sensor.cpp:273:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
node-dht-sensor.target.mk:86: recipe for target 'Release/obj.target/node-dht-sensor/node-dht-sensor.o' failed
make: *** [Release/obj.target/node-dht-sensor/node-dht-sensor.o] Error 1
make: Leaving directory '/opt/pimatic-app/node_modules/pimatic-dht-sensors/node_modules/node-dht-sensor/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.4.26-v7+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /opt/pimatic-app/node_modules/pimatic-dht-sensors/node_modules/node-dht-sensor
gyp ERR! node -v v4.4.5
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
npm ERR! Linux 4.4.26-v7+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "pimatic-dht-sensors"
npm ERR! node v4.4.5
npm ERR! npm v2.15.5
npm ERR! code ELIFECYCLE
>npm ERR! node-dht-sensor@0.0.5 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-dht-sensor@0.0.5 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the node-dht-sensor package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs node-dht-sensor
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls node-dht-sensor
npm ERR! There is likely additional logging output above.
>npm ERR! Please include the following file with any support request:
npm ERR! /opt/pimatic-app/npm-debug.log
Is anyone here who could help me? Please…