-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node-gyp Rebuild fails on mac #87
Labels
Comments
Hi, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
`$ npm rebuild
CXX(target) Release/obj.target/pcsclite/src/addon.o
CXX(target) Release/obj.target/pcsclite/src/pcsclite.o
../src/pcsclite.cpp:65:1: warning: unused label 'postServiceCheck'
[-Wunused-label]
postServiceCheck:
^~~~~~~~~~~~~~~~~
../src/pcsclite.cpp:72:20: warning: comparison of integers of different signs:
'LONG' (aka 'int') and 'unsigned int' [-Wsign-compare]
} while(result == SCARD_E_NO_SERVICE || result == SCARD_E_SERVICE_STOPPED);
~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
../src/pcsclite.cpp:72:52: warning: comparison of integers of different signs:
'LONG' (aka 'int') and 'unsigned int' [-Wsign-compare]
} while(result == SCARD_E_NO_SERVICE || result == SCARD_E_SERVICE_STOPPED);
~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~
../src/pcsclite.cpp:183:56: warning: 'Call' is deprecated
[-Wdeprecated-declarations]
Nan::Callback(Nan::New(async_baton->callback)).Call(argc, argv);
^
../../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated
here
NAN_DEPRECATED inline v8::Localv8::Value
^
../../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
define NAN_DEPRECATED attribute((deprecated))
../src/pcsclite.cpp:186:56: warning: 'Call' is deprecated
[-Wdeprecated-declarations]
Nan::Callback(Nan::New(async_baton->callback)).Call(1, argv);
^
../../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated
here
NAN_DEPRECATED inline v8::Localv8::Value
^
../../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
define NAN_DEPRECATED attribute((deprecated))
../src/pcsclite.cpp:335:20: warning: comparison of integers of different signs:
'LONG' (aka 'int') and 'unsigned int' [-Wsign-compare]
if (result == SCARD_E_NO_SERVICE || result == SCARD_E_SERVICE_STOPPED) {
~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
../src/pcsclite.cpp:335:52: warning: comparison of integers of different signs:
'LONG' (aka 'int') and 'unsigned int' [-Wsign-compare]
if (result == SCARD_E_NO_SERVICE || result == SCARD_E_SERVICE_STOPPED) {
~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~
7 warnings generated.
CXX(target) Release/obj.target/pcsclite/src/cardreader.o
../src/cardreader.cpp:356:60: warning: 'Call' is deprecated
[-Wdeprecated-declarations]
Nan::Callback(Nan::New(async_baton->callback)).Call(argc, argv);
^
../../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated
here
NAN_DEPRECATED inline v8::Localv8::Value
^
../../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
define NAN_DEPRECATED attribute((deprecated))
../src/cardreader.cpp:363:56: warning: 'Call' is deprecated
[-Wdeprecated-declarations]
Nan::Callback(Nan::New(async_baton->callback)).Call(argc, argv);
^
../../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated
here
NAN_DEPRECATED inline v8::Localv8::Value
^
../../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
define NAN_DEPRECATED attribute((deprecated))
../src/cardreader.cpp:374:14: warning: 'MakeCallback' is deprecated
[-Wdeprecated-declarations]
Nan::MakeCallback(async_baton->reader->handle(), "emit", 1, argv);
^
../../../nan/nan.h:1066:3: note: 'MakeCallback' has been explicitly marked
deprecated here
NAN_DEPRECATED inline v8::Localv8::Value MakeCallback(
^
../../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
define NAN_DEPRECATED attribute((deprecated))
../src/cardreader.cpp:477:50: warning: 'Call' is deprecated
[-Wdeprecated-declarations]
Nan::Callback(Nan::New(baton->callback)).Call(argc, argv);
^
../../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated
here
NAN_DEPRECATED inline v8::Localv8::Value
^
../../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
define NAN_DEPRECATED attribute((deprecated))
../src/cardreader.cpp:486:50: warning: 'Call' is deprecated
[-Wdeprecated-declarations]
Nan::Callback(Nan::New(baton->callback)).Call(argc, argv);
^
../../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated
here
NAN_DEPRECATED inline v8::Localv8::Value
^
../../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
define NAN_DEPRECATED attribute((deprecated))
../src/cardreader.cpp:532:50: warning: 'Call' is deprecated
[-Wdeprecated-declarations]
Nan::Callback(Nan::New(baton->callback)).Call(argc, argv);
^
../../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated
here
NAN_DEPRECATED inline v8::Localv8::Value
^
../../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
define NAN_DEPRECATED attribute((deprecated))
../src/cardreader.cpp:540:50: warning: 'Call' is deprecated
[-Wdeprecated-declarations]
Nan::Callback(Nan::New(baton->callback)).Call(argc, argv);
^
../../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated
here
NAN_DEPRECATED inline v8::Localv8::Value
^
../../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
define NAN_DEPRECATED attribute((deprecated))
../src/cardreader.cpp:593:50: warning: 'Call' is deprecated
[-Wdeprecated-declarations]
Nan::Callback(Nan::New(baton->callback)).Call(argc, argv);
^
../../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated
here
NAN_DEPRECATED inline v8::Localv8::Value
^
../../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
define NAN_DEPRECATED attribute((deprecated))
../src/cardreader.cpp:601:50: warning: 'Call' is deprecated
[-Wdeprecated-declarations]
Nan::Callback(Nan::New(baton->callback)).Call(argc, argv);
^
../../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated
here
NAN_DEPRECATED inline v8::Localv8::Value
^
../../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
define NAN_DEPRECATED attribute((deprecated))
../src/cardreader.cpp:657:50: warning: 'Call' is deprecated
[-Wdeprecated-declarations]
Nan::Callback(Nan::New(baton->callback)).Call(argc, argv);
^
../../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated
here
NAN_DEPRECATED inline v8::Localv8::Value
^
../../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
define NAN_DEPRECATED attribute((deprecated))
../src/cardreader.cpp:665:50: warning: 'Call' is deprecated
[-Wdeprecated-declarations]
Nan::Callback(Nan::New(baton->callback)).Call(argc, argv);
^
../../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated
here
NAN_DEPRECATED inline v8::Localv8::Value
^
../../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
define NAN_DEPRECATED attribute((deprecated))
11 warnings generated.
SOLINK_MODULE(target) Release/pcsclite.node
husky
setting up Git hooks
done`
I am trying to use this package in my new Electron App.
Error: The module '/Users/schwarz/Desktop/electron-api-demos/node_modules/@pokusew/pcsclite/build/Release/pcsclite.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 57. This version of Node.js requires NODE_MODULE_VERSION 70. Please try re-compiling or re-installing the module (for instance, using
npm rebuildor
npm install).
I get this Error. I have tried to rebuild a few times, nothing works.
Versions:
Electron App:
$ npm version { 'electron-api-demos': '2.0.2', npm: '6.9.0', ares: '1.10.1-DEV', cldr: '32.0', http_parser: '2.8.0', icu: '60.1', modules: '57', napi: '4', nghttp2: '1.33.0', node: '8.16.0', openssl: '1.0.2r', tz: '2017c', unicode: '10.0', uv: '1.23.2', v8: '6.2.414.77', zlib: '1.2.11' }
$ npm -v 6.9.0 $ node -v v8.16.0
When I run the examples of the package I get no errors. It's when I try to use it in the electron app that It fails.
Thank you!
The text was updated successfully, but these errors were encountered: