Created
October 30, 2015 00:58
-
-
Save as2902b/46dd541ced2ceb867347 to your computer and use it in GitHub Desktop.
Unable to build iotivity-node.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare -x OCTBSTACK_CFLAGS="-I/home/dev/source/active/iotivity/resource/csdk/stack/include -I/home/dev/source/active/iotivity/resource/c_common -I/home/dev/source/active/iotivity/resource/csdk/ocrandom/include" | |
declare -x OCTBSTACK_LIBS="-L/home/dev/source/active/iotivity/out/linux/x86_64/release -loctbstack -Wl,-rpath=/home/dev/source/active/iotivity/out/linux/x86_64/release" | |
octypes.h -> ocstack.h and both are in resource/csdk/stack/include | |
CXX(target) Release/obj.target/iotivity/src/enums.o | |
In file included from ../src/enums.cc:4:0: | |
../src/enums.cc: In function ‘v8::Local<v8::Object> bind_OCTransportAdapter()’: | |
../src/enums.cc:27:36: error: ‘OC_ADAPTER_TCP’ was not declared in this scope | |
SET_CONSTANT_NUMBER(returnValue, OC_ADAPTER_TCP); | |
^ | |
../src/enums.h:9:71: note: in definition of macro ‘SET_CONSTANT_NUMBER’ | |
Nan::Set((destination), Nan::New(#name).ToLocalChecked(), Nan::New((name))); | |
^ | |
../src/enums.cc: In function ‘v8::Local<v8::Object> bind_OCConnectivityType()’: | |
../src/enums.cc:58:36: error: ‘CT_ADAPTER_TCP’ was not declared in this scope | |
SET_CONSTANT_NUMBER(returnValue, CT_ADAPTER_TCP); | |
^ | |
../src/enums.h:9:71: note: in definition of macro ‘SET_CONSTANT_NUMBER’ | |
Nan::Set((destination), Nan::New(#name).ToLocalChecked(), Nan::New((name))); | |
^ | |
iotivity.target.mk:116: recipe for target 'Release/obj.target/iotivity/src/enums.o' failed | |
make: *** [Release/obj.target/iotivity/src/enums.o] Error 1 | |
make: Leaving directory '/home/dev/source/active/wsi/iotivity-node/build' | |
gyp ERR! build error | |
gyp ERR! stack Error: `make` failed with exit code: 2 | |
gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:267:23) | |
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) | |
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12) | |
gyp ERR! System Linux 4.2.0-16-generic | |
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild" | |
gyp ERR! cwd /home/dev/source/active/wsi/iotivity-node | |
gyp ERR! node -v v0.10.25 | |
gyp ERR! node-gyp -v v0.12.2 | |
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 iotivity-node 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 iotivity-node | |
npm ERR! There is likely additional logging output above. | |
npm ERR! System Linux 4.2.0-16-generic | |
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" | |
npm ERR! cwd /home/dev/source/active/wsi/iotivity-node | |
npm ERR! node -v v0.10.25 | |
npm ERR! npm -v 1.4.21 | |
npm ERR! code ELIFECYCLE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment