jasongin / noble-uwp

Noble (Node.js Bluetooth LE) with Windows 10 UWP bindings
MIT License
83 stars 45 forks source link

nodejs v12.16.0, electron v8.2.2 build failed #83

Open yuerugou opened 4 years ago

yuerugou commented 4 years ago

nodejs v12.16.0, electron v8.2.2 when I use npm rebuild noble-uwp --runtime=electron --target=8.2.2 --arch=x64 --rebuild --disturl=https://atom.io/download/electron --build_from_source=true, it was wrong `noble-uwp@0.6.2 install E:\working\mbuilder\build\node_modules\noble-uwp

node install.js

Installing NodeRT UWP adapter for Windows.Foundation �ڴ˽��������һ������һ����Ŀ����Ҫ���ò������ɣ������ӡ�/m�����ء� _nodert_generated.cpp NodeRtUtils.cpp OpaqueWrapper.cpp CollectionsConverterUtils.cpp win_delay_load_hook.cc C:\Users\mk10261\AppData\Local\node-gyp\Cache\8.2.2\include\node\v8.h(8923): warning C4996: 'v8::MicrotasksCompletedCallback': Use WithData version. (compiling source file ..\NodeRtUtils.cpp) [E:\working\mbuilder\build\node_modules\noble-uwp\uwp\windows.foundation\build\binding.vcxproj] c:\users\mk10261\appdata\local\node-gyp\cache\8.2.2\include\node\v8.h(8923): warning C4996: 'v8::MicrotasksCompletedCallback': Use WithData version. (compiling source file ..\OpaqueWrapper.cpp) [E:\working\mbuilder\build\node_modules\noble-uwp\uwp\windows.foundation\build\binding.vcxproj] c:\users\mk10261\appdata\local\node-gyp\cache\8.2.2\include\node\v8.h(7238): note: see declaration of 'v8::MicrotasksCompletedCallback' (compiling source file ..\OpaqueWrapper.cpp) c:\users\mk10261\appdata\local\node-gyp\cache\8.2.2\include\node\v8.h(8931): warning C4996: 'v8::MicrotasksCompletedCallback': Use *WithData version. (compiling source file ..\OpaqueWrapper.cpp)C:\Users\mk10261\AppData\Local\node-gyp\Cache\8.2.2\include\node\v8.h(7238): note: see declaration of 'v8::MicrotasksCompletedCallback' (compiling source file ..\NodeRtUtils.cpp) [E:\working\mbuilder\build\node_modules\noble-uwp\uwp\windows.foundation\build\binding.vcxproj]

C:\Users\mk10261\AppData\Local\node-gyp\Cache\8.2.2\include\node\v8.h(8931): warning C4996: 'v8::MicrotasksCompletedCallback': Use WithData version. (compiling source file ..\NodeRtUtils.cpp) [E:\working\mbuilder\build\node_modules\noble-uwp\uwp\windows.foundation\build\binding.vcxproj] C:\Users\mk10261\AppData\Local\node-gyp\Cache\8.2.2\include\node\v8.h(7238): note: see declaration of 'v8::MicrotasksCompletedCallback' (compiling source file ..\NodeRtUtils.cpp) c:\users\mk10261\appdata\local\node-gyp\cache\8.2.2\include\node\v8.h(7238): note: see declaration of 'v8::MicrotasksCompletedCallback' (compiling source file ..\OpaqueWrapper.cpp) C:\Users\mk10261\AppData\Local\node-gyp\Cache\8.2.2\include\node\v8.h(8923): warning C4996: 'v8::MicrotasksCompletedCallback': Use WithData version. (compiling source file .._nodert_generated.cpp) [E:\working\mbuilder\build\node_modules\noble-uwp\uwp\windows.foundation\build\binding.vcxproj] C:\Users\mk10261\AppData\Local\node-gyp\Cache\8.2.2\include\node\v8.h(7238): note: see declaration of 'v8::MicrotasksCompletedCallback' (compiling source file .._nodert_generated.cpp) C:\Users\mk10261\AppData\Local\node-gyp\Cache\8.2.2\include\node\v8.h(8931): warning C4996: 'v8::MicrotasksCompletedCallback': Use *WithData version. (compiling source file .._nodert_generated.cpp) [E:\working\mbuilder\build\node_modules\noble-uwp\uwp\windows.foundation\build\binding.vcxproj] C:\Users\mk10261\AppData\Local\node-gyp\Cache\8.2.2\include\node\v8.h(7238): note: see declaration of 'v8::MicrotasksCompletedCallback' (compiling source file .._nodert_generated.cpp) ..\NodeRtUtils.cpp(109): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\working\mbuilder\build\node_modules\noble-uwp\uwp\windows.foundation\build\binding.vcxproj] E:\working\mbuilder\build\node_modules\noble-uwp\node_modules\nan\nan.h(1047): note: see declaration of 'Nan::MakeCallback' ..\NodeRtUtils.cpp(189): warning C4996: 'Nan::ForceSet': was declared deprecated [E:\working\mbuilder\build\node_modules\noble-uwp\uwp\windows.foundation\build\binding.vcxproj] e:\working\mbuilder\build\node_modules\noble-uwp\node_modules\nan\nan_maybe_43_inl.h(117): note: see declaration of 'Nan::ForceSet' ..\NodeRtUtils.cpp(268): warning C4996: 'Nan::ForceSet': was declared deprecated [E:\working\mbuilder\build\node_modules\noble-uwp\uwp\windows.foundation\build\binding.vcxproj] e:\working\mbuilder\build\node_modules\noble-uwp\node_modules\nan\nan_maybe_43_inl.h(117): note: see declaration of 'Nan::ForceSet' ..\NodeRtUtils.cpp(273): warning C4996: 'Nan::ForceSet': was declared deprecated [E:\working\mbuilder\build\node_modules\noble-uwp\uwp\windows.foundation\build\binding.vcxproj] e:\working\mbuilder\build\node_modules\noble-uwp\node_modules\nan\nan_maybe_43_inl.h(117): note: see declaration of 'Nan::ForceSet' e:\working\mbuilder\build\node_modules\noble-uwp\uwp\windows.foundation\node-async.h(245): warning C4996: 'Nan::MakeCallback': was declared deprecated (compiling source file .._nodert_generated.cpp) [E:\working\mbuilder\build\node_modules\noble-uwp\uwp\windows.foundation\build\binding.vcxproj] E:\working\mbuilder\build\node_modules\noble-uwp\node_modules\nan\nan.h(1047): note: see declaration of 'Nan::MakeCallback' (compiling source file .._nodert_generated.cpp) e:\working\mbuilder\build\node_modules\noble-uwp\uwp\windows.foundation\node-async.h(285): warning C4996: 'Nan::MakeCallback': was declared deprecated (compiling source file .._nodert_generated.cpp) [E:\working\mbuilder\build\node_modules\noble-uwp\uwp\windows.foundation\build\binding.vcxproj] E:\working\mbuilder\build\node_modules\noble-uwp\node_modules\nan\nan.h(1047): note: see declaration of 'Nan::MakeCallback' (compiling source file .._nodert_generated.cpp) e:\working\mbuilder\build\node_modules\noble-uwp\uwp\windows.foundation\node-async.h(321): error C2661: 'v8::Object::Get': no overloaded function takes 1 arguments (compiling source file .._nodert_generated.cpp) [E:\working\mbuilder\build\node_modules\noble-uwp\uwp\windows.foundation\build\binding.vcxproj] gyp ERR! build error gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\MSBuild.exe failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (D:\Programs\nvm\nvm\v12.16.0\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:321:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) gyp ERR! System Windows_NT 6.1.7601 gyp ERR! command "d:\Program Files\nodejs\node.exe" "D:\Programs\nvm\nvm\v12.16.0\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "build" "--fallback-to-build" "--msvs_version=2015" "--module=E:\working\mbuilder\build\node_modules\noble-uwp\uwp\windows.foundation\binding\electron-v8.2-win32-x64\binding.node" "--module_name=binding" "--module_path=E:\working\mbuilder\build\node_modules\noble-uwp\uwp\windows.foundation\binding\electron-v8.2-win32-x64" gyp ERR! cwd E:\working\mbuilder\build\node_modules\noble-uwp\uwp\windows.foundation gyp ERR! node -v v12.16.0 gyp ERR! node-gyp -v v5.0.5 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute 'd:\Program Files\nodejs\node.exe D:\Programs\nvm\nvm\v12.16.0\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --msvs_version=2015 --module=E:\working\mbuilder\build\node_modules\noble-uwp\uwp\windows.foundation\binding\electron-v8.2-win32-x64\binding.node --module_name=binding --module_path=E:\working\mbuilder\build\node_modules\noble-uwp\uwp\windows.foundation\binding\electron-v8.2-win32-x64' (1) node-pre-gyp ERR! stack at ChildProcess. (E:\working\mbuilder\build\node_modules\noble-uwp\node_modules\node-pre-gyp\lib\util\compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:321:20) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1021:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5) node-pre-gyp ERR! System Windows_NT 6.1.7601 node-pre-gyp ERR! command "d:\Program Files\nodejs\node.exe" "E:\working\mbuilder\build\node_modules\noble-uwp\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build" "--msvs_version=2015" node-pre-gyp ERR! cwd E:\working\mbuilder\build\node_modules\noble-uwp\uwp\windows.foundation node-pre-gyp ERR! node -v v12.16.0 node-pre-gyp ERR! node-pre-gyp -v v0.6.36 node-pre-gyp ERR! not ok Failed to execute 'd:\Program Files\nodejs\node.exe D:\Programs\nvm\nvm\v12.16.0\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --msvs_version=2015 --module=E:\working\mbuilder\build\node_modules\noble-uwp\uwp\windows.foundation\binding\electron-v8.2-win32-x64\binding.node --module_name=binding --module_path=E:\working\mbuilder\build\node_modules\noble-uwp\uwp\windows.foundation\binding\electron-v8.2-win32-x64' (1) noble-uwp@0.6.2 E:\working\mbuilder\build\node_modules\noble-uwp`

what can i do to fix this, thank you very much