node-pcsc icon indicating copy to clipboard operation
node-pcsc copied to clipboard

Error during compilation with node-gyp

Open emanahov opened this issue 9 years ago • 0 comments

Hello,

I am using the latest version of MacOS and I have updated Xcode.

I get the following errors after I try to compile as you've described first with node-gyp configure, then node-gyp build:

gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] CXX(target) Release/obj.target/node_pcsc/src/node-pcsc.o In file included from ../src/node-pcsc.cc:17: ../src/pcsc-emitter.h:23:34: error: expected class name class PCSCEmitter : public node::ObjectWrap { ^ ../src/pcsc-emitter.h:35:45: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'? static v8::Handlev8::Value New( const v8::Arguments& args ); ^~~~~~~~~~~~~ v8::internal::Arguments /Users/emanahov/.node-gyp/4.2.3/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here class Arguments; ^ In file included from ../src/node-pcsc.cc:17: ../src/pcsc-emitter.h:36:51: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'? static v8::Handlev8::Value scardRead( const v8::Arguments& args ); ^~~~~~~~~~~~~ v8::internal::Arguments /Users/emanahov/.node-gyp/4.2.3/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here class Arguments; ^ In file included from ../src/node-pcsc.cc:17: ../src/pcsc-emitter.h:37:52: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'? static v8::Handlev8::Value getReaders( const v8::Arguments& args ); ^~~~~~~~~~~~~ v8::internal::Arguments /Users/emanahov/.node-gyp/4.2.3/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here class Arguments; ^ 4 errors generated. make: *** [Release/obj.target/node_pcsc/src/node-pcsc.o] Error 1 gyp ERR! build error

What could cause these errors?

Thanks

emanahov avatar Jan 31 '16 09:01 emanahov