Skip to content

Error during compilation with node-gyp #20

@emanahov

Description

@emanahov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions