mbientlab / metawear-sdk-javascript Goto Github PK
View Code? Open in Web Editor NEWMetaWear JavaScript SDK - Linux - Node.JS
Home Page: https://mbientlab.com
License: Other
MetaWear JavaScript SDK - Linux - Node.JS
Home Page: https://mbientlab.com
License: Other
Hello,
While using data fuser (example code), I'm receiving in both acc and gyro same values. Probably this refers to line mentioned by me here.
Best regards,
Dawid Śliwa
Hi, please,
why is node >= 13 not supported ?
If would it cause any incompatibility ?
Thank you very much.
relevant looking bits of error below:
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://github.com/tessel/node-usb/releases/download/1.5.0/usb_bindings-v1.5.0-node-v57-linux-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v57 ABI, glibc) (falling back to source compile with node-gyp)
........
../libusb/libusb/os/linux_udev.c:40:10: fatal error: libudev.h: No such file or directory
#include <libudev.h>
^~~~~~~~~~~
compilation terminated.
compilation terminated.
libusb.target.mk:128: recipe for target 'Release/obj.target/libusb/libusb/libusb/os/linux_udev.o' failed
make: *** [Release/obj.target/libusb/libusb/libusb/os/linux_udev.o] Error 1
make: Leaving directory '/home/jmej/projects/MetaWear-SDK-JavaScript/node_modules/usb/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/share/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 4.15.0-34-generic
gyp ERR! command "/usr/bin/node" "/usr/share/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/jmej/projects/MetaWear-SDK-JavaScript/node_modules/usb/src/binding/usb_bindings.node" "--module_name=usb_bindings" "--module_path=/home/jmej/projects/MetaWear-SDK-JavaScript/node_modules/usb/src/binding" "--napi_version=1" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v57"
gyp ERR! cwd /home/jmej/projects/MetaWear-SDK-JavaScript/node_modules/usb
gyp ERR! node -v v8.10.0
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/share/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/jmej/projects/MetaWear-SDK-JavaScript/node_modules/usb/src/binding/usb_bindings.node --module_name=usb_bindings --module_path=/home/jmej/projects/MetaWear-SDK-JavaScript/node_modules/usb/src/binding --napi_version=1 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v57' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/home/jmej/projects/MetaWear-SDK-JavaScript/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:126:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:214:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:925:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
node-pre-gyp ERR! System Linux 4.15.0-34-generic
node-pre-gyp ERR! command "/usr/bin/node" "/home/jmej/projects/MetaWear-SDK-JavaScript/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/jmej/projects/MetaWear-SDK-JavaScript/node_modules/usb
node-pre-gyp ERR! node -v v8.10.0
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/node /usr/share/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/jmej/projects/MetaWear-SDK-JavaScript/node_modules/usb/src/binding/usb_bindings.node --module_name=usb_bindings --module_path=/home/jmej/projects/MetaWear-SDK-JavaScript/node_modules/usb/src/binding --napi_version=1 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v57' (1)
npm WARN install:[email protected] [email protected] install: `node-pre-gyp install --fallback-to-build`
npm WARN install:[email protected] Exit status 1
> [email protected] install /home/jmej/projects/MetaWear-SDK-JavaScript
> make OPT_FLAGS=-Wno-strict-aliasing -C MetaWear-SDK-Cpp/ -j
make: Entering directory '/home/jmej/projects/MetaWear-SDK-JavaScript/MetaWear-SDK-Cpp'
make: *** No targets specified and no makefile found. Stop.
make: Leaving directory '/home/jmej/projects/MetaWear-SDK-JavaScript/MetaWear-SDK-Cpp'
npm WARN optional Skipping failed optional dependency /noble/xpc-connection:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm ERR! Linux 4.15.0-34-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `make OPT_FLAGS=-Wno-strict-aliasing -C MetaWear-SDK-Cpp/ -j`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] install script 'make OPT_FLAGS=-Wno-strict-aliasing -C MetaWear-SDK-Cpp/ -j'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the metawear package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! make OPT_FLAGS=-Wno-strict-aliasing -C MetaWear-SDK-Cpp/ -j
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs metawear
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls metawear
npm ERR! There is likely additional logging output above.
A client asked me to take a look at your sensor. We are evaluating multiple BLE sensors to use in a mobile application that would be developed using cordova.
Is it possible to use cordova?
Is there a wrapper cordova-plugin available?
Would it be possible to use another cordova BLE plugin like this?
I had to install nvm and go back to node version v8.15.0 for the metawear sdk to install.
It would be great if the package could be upgraded to at least the latest stable version of node: 10.15.0 (at the time of writing).
Hey! I am getting a lot of errors when I am trying to install metawear on Raspbian. I installed everything for Noble before running the npm command. (sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev)
Do I need more libraries in order for this to work?
[email protected] uninstall /home/pi/node_modules/metawear
make -C MetaWear-SDK-Cpp/ clean
make: Entering directory '/home/pi/node_modules/metawear/MetaWear-SDK-Cpp'
rm -Rf build dist bindings/javascript/libmetawear-path.js
make: Leaving directory '/home/pi/node_modules/metawear/MetaWear-SDK-Cpp'
npm WARN engine [email protected]: wanted: {"node":">=6"} (current: {"node":"4.8.2","npm":"1.4.21"})
[email protected] install /home/pi/node_modules/metawear/node_modules/ref
node-gyp rebuild
make: Entering directory '/home/pi/node_modules/metawear/node_modules/ref/build'
CXX(target) Release/obj.target/binding/src/binding.o
../src/binding.cc: In function 'void init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)':
../src/binding.cc:643:8: warning: 'Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
Nan::ForceSet(target, Nan::Newv8::String("endianness").ToLocalChecked(), Nan::Newv8::String(CheckEndianness()).ToLocalChecked(), static_cast(ReadOnly|DontDelete));
^~~~~~~~
In file included from ../node_modules/nan/nan.h:216:0,
from ../src/binding.cc:7:
../node_modules/nan/nan_maybe_43_inl.h:130:35: note: declared here
NAN_DEPRECATED inline Maybe ForceSet(
^~~~~~~~
../src/binding.cc:643:187: warning: 'Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
Nan::ForceSet(target, Nan::Newv8::String("endianness").ToLocalChecked(), Nan::Newv8::String(CheckEndianness()).ToLocalChecked(), static_cast(ReadOnly|DontDelete));
^
In file included from ../node_modules/nan/nan.h:216:0,
from ../src/binding.cc:7:
../node_modules/nan/nan_maybe_43_inl.h:130:35: note: declared here
NAN_DEPRECATED inline Maybe ForceSet(
^~~~~~~~
../src/binding.cc:644:8: warning: 'Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
Nan::ForceSet(target, Nan::Newv8::String("NULL").ToLocalChecked(), WrapNullPointer(), static_cast(ReadOnly|DontDelete));
^~~~~~~~
In file included from ../node_modules/nan/nan.h:216:0,
from ../src/binding.cc:7:
../node_modules/nan/nan_maybe_43_inl.h:130:35: note: declared here
NAN_DEPRECATED inline Maybe ForceSet(
^~~~~~~~
../src/binding.cc:644:142: warning: 'Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
Nan::ForceSet(target, Nan::Newv8::String("NULL").ToLocalChecked(), WrapNullPointer(), static_cast(ReadOnly|DontDelete));
^
In file included from ../node_modules/nan/nan.h:216:0,
from ../src/binding.cc:7:
../node_modules/nan/nan_maybe_43_inl.h:130:35: note: declared here
NAN_DEPRECATED inline Maybe ForceSet(
^~~~~~~~
SOLINK_MODULE(target) Release/obj.target/binding.node
COPY Release/binding.node
make: Leaving directory '/home/pi/node_modules/metawear/node_modules/ref/build'
npm WARN engine [email protected]: wanted: {"node":">=6"} (current: {"node":"4.8.2","npm":"1.4.21"})
npm WARN optional dep failed, continuing [email protected]
npm WARN engine [email protected]: wanted: {"node":">=6"} (current: {"node":"4.8.2","npm":"1.4.21"})
[email protected] install /home/pi/node_modules/metawear/node_modules/ffi
node-gyp rebuild
make: Entering directory '/home/pi/node_modules/metawear/node_modules/ffi/build'
CC(target) Release/obj.target/ffi/deps/libffi/src/prep_cif.o
CC(target) Release/obj.target/ffi/deps/libffi/src/types.o
CC(target) Release/obj.target/ffi/deps/libffi/src/raw_api.o
CC(target) Release/obj.target/ffi/deps/libffi/src/java_raw_api.o
CC(target) Release/obj.target/ffi/deps/libffi/src/closures.o
CC(target) Release/obj.target/ffi/deps/libffi/src/arm/ffi.o
../deps/libffi/src/arm/ffi.c: In function 'ffi_prep_args':
../deps/libffi/src/arm/ffi.c:72:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
&& vi < ecif->cif->vfp_nargs && vfp_type_p (p_arg))
^
../deps/libffi/src/arm/ffi.c: In function 'ffi_prep_incoming_args_SYSV':
../deps/libffi/src/arm/ffi.c:335:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
&& vi < cif->vfp_nargs && vfp_type_p (p_arg))
^
../deps/libffi/src/arm/ffi.c: In function 'layout_vfp_args':
../deps/libffi/src/arm/ffi.c:750:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < cif->nargs; i++)
^
CC(target) Release/obj.target/ffi/deps/libffi/src/arm/sysv.o
AR(target) Release/obj.target/deps/libffi/libffi.a
COPY Release/libffi.a
CXX(target) Release/obj.target/ffi_bindings/src/ffi.o
../src/ffi.cc: In static member function 'static void FFI::InitializeBindings(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)':
../src/ffi.cc:38:8: warning: 'Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
Nan::ForceSet(target, Nan::New(#_value).ToLocalChecked(),
^
../src/ffi.cc:58:3: note: in expansion of macro 'SET_ENUM_VALUE'
SET_ENUM_VALUE(FFI_OK);
^~~~~~~~~~~~~~
In file included from ../node_modules/nan/nan.h:216:0,
from ../src/ffi.h:23,
from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:130:35: note: declared here
NAN_DEPRECATED inline Maybe ForceSet(
^~~~~~~~
../src/ffi.cc:40:54: warning: 'Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
static_cast(ReadOnly|DontDelete))
^
../src/ffi.cc:58:3: note: in expansion of macro 'SET_ENUM_VALUE'
SET_ENUM_VALUE(FFI_OK);
^~~~~~~~~~~~~~
In file included from ../node_modules/nan/nan.h:216:0,
from ../src/ffi.h:23,
from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:130:35: note: declared here
NAN_DEPRECATED inline Maybe ForceSet(
^~~~~~~~
../src/ffi.cc:38:8: warning: 'Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
Nan::ForceSet(target, Nan::New(#_value).ToLocalChecked(),
^
../src/ffi.cc:59:3: note: in expansion of macro 'SET_ENUM_VALUE'
SET_ENUM_VALUE(FFI_BAD_TYPEDEF);
^~~~~~~~~~~~~~
In file included from ../node_modules/nan/nan.h:216:0,
from ../src/ffi.h:23,
from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:130:35: note: declared here
NAN_DEPRECATED inline Maybe ForceSet(
^~~~~~~~
../src/ffi.cc:40:54: warning: 'Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
static_cast(ReadOnly|DontDelete))
^
../src/ffi.cc:59:3: note: in expansion of macro 'SET_ENUM_VALUE'
SET_ENUM_VALUE(FFI_BAD_TYPEDEF);
^~~~~~~~~~~~~~
In file included from ../node_modules/nan/nan.h:216:0,
from ../src/ffi.h:23,
from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:130:35: note: declared here
NAN_DEPRECATED inline Maybe ForceSet(
^~~~~~~~
../src/ffi.cc:38:8: warning: 'Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
Nan::ForceSet(target, Nan::New(#_value).ToLocalChecked(),
^
../src/ffi.cc:60:3: note: in expansion of macro 'SET_ENUM_VALUE'
SET_ENUM_VALUE(FFI_BAD_ABI);
^~~~~~~~~~~~~~
In file included from ../node_modules/nan/nan.h:216:0,
from ../src/ffi.h:23,
from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:130:35: note: declared here
NAN_DEPRECATED inline Maybe ForceSet(
^~~~~~~~
../src/ffi.cc:40:54: warning: 'Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
static_cast(ReadOnly|DontDelete))
^
../src/ffi.cc:60:3: note: in expansion of macro 'SET_ENUM_VALUE'
SET_ENUM_VALUE(FFI_BAD_ABI);
^~~~~~~~~~~~~~
In file included from ../node_modules/nan/nan.h:216:0,
from ../src/ffi.h:23,
from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:130:35: note: declared here
NAN_DEPRECATED inline Maybe ForceSet(
^~~~~~~~
../src/ffi.cc:38:8: warning: 'Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
Nan::ForceSet(target, Nan::New(#_value).ToLocalChecked(),
^
../src/ffi.cc:63:3: note: in expansion of macro 'SET_ENUM_VALUE'
SET_ENUM_VALUE(FFI_DEFAULT_ABI);
^~~~~~~~~~~~~~
In file included from ../node_modules/nan/nan.h:216:0,
from ../src/ffi.h:23,
from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:130:35: note: declared here
NAN_DEPRECATED inline Maybe ForceSet(
^~~~~~~~
../src/ffi.cc:40:54: warning: 'Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
static_cast(ReadOnly|DontDelete))
^
../src/ffi.cc:63:3: note: in expansion of macro 'SET_ENUM_VALUE'
SET_ENUM_VALUE(FFI_DEFAULT_ABI);
^~~~~~~~~~~~~~
In file included from ../node_modules/nan/nan.h:216:0,
from ../src/ffi.h:23,
from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:130:35: note: declared here
NAN_DEPRECATED inline Maybe ForceSet(
^~~~~~~~
../src/ffi.cc:38:8: warning: 'Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
Nan::ForceSet(target, Nan::New(#_value).ToLocalChecked(),
^
../src/ffi.cc:64:3: note: in expansion of macro 'SET_ENUM_VALUE'
SET_ENUM_VALUE(FFI_FIRST_ABI);
^~~~~~~~~~~~~~
In file included from ../node_modules/nan/nan.h:216:0,
from ../src/ffi.h:23,
from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:130:35: note: declared here
NAN_DEPRECATED inline Maybe ForceSet(
^~~~~~~~
../src/ffi.cc:40:54: warning: 'Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
static_cast(ReadOnly|DontDelete))
^
../src/ffi.cc:64:3: note: in expansion of macro 'SET_ENUM_VALUE'
SET_ENUM_VALUE(FFI_FIRST_ABI);
^~~~~~~~~~~~~~
In file included from ../node_modules/nan/nan.h:216:0,
from ../src/ffi.h:23,
from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:130:35: note: declared here
NAN_DEPRECATED inline Maybe ForceSet(
^~~~~~~~
../src/ffi.cc:38:8: warning: 'Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
Nan::ForceSet(target, Nan::New(#_value).ToLocalChecked(),
^
../src/ffi.cc:65:3: note: in expansion of macro 'SET_ENUM_VALUE'
SET_ENUM_VALUE(FFI_LAST_ABI);
^~~~~~~~~~~~~~
In file included from ../node_modules/nan/nan.h:216:0,
from ../src/ffi.h:23,
from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:130:35: note: declared here
NAN_DEPRECATED inline Maybe ForceSet(
^~~~~~~~
../src/ffi.cc:40:54: warning: 'Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
static_cast(ReadOnly|DontDelete))
^
../src/ffi.cc:65:3: note: in expansion of macro 'SET_ENUM_VALUE'
SET_ENUM_VALUE(FFI_LAST_ABI);
^~~~~~~~~~~~~~
In file included from ../node_modules/nan/nan.h:216:0,
from ../src/ffi.h:23,
from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:130:35: note: declared here
NAN_DEPRECATED inline Maybe ForceSet(
^~~~~~~~
../src/ffi.cc:38:8: warning: 'Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
Nan::ForceSet(target, Nan::New(#_value).ToLocalChecked(),
^
../src/ffi.cc:68:3: note: in expansion of macro 'SET_ENUM_VALUE'
SET_ENUM_VALUE(FFI_SYSV);
^~~~~~~~~~~~~~
In file included from ../node_modules/nan/nan.h:216:0,
from ../src/ffi.h:23,
from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:130:35: note: declared here
NAN_DEPRECATED inline Maybe ForceSet(
^~~~~~~~
../src/ffi.cc:40:54: warning: 'Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
static_cast(ReadOnly|DontDelete))
^
../src/ffi.cc:68:3: note: in expansion of macro 'SET_ENUM_VALUE'
SET_ENUM_VALUE(FFI_SYSV);
^~~~~~~~~~~~~~
In file included from ../node_modules/nan/nan.h:216:0,
from ../src/ffi.h:23,
from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:130:35: note: declared here
NAN_DEPRECATED inline Maybe ForceSet(
^~~~~~~~
../src/ffi.cc:38:8: warning: 'Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
Nan::ForceSet(target, Nan::New(#_value).ToLocalChecked(),
^
../src/ffi.cc:69:3: note: in expansion of macro 'SET_ENUM_VALUE'
SET_ENUM_VALUE(FFI_VFP);
^~~~~~~~~~~~~~
In file included from ../node_modules/nan/nan.h:216:0,
from ../src/ffi.h:23,
from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:130:35: note: declared here
NAN_DEPRECATED inline Maybe ForceSet(
^~~~~~~~
../src/ffi.cc:40:54: warning: 'Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
static_cast(ReadOnly|DontDelete))
^
../src/ffi.cc:69:3: note: in expansion of macro 'SET_ENUM_VALUE'
SET_ENUM_VALUE(FFI_VFP);
^~~~~~~~~~~~~~
In file included from ../node_modules/nan/nan.h:216:0,
from ../src/ffi.h:23,
from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:130:35: note: declared here
NAN_DEPRECATED inline Maybe ForceSet(
^~~~~~~~
../src/ffi.cc:38:8: warning: 'Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
Nan::ForceSet(target, Nan::New(#_value).ToLocalChecked(),
^
../src/ffi.cc:88:3: note: in expansion of macro 'SET_ENUM_VALUE'
SET_ENUM_VALUE(RTLD_LAZY);
^~~~~~~~~~~~~~
In file included from ../node_modules/nan/nan.h:216:0,
from ../src/ffi.h:23,
from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:130:35: note: declared here
NAN_DEPRECATED inline Maybe ForceSet(
^~~~~~~~
../src/ffi.cc:40:54: warning: 'Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
static_cast(ReadOnly|DontDelete))
^
../src/ffi.cc:88:3: note: in expansion of macro 'SET_ENUM_VALUE'
SET_ENUM_VALUE(RTLD_LAZY);
^~~~~~~~~~~~~~
In file included from ../node_modules/nan/nan.h:216:0,
from ../src/ffi.h:23,
from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:130:35: note: declared here
NAN_DEPRECATED inline Maybe ForceSet(
^~~~~~~~
../src/ffi.cc:38:8: warning: 'Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
Nan::ForceSet(target, Nan::New(#_value).ToLocalChecked(),
^
../src/ffi.cc:91:3: note: in expansion of macro 'SET_ENUM_VALUE'
SET_ENUM_VALUE(RTLD_NOW);
^~~~~~~~~~~~~~
In file included from ../node_modules/nan/nan.h:216:0,
from ../src/ffi.h:23,
from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:130:35: note: declared here
NAN_DEPRECATED inline Maybe ForceSet(
^~~~~~~~
../src/ffi.cc:40:54: warning: 'Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
static_cast(ReadOnly|DontDelete))
^
../src/ffi.cc:91:3: note: in expansion of macro 'SET_ENUM_VALUE'
SET_ENUM_VALUE(RTLD_NOW);
^~~~~~~~~~~~~~
In file included from ../node_modules/nan/nan.h:216:0,
from ../src/ffi.h:23,
from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:130:35: note: declared here
NAN_DEPRECATED inline Maybe ForceSet(
^~~~~~~~
../src/ffi.cc:38:8: warning: 'Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
Nan::ForceSet(target, Nan::New(#_value).ToLocalChecked(),
^
../src/ffi.cc:94:3: note: in expansion of macro 'SET_ENUM_VALUE'
SET_ENUM_VALUE(RTLD_LOCAL);
^~~~~~~~~~~~~~
In file included from ../node_modules/nan/nan.h:216:0,
from ../src/ffi.h:23,
from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:130:35: note: declared here
NAN_DEPRECATED inline Maybe ForceSet(
^~~~~~~~
../src/ffi.cc:40:54: warning: 'Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
static_cast(ReadOnly|DontDelete))
^
../src/ffi.cc:94:3: note: in expansion of macro 'SET_ENUM_VALUE'
SET_ENUM_VALUE(RTLD_LOCAL);
^~~~~~~~~~~~~~
In file included from ../node_modules/nan/nan.h:216:0,
from ../src/ffi.h:23,
from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:130:35: note: declared here
NAN_DEPRECATED inline Maybe ForceSet(
^~~~~~~~
../src/ffi.cc:38:8: warning: 'Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
Nan::ForceSet(target, Nan::New(#_value).ToLocalChecked(),
^
../src/ffi.cc:97:3: note: in expansion of macro 'SET_ENUM_VALUE'
SET_ENUM_VALUE(RTLD_GLOBAL);
^~~~~~~~~~~~~~
In file included from ../node_modules/nan/nan.h:216:0,
from ../src/ffi.h:23,
from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:130:35: note: declared here
NAN_DEPRECATED inline Maybe ForceSet(
^~~~~~~~
../src/ffi.cc:40:54: warning: 'Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
static_cast(ReadOnly|DontDelete))
^
../src/ffi.cc:97:3: note: in expansion of macro 'SET_ENUM_VALUE'
SET_ENUM_VALUE(RTLD_GLOBAL);
^~~~~~~~~~~~~~
In file included from ../node_modules/nan/nan.h:216:0,
from ../src/ffi.h:23,
from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:130:35: note: declared here
NAN_DEPRECATED inline Maybe ForceSet(
^~~~~~~~
../src/ffi.cc:38:8: warning: 'Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
Nan::ForceSet(target, Nan::New(#_value).ToLocalChecked(),
^
../src/ffi.cc:100:3: note: in expansion of macro 'SET_ENUM_VALUE'
SET_ENUM_VALUE(RTLD_NOLOAD);
^~~~~~~~~~~~~~
In file included from ../node_modules/nan/nan.h:216:0,
from ../src/ffi.h:23,
from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:130:35: note: declared here
NAN_DEPRECATED inline Maybe ForceSet(
^~~~~~~~
../src/ffi.cc:40:54: warning: 'Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
static_cast(ReadOnly|DontDelete))
^
../src/ffi.cc:100:3: note: in expansion of macro 'SET_ENUM_VALUE'
SET_ENUM_VALUE(RTLD_NOLOAD);
^~~~~~~~~~~~~~
In file included from ../node_modules/nan/nan.h:216:0,
from ../src/ffi.h:23,
from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:130:35: note: declared here
NAN_DEPRECATED inline Maybe ForceSet(
^~~~~~~~
../src/ffi.cc:38:8: warning: 'Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
Nan::ForceSet(target, Nan::New(#_value).ToLocalChecked(),
^
../src/ffi.cc:103:3: note: in expansion of macro 'SET_ENUM_VALUE'
SET_ENUM_VALUE(RTLD_NODELETE);
^~~~~~~~~~~~~~
In file included from ../node_modules/nan/nan.h:216:0,
from ../src/ffi.h:23,
from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:130:35: note: declared here
NAN_DEPRECATED inline Maybe ForceSet(
^~~~~~~~
../src/ffi.cc:40:54: warning: 'Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
static_cast(ReadOnly|DontDelete))
^
../src/ffi.cc:103:3: note: in expansion of macro 'SET_ENUM_VALUE'
SET_ENUM_VALUE(RTLD_NODELETE);
^~~~~~~~~~~~~~
In file included from ../node_modules/nan/nan.h:216:0,
from ../src/ffi.h:23,
from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:130:35: note: declared here
NAN_DEPRECATED inline Maybe ForceSet(
^~~~~~~~
../src/ffi.cc: In static member function 'static void FFI::FinishAsyncFFICall(uv_work_t)':
../src/ffi.cc:367:28: warning: 'v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const' is deprecated [-Wdeprecated-declarations]
p->callback->Call(1, argv);
^
In file included from ../src/ffi.h:23:0,
from ../src/ffi.cc:3:
../node_modules/nan/nan.h:1655:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
CXX(target) Release/obj.target/ffi_bindings/src/callback_info.o
../src/callback_info.cc: In static member function 'static void CallbackInfo::DispatchToV8(callback_info*, void*, void**, bool)':
../src/callback_info.cc:63:55: warning: 'v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const' is deprecated [-Wdeprecated-declarations]
info->errorFunction->Call(1, errorFunctionArgv);
^
In file included from ../src/ffi.h:23:0,
from ../src/callback_info.cc:8:
../node_modules/nan/nan.h:1655:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/callback_info.cc:73:58: warning: 'v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const' is deprecated [-Wdeprecated-declarations]
Local e = info->function->Call(2, functionArgv);
^
In file included from ../src/ffi.h:23:0,
from ../src/callback_info.cc:8:
../node_modules/nan/nan.h:1655:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
../src/callback_info.cc:78:55: warning: 'v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value*) const' is deprecated [-Wdeprecated-declarations]
info->errorFunction->Call(1, errorFunctionArgv);
^
In file included from ../src/ffi.h:23:0,
from ../src/callback_info.cc:8:
../node_modules/nan/nan.h:1655:3: note: declared here
Call(int argc, v8::Localv8::Value argv[]) const {
^~~~
CXX(target) Release/obj.target/ffi_bindings/src/threaded_callback_invokation.o
SOLINK_MODULE(target) Release/obj.target/ffi_bindings.node
COPY Release/ffi_bindings.node
make: Leaving directory '/home/pi/node_modules/metawear/node_modules/ffi/build'
[email protected] install /home/pi/node_modules/metawear/node_modules/noble-device/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb
node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://github.com/tessel/node-usb/releases/download/1.5.0/usb_bindings-v1.5.0-node-v46-linux-arm.tar.gz
node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v46 ABI, glibc) (falling back to source compile with node-gyp)
make: Entering directory '/home/pi/node_modules/metawear/node_modules/noble-device/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb/build'
CC(target) Release/obj.target/libusb/libusb/libusb/core.o
CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o
CC(target) Release/obj.target/libusb/libusb/libusb/hotplug.o
CC(target) Release/obj.target/libusb/libusb/libusb/io.o
CC(target) Release/obj.target/libusb/libusb/libusb/strerror.o
CC(target) Release/obj.target/libusb/libusb/libusb/sync.o
CC(target) Release/obj.target/libusb/libusb/libusb/os/poll_posix.o
CC(target) Release/obj.target/libusb/libusb/libusb/os/threads_posix.o
CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_usbfs.o
CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_udev.o
AR(target) Release/obj.target/usb.a
COPY Release/usb.a
CXX(target) Release/obj.target/usb_bindings/src/node_usb.o
../src/node_usb.cc: In function 'void handleHotplug(std::pair<libusb_device*, libusb_hotplug_event>)':
../src/node_usb.cc:151:58: warning: 'v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, const char*, int, v8::Localv8::Value)' is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(Nan::New(hotplugThis), "emit", 2, argv);
^
In file included from ../src/helpers.h:3:0,
from ../src/node_usb.h:21,
from ../src/node_usb.cc:1:
../../nan/nan.h:1000:46: note: declared here
NAN_DEPRECATED inline v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
CXX(target) Release/obj.target/usb_bindings/src/device.o
../src/device.cc: In static member function 'static void Req::default_after(uv_work_t)':
../src/device.cc:237:64: warning: 'v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)' is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(device, Nan::New(baton->callback), 1, argv);
^
In file included from ../src/helpers.h:3:0,
from ../src/node_usb.h:21,
from ../src/device.cc:1:
../../nan/nan.h:958:46: note: declared here
NAN_DEPRECATED inline v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
CXX(target) Release/obj.target/usb_bindings/src/transfer.o
../src/transfer.cc: In function 'void handleCompletion(Transfer)':
../src/transfer.cc:126:72: warning: 'v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)' is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(self->handle(), Nan::New(self->v8callback), 3, argv);
^
In file included from ../src/helpers.h:3:0,
from ../src/node_usb.h:21,
from ../src/transfer.cc:1:
../../nan/nan.h:958:46: note: declared here
NAN_DEPRECATED inline v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
SOLINK_MODULE(target) Release/obj.target/usb_bindings.node
COPY Release/usb_bindings.node
COPY /home/pi/node_modules/metawear/node_modules/noble-device/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb/src/binding/usb_bindings.node
TOUCH Release/obj.target/action_after_build.stamp
make: Leaving directory '/home/pi/node_modules/metawear/node_modules/noble-device/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb/build'
[email protected] install /home/pi/node_modules/metawear/node_modules/noble-device/node_modules/noble/node_modules/bluetooth-hci-socket
node-gyp rebuild
make: Entering directory '/home/pi/node_modules/metawear/node_modules/noble-device/node_modules/noble/node_modules/bluetooth-hci-socket/build'
CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o
../src/BluetoothHciSocket.cpp: In member function 'void BluetoothHciSocket::poll()':
../src/BluetoothHciSocket.cpp:251:95: warning: 'v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value)' is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(Nan::New(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
^
In file included from ../src/BluetoothHciSocket.cpp:8:0:
../node_modules/nan/nan.h:979:46: note: declared here
NAN_DEPRECATED inline v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
../src/BluetoothHciSocket.cpp: In member function 'void BluetoothHciSocket::emitErrnoError()':
../src/BluetoothHciSocket.cpp:282:93: warning: 'v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value)' is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(Nan::New(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
^
In file included from ../src/BluetoothHciSocket.cpp:8:0:
../node_modules/nan/nan.h:979:46: note: declared here
NAN_DEPRECATED inline v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
SOLINK_MODULE(target) Release/obj.target/binding.node
COPY Release/binding.node
make: Leaving directory '/home/pi/node_modules/metawear/node_modules/noble-device/node_modules/noble/node_modules/bluetooth-hci-socket/build'
[email protected] install /home/pi/node_modules/metawear
make OPT_FLAGS=-Wno-strict-aliasing -C MetaWear-SDK-Cpp/ -j
make: Entering directory '/home/pi/node_modules/metawear/MetaWear-SDK-Cpp'
mkdir -p build/arm/release/src/metawear/platform/cpp
mkdir -p build/arm/release/src/metawear/core/cpp
mkdir -p build/arm/release/src/metawear/peripheral/cpp
mkdir -p build/arm/release/src/metawear/processor/cpp
mkdir -p build/arm/release/src/metawear/sensor/cpp
mkdir -p build/arm/release/src/metawear/impl/cpp
mkdir -p build/arm/release/src/metawear/dfu/cpp
mkdir -p dist/release/lib/arm
g++ -MMD -MP -MF "build/arm/release/src/metawear/platform/cpp/async_creator.d" -c -o build/arm/release/src/metawear/platform/cpp/async_creator.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/platform/cpp/async_creator.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/platform/cpp/memory.d" -c -o build/arm/release/src/metawear/platform/cpp/memory.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/platform/cpp/memory.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/platform/cpp/threadpool.d" -c -o build/arm/release/src/metawear/platform/cpp/threadpool.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/platform/cpp/threadpool.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/platform/cpp/task.d" -c -o build/arm/release/src/metawear/platform/cpp/task.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/platform/cpp/task.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/core/cpp/event.d" -c -o build/arm/release/src/metawear/core/cpp/event.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/core/cpp/event.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/core/cpp/debug.d" -c -o build/arm/release/src/metawear/core/cpp/debug.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/core/cpp/debug.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/core/cpp/datasignal.d" -c -o build/arm/release/src/metawear/core/cpp/datasignal.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/core/cpp/datasignal.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/core/cpp/logging.d" -c -o build/arm/release/src/metawear/core/cpp/logging.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/core/cpp/logging.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/core/cpp/anonymous_datasignal.d" -c -o build/arm/release/src/metawear/core/cpp/anonymous_datasignal.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/core/cpp/anonymous_datasignal.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/core/cpp/timer.d" -c -o build/arm/release/src/metawear/core/cpp/timer.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/core/cpp/timer.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/core/cpp/version.d" -c -o build/arm/release/src/metawear/core/cpp/version.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/core/cpp/version.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/core/cpp/moduleinfo.d" -c -o build/arm/release/src/metawear/core/cpp/moduleinfo.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/core/cpp/moduleinfo.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/core/cpp/responseheader.d" -c -o build/arm/release/src/metawear/core/cpp/responseheader.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/core/cpp/responseheader.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/core/cpp/settings.d" -c -o build/arm/release/src/metawear/core/cpp/settings.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/core/cpp/settings.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/core/cpp/macro.d" -c -o build/arm/release/src/metawear/core/cpp/macro.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/core/cpp/macro.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/peripheral/cpp/led.d" -c -o build/arm/release/src/metawear/peripheral/cpp/led.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/peripheral/cpp/led.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/peripheral/cpp/ibeacon.d" -c -o build/arm/release/src/metawear/peripheral/cpp/ibeacon.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/peripheral/cpp/ibeacon.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/peripheral/cpp/haptic.d" -c -o build/arm/release/src/metawear/peripheral/cpp/haptic.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/peripheral/cpp/haptic.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/peripheral/cpp/neopixel.d" -c -o build/arm/release/src/metawear/peripheral/cpp/neopixel.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/peripheral/cpp/neopixel.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/processor/cpp/dataprocessor_config.d" -c -o build/arm/release/src/metawear/processor/cpp/dataprocessor_config.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/processor/cpp/dataprocessor_config.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/processor/cpp/dataprocessor.d" -c -o build/arm/release/src/metawear/processor/cpp/dataprocessor.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/processor/cpp/dataprocessor.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/sensor/cpp/serialpassthrough.d" -c -o build/arm/release/src/metawear/sensor/cpp/serialpassthrough.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/sensor/cpp/serialpassthrough.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/sensor/cpp/magnetometer_bmm150.d" -c -o build/arm/release/src/metawear/sensor/cpp/magnetometer_bmm150.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/sensor/cpp/magnetometer_bmm150.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/sensor/cpp/proximity_tsl2671.d" -c -o build/arm/release/src/metawear/sensor/cpp/proximity_tsl2671.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/sensor/cpp/proximity_tsl2671.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/sensor/cpp/conductance.d" -c -o build/arm/release/src/metawear/sensor/cpp/conductance.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/sensor/cpp/conductance.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/sensor/cpp/humidity_bme280.d" -c -o build/arm/release/src/metawear/sensor/cpp/humidity_bme280.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/sensor/cpp/humidity_bme280.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/sensor/cpp/accelerometer_bosch.d" -c -o build/arm/release/src/metawear/sensor/cpp/accelerometer_bosch.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/sensor/cpp/accelerometer_bosch.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/sensor/cpp/sensor_fusion.d" -c -o build/arm/release/src/metawear/sensor/cpp/sensor_fusion.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/sensor/cpp/sensor_fusion.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/sensor/cpp/gyro_bmi160.d" -c -o build/arm/release/src/metawear/sensor/cpp/gyro_bmi160.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/sensor/cpp/gyro_bmi160.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/sensor/cpp/accelerometer_mma8452q.d" -c -o build/arm/release/src/metawear/sensor/cpp/accelerometer_mma8452q.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/sensor/cpp/accelerometer_mma8452q.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/sensor/cpp/utils.d" -c -o build/arm/release/src/metawear/sensor/cpp/utils.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/sensor/cpp/utils.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/sensor/cpp/barometer_bosch.d" -c -o build/arm/release/src/metawear/sensor/cpp/barometer_bosch.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/sensor/cpp/barometer_bosch.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/sensor/cpp/switch.d" -c -o build/arm/release/src/metawear/sensor/cpp/switch.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/sensor/cpp/switch.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/sensor/cpp/multichanneltemperature.d" -c -o build/arm/release/src/metawear/sensor/cpp/multichanneltemperature.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/sensor/cpp/multichanneltemperature.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/sensor/cpp/gpio.d" -c -o build/arm/release/src/metawear/sensor/cpp/gpio.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/sensor/cpp/gpio.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/sensor/cpp/colordetector_tcs34725.d" -c -o build/arm/release/src/metawear/sensor/cpp/colordetector_tcs34725.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/sensor/cpp/colordetector_tcs34725.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/sensor/cpp/accelerometer.d" -c -o build/arm/release/src/metawear/sensor/cpp/accelerometer.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/sensor/cpp/accelerometer.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/sensor/cpp/ambientlight_ltr329.d" -c -o build/arm/release/src/metawear/sensor/cpp/ambientlight_ltr329.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/sensor/cpp/ambientlight_ltr329.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/impl/cpp/metawearboard.d" -c -o build/arm/release/src/metawear/impl/cpp/metawearboard.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/impl/cpp/metawearboard.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/impl/cpp/datainterpreter.d" -c -o build/arm/release/src/metawear/impl/cpp/datainterpreter.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/impl/cpp/datainterpreter.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/dfu/cpp/dfu_operations.d" -c -o build/arm/release/src/metawear/dfu/cpp/dfu_operations.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/dfu/cpp/dfu_operations.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/dfu/cpp/dfu_operations_details.d" -c -o build/arm/release/src/metawear/dfu/cpp/dfu_operations_details.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/dfu/cpp/dfu_operations_details.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/dfu/cpp/file_operations.d" -c -o build/arm/release/src/metawear/dfu/cpp/file_operations.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/dfu/cpp/file_operations.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/dfu/cpp/dfu_utility.d" -c -o build/arm/release/src/metawear/dfu/cpp/dfu_utility.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/dfu/cpp/dfu_utility.cpp
g++ -MMD -MP -MF "build/arm/release/src/metawear/dfu/cpp/miniz.d" -c -o build/arm/release/src/metawear/dfu/cpp/miniz.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/dfu/cpp/miniz.cpp
Killed
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-6/README.Bugs for instructions.
Makefile:65: recipe for target 'build/arm/release/src/metawear/dfu/cpp/dfu_operations_details.o' failed
make: *** [build/arm/release/src/metawear/dfu/cpp/dfu_operations_details.o] Error 4
make: *** Waiting for unfinished jobs....
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-6/README.Bugs for instructions.
virtual memory exhausted: Cannot allocate memory
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-6/README.Bugs for instructions.
pi@raspberrypi:~ $ Makefile:65: recipe for target 'build/arm/release/src/metawear/core/cpp/event.o' failed
make: *** [build/arm/release/src/metawear/core/cpp/event.o] Error 4
Makefile:65: recipe for target 'build/arm/release/src/metawear/dfu/cpp/file_operations.o' failed
make: *** [build/arm/release/src/metawear/dfu/cpp/file_operations.o] Error 4
I am trying to install metawear package to raspberry pi
OS : Raspbian Buster
Board : Pi 2 Model B v1.1
Node : 8.15.0
SD card : 16 GB Sandisk Ultra
The build hangs after some point and I loose my interaction through terminal though I can receive messages from it.
I am tailing the syslog, it still prints messages but I can not interact with any of my SSH session anymore and have to reboot the device.
This is where node-gyp hangs
g++ -MMD -MP -MF "build/arm/release/src/metawear/dfu/cpp/miniz.d" -c -o build/arm/release/src/metawear/dfu/cpp/miniz.o -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -Isrc -DMETAWEAR_DLL -DMETAWEAR_DLL_EXPORTS -Wno-strict-aliasing -O3 -marm src/metawear/dfu/cpp/miniz.cpp
Output of syslog when the build gets stuck
Feb 9 14:23:03 raspberrypi kernel: [ 1050.906872] cc1plus invoked oom-killer: gfp_mask=0x6200ca(GFP_HIGHUSER_MOVABLE), nodemask=(null), order=0, oom_score_adj=0
Feb 9 14:23:16 raspberrypi kernel: [ 1050.906886] cc1plus cpuset=/ mems_allowed=0
Feb 9 14:23:30 raspberrypi kernel: [ 1050.906910] CPU: 3 PID: 2924 Comm: cc1plus Tainted: G C 4.19.97-v7+ #1294
Feb 9 14:23:43 raspberrypi kernel: [ 1050.906915] Hardware name: BCM2835
Feb 9 14:23:55 raspberrypi kernel: [ 1050.906950] [<801120c0>] (unwind_backtrace) from [<8010d5f4>] (show_stack+0x20/0x24)
Feb 9 14:24:06 raspberrypi kernel: [ 1050.906965] [<8010d5f4>] (show_stack) from [<80845f28>] (dump_stack+0xe0/0x124)
Feb 9 14:24:17 raspberrypi kernel: [ 1050.906981] [<80845f28>] (dump_stack) from [<80261790>] (dump_header+0x80/0x250)
Feb 9 14:24:33 raspberrypi kernel: [ 1050.906994] [<80261790>] (dump_header) from [<80260af8>] (oom_kill_process+0x358/0x3a8)
Feb 9 14:24:42 raspberrypi kernel: [ 1050.907006] [<80260af8>] (oom_kill_process) from [<80261428>] (out_of_memory+0x134/0x37c)
Feb 9 14:24:51 raspberrypi kernel: [ 1050.907020] [<80261428>] (out_of_memory) from [<802678a0>] (__alloc_pages_nodemask+0x1024/0x1178)
Feb 9 14:25:10 raspberrypi kernel: [ 1050.907036] [<802678a0>] (__alloc_pages_nodemask) from [<8025cb10>] (filemap_fault+0x5d0/0x704)
Feb 9 14:25:21 raspberrypi kernel: [ 1050.907053] [<8025cb10>] (filemap_fault) from [<8039621c>] (ext4_filemap_fault+0x38/0x4c)
Feb 9 14:25:30 raspberrypi kernel: [ 1050.907068] [<8039621c>] (ext4_filemap_fault) from [<802960fc>] (__do_fault+0x5c/0x194)
Feb 9 14:25:41 raspberrypi kernel: [ 1050.907081] [<802960fc>] (__do_fault) from [<8029a9b8>] (handle_mm_fault+0x568/0xd68)
Is it a memory issue ?
Do you have any idea to fix it ?
Thank you.
Time to time I get these lines also
Feb 9 14:54:56 raspberrypi kernel: [ 1103.847655] INFO: task kworker/2:1:33 blocked for more than 120 seconds.
Feb 9 14:55:00 raspberrypi kernel: [ 1103.847671] Tainted: G C 4.19.97-v7+ #1294
Feb 9 14:55:00 raspberrypi kernel: [ 1103.847678] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Feb 9 14:55:00 raspberrypi kernel: [ 1103.847688] kworker/2:1 D 0 33 2 0x00000000
Feb 9 14:55:00 raspberrypi kernel: [ 1103.847724] Workqueue: events_freezable mmc_rescan
Feb 9 14:55:00 raspberrypi kernel: [ 1103.847765] [<8085d70c>] (__schedule) from [<8085dd7c>] (schedule+0x50/0xa8)
Feb 9 14:55:00 raspberrypi kernel: [ 1103.847792] [<8085dd7c>] (schedule) from [<806b16f8>] (__mmc_claim_host+0x120/0x228)
Feb 9 14:55:00 raspberrypi kernel: [ 1103.847815] [<806b16f8>] (__mmc_claim_host) from [<806b1838>] (mmc_get_card+0x38/0x3c)
Feb 9 14:55:00 raspberrypi kernel: [ 1103.847839] [<806b1838>] (mmc_get_card) from [<806ba8a4>] (mmc_sd_detect+0x24/0x7c)
Feb 9 14:55:00 raspberrypi kernel: [ 1103.847859] [<806ba8a4>] (mmc_sd_detect) from [<806b3e60>] (mmc_rescan+0x1cc/0x39c)
Feb 9 14:55:00 raspberrypi kernel: [ 1103.847881] [<806b3e60>] (mmc_rescan) from [<8013c44c>] (process_one_work+0x170/0x458)
Feb 9 14:55:00 raspberrypi kernel: [ 1103.847904] [<8013c44c>] (process_one_work) from [<8013c790>] (worker_thread+0x5c/0x5a4)
Feb 9 14:55:00 raspberrypi kernel: [ 1103.847923] [<8013c790>] (worker_thread) from [<80142ac4>] (kthread+0x138/0x168)
Feb 9 14:55:00 raspberrypi kernel: [ 1103.847942] [<80142ac4>] (kthread) from [<801010ac>] (ret_from_fork+0x14/0x28)
Feb 9 14:55:00 raspberrypi kernel: [ 1103.847952] Exception stack(0xbce65fb0 to 0xbce65ff8)
Feb 9 14:55:00 raspberrypi kernel: [ 1103.847966] 5fa0: 00000000 00000000 00000000 00000000
Feb 9 14:55:00 raspberrypi kernel: [ 1103.847980] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Feb 9 14:55:00 raspberrypi kernel: [ 1103.847993] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
I need to change name of device. I change it using a method in the api, but after the battery runs out, the device name returns to default.
I tried using macro. The macro is recorded successfully, if I call it after recording, the device name changes, but after the battery is discharged, the macro does not start automatically and the script crashes when manually started.
Has anyone experienced this behavior?
Macro example from c++ api:
In this example, we will change the device name permanently:
#include "metawear/core/macro.h"
#include "metawear/peripheral/led.h"
void setup_macro(MblMwMetaWearBoard* board) {
static auto callback = [](MblMwMetaWearBoard* board, int32_t id) {
cout << "Macro ID = " << id << endl;
macro_id = id;
};
// Change on boot
mbl_mw_macro_record(board, 1);
auto new_name = "METAMOO";
mbl_mw_settings_set_device_name(board, new_name, 7);
mbl_mw_macro_end_record(board, callback);
// Change the name now
mbl_mw_macro_execute(macro_id);
}
This is probably cpp sdk related, but I'm getting weird values from the battery readings of my MetaTracker.
Voltage jumping from 6 to 27 volts, and charge from 25% to 80% randomly.
Here's a function I use to get the voltage
function GetBattery(device, callback) {
if(!device || !device.connectedAndSetUp)
return;
if(device.battSignal){
MetaWear.mbl_mw_datasignal_unsubscribe(device.battSignal);
device.battSignal = null;
}
if(!callback){
return;
}
device.battSignal = MetaWear.mbl_mw_settings_get_battery_state_data_signal(device.board);
MetaWear.mbl_mw_datasignal_subscribe(device.battSignal, MetaWear.FnVoid_DataP.toPointer(function gotTimer(dataPtr) {
var data = dataPtr.deref();
var val = data.parseValue();
callback({
address: device.address,
epoch: data.epoch,
battery: val
});
//Unsubscribe
if(device.battSignal){
MetaWear.mbl_mw_datasignal_unsubscribe(device.battSignal);
device.battSignal = null;
}
}));
MetaWear.mbl_mw_datasignal_read(device.battSignal);
}
Is there anything I'm missing? I'm calling this function about twice per minute for now
I don't know if this is the right place to ask or not. I was wondering do you have any plans to support React Native (Since you have JS API) or Flutter in the near future?
Hello,
When i try to do a "npm install metawear", i got this output :
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: make OPT_FLAGS=-Wno-strict-aliasing -C MetaWear-SDK-Cpp/ -j
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Can you tell me please what i did wrong?
Thanks
Hi,
I want to get the raw stream acceleration data using javascript.
MetaWear.mbl_mw_datasignal_subscribe(acc_signal, function(acc_signal){
console.log(typeof(acc_signal));
console.log(acc_signal);
console.log(acc_signal.length);
});
I have get the acc_signal, but it is a object (C++ struct?). I know how to get XYZ values of accelerations in C++. However, what should I do to get the XYZ values in javascript?
Hi,
I have another question, Please help me.
I want to warp JS variables into a struct then pass it to C++ API.
To be specific, I want to call the following API in JS.
static MblMwLogDownloadHandler download_handler = { progress_update, unknown_entry };
// start a log download and send 100 progress notifications
mbl_mw_logging_download(board, 100, &download_handler);
Thanks in advance
I need use with node and Im using the javascript SDK.
Here is my code:
var MetaWear = require('metawear'); MetaWear.discoverAll(function (device) { device.once('disconnect', function () { console.log(
disconnect ${device._peripheral.advertisement.localName}`)
})
device.connectAndSetUp(function (error) {
if (error) {
console.log("error" + error)
}
console.log(`connected ${device._peripheral.advertisement.localName}`)
});
},true);
`
The code works, I can connect and disconnect, but my problem is when I want to reconnect the same MetaWear, I cant do this and i don't know why.
I have debugged all and I don't find why that happens.
Can you help me please ?
In the official forum of MetaWear is there zero information ABOUT THIS PROBLEM
Im working on MacOS but i have linux too on a rasberry and its the same thing!
Using a MetaHub (raspberry pi 3) running node I discover and connect :
MetaWear.discover(function (device) {
device.connectAndSetUp(function (error) {
...
})
})
This works fine for the first time. Once the pi is restarted, the discover
callback is called, then the disconnect event is fired, and the connectAndSetUp
callback is never called. I get another discover
callback, but that's because I call discover when disconnected, but that's it. The way to make it work again is by opening the Metabase mobile app, choose Diagnostics, connect to the device (connect, it will fail and ask if it should connect again, then it succeeds) and choose Reset from the options to reset the Tracker. After the reset, the sensor can connect again.
The error log is in pastebin:
https://pastebin.com/705EmKUA
My current setup is as follows:
Mac: v10.13.6
node: v8.11.3
npm: v5.6.0
metawear: v0.2.0
g++:
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.11.45.2)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Please assist,
Thank you!
Hi there,
I'm trying to get the step counter using below sample code in your doc:
console.log('Enable acc steps.');
MetaWear.mbl_mw_acc_bmi160_enable_step_counter(device.board);
MetaWear.mbl_mw_acc_bmi160_write_step_counter_config(device.board);
console.log('Get step signal.');
let signal = MetaWear.mbl_mw_acc_bmi160_get_step_counter_data_signal(device.board);
console.log('Set up read.');
MetaWear.mbl_mw_datasignal_subscribe(acc, ref.NULL, MetaWear.FnVoid_VoidP_DataP.toPointer((ctx, pointer) => {
var data = pointer.deref();
var value = data.parseValue();
console.log('epoch: ' + data.epoch + ' acc: ' + value.x + ' ' + value.y + ' ' + value.z);
}))
console.log('Read.');
MetaWear.mbl_mw_acc_start(device.board);
MetaWear.mbl_mw_datasignal_read(signal);
When I run the JS file using NODE, it juts hangs and not getting any console.logs.
But I can run below methods without any issues:
let acc = MetaWear.mbl_mw_acc_get_acceleration_data_signal(device.board)
let gyro = MetaWear.mbl_mw_gyro_bmi160_get_rotation_data_signal(device.board)
Do I need to include anything else except below? Could you please advise?
var MetaWear = require('../index');
var ref = require('ref');
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.