mobimeo / node-yolo

Node bindings for YOLO/Darknet image recognition library
https://lab.moovel.com/blog/what-you-get-is-what-you-see-nodejs-yolo
MIT License
372 stars 51 forks source link

Installation error #30

Open ramdesh opened 6 years ago

ramdesh commented 6 years ago

Hi, I have successfully built darknet and was moving on to installing this package, but the node-gyp compilation fails with the following error:

npm install

> @moovel/yolo@0.2.0 install /home/ramindu/projects/darknet/darknet/node_modules/@moovel/yolo
> node-gyp rebuild

make: Entering directory '/home/ramindu/projects/darknet/darknet/node_modules/@moovel/yolo/build'
  CXX(target) Release/obj.target/darknet/darknet.o
../darknet.cc: In member function ‘virtual void ImageDetectionWorker::HandleOKCallback()’:
../darknet.cc:99:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
     callback->Call(argc, argv);
                              ^
In file included from ../darknet.cc:1:0:
../../../nan/nan.h:1568:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../darknet.cc: In instantiation of ‘void VideoDetectionWorker<T>::HandleProgressCallback(const T*, size_t) [with T = WorkerData; size_t = long unsigned int]’:
../darknet.cc:199:1:   required from here
../darknet.cc:47:21: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
     progressCb->Call(argc, argv);
     ~~~~~~~~~~~~~~~~^~~~~~~~~~~~
In file included from ../darknet.cc:1:0:
../../../nan/nan.h:1568:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
  CXX(target) Release/obj.target/darknet/src/demo.o
../src/demo.cc:7:10: fatal error: darknet/network.h: No such file or directory
 #include "darknet/network.h"
          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
darknet.target.mk:111: recipe for target 'Release/obj.target/darknet/src/demo.o' failed
make: *** [Release/obj.target/darknet/src/demo.o] Error 1
make: Leaving directory '/home/ramindu/projects/darknet/darknet/node_modules/@moovel/yolo/build'

My environment details are as follows:

node v6.11.4
npm  v3.5.2

What could be the issue here?