Code Monkey home page Code Monkey logo

cloudcv's People

Contributors

bloodaxe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cloudcv's Issues

help

WHY? node run.js
dk@ubuntu:~/CloudCV/node_modules/cloudcv$ node run.js

module.js:340
throw err;
^
Error: Cannot find module './build/Release/cv'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/home/dk/CloudCV/node_modules/cloudcv/run.js:1:72)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)

npm install is failing

I'm running a Mac with Yosemite.

I tried to install this by cloning the repository, then running

npm install

and I get the following errors


> (node-gyp rebuild 2> builderror.log) || (exit 0)

  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/bufferutil.node
  SOLINK_MODULE(target) Release/bufferutil.node: Finished
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/validation.node
  SOLINK_MODULE(target) Release/validation.node: Finished

> [email protected] install /Users/michaelwhitley/Documents/Developer/NodeApps/CloudCV/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/bufferutil.node
  SOLINK_MODULE(target) Release/bufferutil.node: Finished
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/validation.node
  SOLINK_MODULE(target) Release/validation.node: Finished

> [email protected] install /Users/michaelwhitley/Documents/Developer/NodeApps/CloudCV/node_modules/mongojs/node_modules/mongodb/node_modules/kerberos
> (node-gyp rebuild 2> builderror.log) || (exit 0)

  CXX(target) Release/obj.target/kerberos/lib/kerberos.o
  CXX(target) Release/obj.target/kerberos/lib/worker.o
  CC(target) Release/obj.target/kerberos/lib/kerberosgss.o
  CC(target) Release/obj.target/kerberos/lib/base64.o
  CXX(target) Release/obj.target/kerberos/lib/kerberos_context.o
  SOLINK_MODULE(target) Release/kerberos.node
  SOLINK_MODULE(target) Release/kerberos.node: Finished

> [email protected] install /Users/michaelwhitley/Documents/Developer/NodeApps/CloudCV/node_modules/mongojs/node_modules/mongodb/node_modules/bson
> (node-gyp rebuild 2> builderror.log) || (exit 0)

  CXX(target) Release/obj.target/bson/ext/bson.o
  SOLINK_MODULE(target) Release/bson.node
  SOLINK_MODULE(target) Release/bson.node: Finished

> [email protected] install /Users/michaelwhitley/Documents/Developer/NodeApps/CloudCV/node_modules/cloudcv-backend/node_modules/native-opencv
> node installer.js

Loading OpenCV from  http://static.computer-vision-talks.com/dist/opencv/opencv-3.0.0-darwin.zip
     fetch : http://static.computer-vision-talks.com/dist/opencv/opencv-3.0.0-darwin.zip
  progress : [====================] 100% 0.0s

File downloaded successfully!

> [email protected] install /Users/michaelwhitley/Documents/Developer/NodeApps/CloudCV/node_modules/cloudcv-backend
> node-gyp rebuild

  CXX(target) Release/obj.target/cloudcv/src/cloudcv.o
In file included from ../src/cloudcv.cpp:4:
In file included from ../src/framework/Image.hpp:4:
In file included from /Users/michaelwhitley/Documents/Developer/NodeApps/CloudCV/node_modules/cloudcv-backend/node_modules/native-opencv/opencv/include/opencv2/opencv.hpp:55:
/Users/michaelwhitley/Documents/Developer/NodeApps/CloudCV/node_modules/cloudcv-backend/node_modules/native-opencv/opencv/include/opencv2/ml.hpp:971:18: warning: 'CvForestTree::train' hides overloaded
      virtual functions [-Woverloaded-virtual]
    virtual bool train( CvDTreeTrainData\* trainData, const CvMat\* _subsample_idx, CvRTrees\* forest );
                 ^
/Users/michaelwhitley/Documents/Developer/NodeApps/CloudCV/node_modules/cloudcv-backend/node_modules/native-opencv/opencv/include/opencv2/ml.hpp:875:18: note: hidden overloaded virtual function
      'CvDTree::train' declared here: different number of parameters (2 vs 3)
    virtual bool train( CvMLData\* trainData, CvDTreeParams params=CvDTreeParams() );
                 ^
/Users/michaelwhitley/Documents/Developer/NodeApps/CloudCV/node_modules/cloudcv-backend/node_modules/native-opencv/opencv/include/opencv2/ml.hpp:885:26: note: hidden overloaded virtual function
      'CvDTree::train' declared here: different number of parameters (8 vs 3)
    CV_WRAP virtual bool train( const cv::Mat& trainData, int tflag,
                         ^
/Users/michaelwhitley/Documents/Developer/NodeApps/CloudCV/node_modules/cloudcv-backend/node_modules/native-opencv/opencv/include/opencv2/ml.hpp:1161:18: warning: 'CvBoostTree::train' hides overloaded
      virtual functions [-Woverloaded-virtual]
    virtual bool train( CvDTreeTrainData\* trainData,
                 ^
/Users/michaelwhitley/Documents/Developer/NodeApps/CloudCV/node_modules/cloudcv-backend/node_modules/native-opencv/opencv/include/opencv2/ml.hpp:875:18: note: hidden overloaded virtual function
      'CvDTree::train' declared here: different number of parameters (2 vs 3)
    virtual bool train( CvMLData\* trainData, CvDTreeParams params=CvDTreeParams() );
                 ^
/Users/michaelwhitley/Documents/Developer/NodeApps/CloudCV/node_modules/cloudcv-backend/node_modules/native-opencv/opencv/include/opencv2/ml.hpp:885:26: note: hidden overloaded virtual function
      'CvDTree::train' declared here: different number of parameters (8 vs 3)
    CV_WRAP virtual bool train( const cv::Mat& trainData, int tflag,
                         ^
2 warnings generated.
  CXX(target) Release/obj.target/cloudcv/src/framework/marshal/marshal.o
  CXX(target) Release/obj.target/cloudcv/src/framework/marshal/stl.o
In file included from ../src/framework/marshal/stl.cpp:1:
In file included from ../src/framework/marshal/marshal.hpp:19:
In file included from ../src/framework/marshal/opencv.hpp:3:
In file included from /Users/michaelwhitley/Documents/Developer/NodeApps/CloudCV/node_modules/cloudcv-backend/node_modules/native-opencv/opencv/include/opencv2/opencv.hpp:55:
/Users/michaelwhitley/Documents/Developer/NodeApps/CloudCV/node_modules/cloudcv-backend/node_modules/native-opencv/opencv/include/opencv2/ml.hpp:971:18: warning: 'CvForestTree::train' hides overloaded
      virtual functions [-Woverloaded-virtual]
    virtual bool train( CvDTreeTrainData\* trainData, const CvMat\* _subsample_idx, CvRTrees\* forest );
                 ^
/Users/michaelwhitley/Documents/Developer/NodeApps/CloudCV/node_modules/cloudcv-backend/node_modules/native-opencv/opencv/include/opencv2/ml.hpp:875:18: note: hidden overloaded virtual function
      'CvDTree::train' declared here: different number of parameters (2 vs 3)
    virtual bool train( CvMLData\* trainData, CvDTreeParams params=CvDTreeParams() );
                 ^
/Users/michaelwhitley/Documents/Developer/NodeApps/CloudCV/node_modules/cloudcv-backend/node_modules/native-opencv/opencv/include/opencv2/ml.hpp:885:26: note: hidden overloaded virtual function
      'CvDTree::train' declared here: different number of parameters (8 vs 3)
    CV_WRAP virtual bool train( const cv::Mat& trainData, int tflag,
                         ^
/Users/michaelwhitley/Documents/Developer/NodeApps/CloudCV/node_modules/cloudcv-backend/node_modules/native-opencv/opencv/include/opencv2/ml.hpp:1161:18: warning: 'CvBoostTree::train' hides overloaded
      virtual functions [-Woverloaded-virtual]
    virtual bool train( CvDTreeTrainData\* trainData,
                 ^
/Users/michaelwhitley/Documents/Developer/NodeApps/CloudCV/node_modules/cloudcv-backend/node_modules/native-opencv/opencv/include/opencv2/ml.hpp:875:18: note: hidden overloaded virtual function
      'CvDTree::train' declared here: different number of parameters (2 vs 3)
    virtual bool train( CvMLData\* trainData, CvDTreeParams params=CvDTreeParams() );
                 ^
/Users/michaelwhitley/Documents/Developer/NodeApps/CloudCV/node_modules/cloudcv-backend/node_modules/native-opencv/opencv/include/opencv2/ml.hpp:885:26: note: hidden overloaded virtual function
      'CvDTree::train' declared here: different number of parameters (8 vs 3)
    CV_WRAP virtual bool train( const cv::Mat& trainData, int tflag,
                         ^
In file included from ../src/framework/marshal/stl.cpp:2:
../src/framework/Logger.h:43:1: warning: '/_' within block comment [-Wcomment]
/_
^
../src/framework/marshal/stl.cpp:16:31: error: calling a private constructor of class 'NanAsciiString'
        NanAsciiString cStr = NanAsciiString(inVal);
                              ^
../node_modules/nan/nan.h:1747:5: note: declared private here
    NanAsciiString(const NanAsciiString&);
    ^
../src/framework/marshal/stl.cpp:17:42: warning: 'Size' is deprecated [-Wdeprecated-declarations]
        outVal = std::string(_cStr, cStr.Size());
                                         ^
../node_modules/nan/nan.h:1729:35: note: 'Size' has been explicitly marked deprecated here
    NAN_DEPRECATED NAN_INLINE int Size() const {
                                  ^
4 warnings and 1 error generated.
make: *_\* [Release/obj.target/cloudcv/src/framework/marshal/stl.o] Error 1
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:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Darwin 14.0.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/michaelwhitley/Documents/Developer/NodeApps/CloudCV/node_modules/cloudcv-backend
gyp ERR! node -v v0.10.30
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok 

npm ERR! Darwin 14.0.0
npm ERR! argv "node" "/usr/local/bin/npm" "i"
npm ERR! node v0.10.30
npm ERR! npm  v2.0.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the cloudcv-backend 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 their info via:
npm ERR!     npm owner ls cloudcv-backend
npm ERR! There is likely additional logging output above.```

Any help is greatly appreciated.

Installation fails on ubuntu 14.04

sudo npm install
/

[email protected] install /home/mahesh/CloudCVImpl/CloudCV/node_modules/cloudcv-backend/node_modules/native-opencv
node installer.js

Loading OpenCV from http://static.computer-vision-talks.com/dist/opencv/opencv-3.0.0-unix.zip
fetch : http://static.computer-vision-talks.com/dist/opencv/opencv-3.0.0-unix.zip
progress : [====================] 100% 0.0s

File downloaded successfully!

[email protected] install /home/mahesh/CloudCVImpl/CloudCV/node_modules/cloudcv-backend
node-gyp rebuild

make: Entering directory /home/mahesh/CloudCVImpl/CloudCV/node_modules/cloudcv-backend/build' CXX(target) Release/obj.target/cloudcv/src/cloudcv.o CXX(target) Release/obj.target/cloudcv/src/framework/marshal/marshal.o CXX(target) Release/obj.target/cloudcv/src/framework/marshal/stl.o In file included from ../src/framework/marshal/stl.cpp:2:0: ../src/framework/Logger.h:43:1: warning: "/*" within comment [-Wcomment] /* ^ ../src/framework/marshal/stl.cpp: In function ‘bool MarshalToNative(V8Result, std::string&)’: ../src/framework/marshal/stl.cpp:17:47: warning: ‘int NanAsciiString::Size() const’ is deprecated (declared at ../node_modules/nan/nan.h:1229) [-Wdeprecated-declarations] outVal = std::string(*cStr, cStr.Size()); ^ CXX(target) Release/obj.target/cloudcv/src/framework/marshal/opencv.o In file included from ../src/framework/marshal/node_object_builder.hpp:7:0, from ../src/framework/marshal/opencv.cpp:2: ../src/framework/Logger.h:43:1: warning: "/*" within comment [-Wcomment] /* ^ CXX(target) Release/obj.target/cloudcv/src/framework/marshal/primitives.o CXX(target) Release/obj.target/cloudcv/src/framework/marshal/node_object_builder.o In file included from ../src/framework/marshal/node_object_builder.hpp:7:0, from ../src/framework/marshal/node_object_builder.cpp:1: ../src/framework/Logger.h:43:1: warning: "/*" within comment [-Wcomment] /* ^ CXX(target) Release/obj.target/cloudcv/src/framework/Image.o In file included from ../src/framework/NanCheck.hpp:14:0, from ../src/framework/Image.cpp:3: ../src/framework/Logger.h:43:1: warning: "/*" within comment [-Wcomment] /* ^ In file included from ../node_modules/nan/nan.h:74:0, from ../src/framework/Image.hpp:5, from ../src/framework/Image.cpp:1: ../node_modules/nan/nan_new.h: In instantiation of ‘typename NanIntern::Factory<T>::return_t NanNew(A0) [with T = v8::Integer; A0 = long unsigned int; typename NanIntern::Factory<T>::return_t = v8::Local<v8::Integer>]’: ../src/framework/Image.cpp:174:9: required from here ../node_modules/nan/nan_new.h:209:41: error: call of overloaded ‘New(long unsigned int&)’ is ambiguous return NanIntern::Factory<T>::New(arg0); ^ ../node_modules/nan/nan_new.h:209:41: note: candidates are: In file included from ../node_modules/nan/nan_new.h:194:0, from ../node_modules/nan/nan.h:74, from ../src/framework/Image.hpp:5, from ../src/framework/Image.cpp:1: ../node_modules/nan/nan_implementation_pre_12_inl.h:125:1: note: static NanIntern::IntegerFactory<T>::return_t NanIntern::IntegerFactory<T>::New(int32_t) [with T = v8::Integer; NanIntern::IntegerFactory<T>::return_t = v8::Local<v8::Integer>; int32_t = int] IntegerFactory<T>::New(int32_t value) { ^ In file included from ../node_modules/nan/nan.h:74:0, from ../src/framework/Image.hpp:5, from ../src/framework/Image.cpp:1: ../node_modules/nan/nan_new.h:110:26: note: static NanIntern::IntegerFactory<T>::return_t NanIntern::IntegerFactory<T>::New(uint32_t) [with T = v8::Integer; NanIntern::IntegerFactory<T>::return_t = v8::Local<v8::Integer>; uint32_t = unsigned int] static inline return_t New(uint32_t value); ^ In file included from ../node_modules/nan/nan.h:74:0, from ../src/framework/Image.hpp:5, from ../src/framework/Image.cpp:1: ../node_modules/nan/nan_new.h: In function ‘typename NanIntern::Factory<T>::return_t NanNew(A0) [with T = v8::Integer; A0 = long unsigned int; typename NanIntern::Factory<T>::return_t = v8::Local<v8::Integer>]’: ../node_modules/nan/nan_new.h:210:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../src/framework/Image.cpp: In static member function ‘static v8::Handle<v8::Value> cloudcv::ImageView::AsJpegStream(const v8::Arguments&)’: ../src/framework/Image.cpp:196:5: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../src/framework/Image.cpp: In static member function ‘static v8::Handle<v8::Value> cloudcv::ImageView::AsPngStream(const v8::Arguments&)’: ../src/framework/Image.cpp:217:5: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../src/framework/Image.cpp: In static member function ‘static v8::Handle<v8::Value> cloudcv::ImageView::Thumbnail(const v8::Arguments&)’: ../src/framework/Image.cpp:253:5: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../src/framework/Image.cpp: In static member function ‘static v8::Handle<v8::Value> cloudcv::ImageView::AsPngDataUri(const v8::Arguments&)’: ../src/framework/Image.cpp:274:5: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../src/framework/Image.cpp: In static member function ‘static v8::Handle<v8::Value> cloudcv::ImageView::AsJpegDataUri(const v8::Arguments&)’: ../src/framework/Image.cpp:347:5: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../src/framework/Image.cpp: In function ‘v8::Handle<v8::Value> cloudcv::loadImage(const v8::Arguments&)’: ../src/framework/Image.cpp:426:5: warning: control reaches end of non-void function [-Wreturn-type] } ^ make: *** [Release/obj.target/cloudcv/src/framework/Image.o] Error 1 make: Leaving directory/home/mahesh/CloudCVImpl/CloudCV/node_modules/cloudcv-backend/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Linux 3.13.0-27-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/mahesh/CloudCVImpl/CloudCV/node_modules/cloudcv-backend
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok

npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the cloudcv-backend 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 their info via:
npm ERR! npm owner ls cloudcv-backend
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.13.0-27-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /home/mahesh/CloudCVImpl/CloudCV
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.