I'm trying to compile this on the latest OS X, but I'm getting the following error. Any ideas about what might be wrong?
$ node-gyp configure && node-gyp build
gyp info it worked if it ends with ok
gyp info using node-gyp@2.0.1
gyp info using node@0.12.4 | darwin | x64
gyp info spawn python
gyp info spawn args [ '/usr/local/lib/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/Users/fortytwo/random/soundbounce/src/client-node-webkit/node-spotify-master/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/fortytwo/.node-gyp/0.12.4/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/fortytwo/.node-gyp/0.12.4',
gyp info spawn args '-Dmodule_root_dir=/Users/fortytwo/random/soundbounce/src/client-node-webkit/node-spotify-master',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info ok
gyp info it worked if it ends with ok
gyp info using node-gyp@2.0.1
gyp info using node@0.12.4 | darwin | x64
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
CXX(target) Release/obj.target/nodespotify/src/node-spotify.o
In file included from ../src/node-spotify.cc:4:
In file included from ../src/objects/node/NodeSpotify.h:4:
../src/objects/node/NodeWrapped.h:16:34: error: expected class name
class NodeWrapped : public node::ObjectWrap, public virtual V8Wrapped {
^
../src/objects/node/NodeWrapped.h:38:97: error: no type named 'AccessorInfo' in
namespace 'v8'
...property, v8::Local<v8::Value> value, const v8::AccessorInfo& info) {};
~~~~^
../src/objects/node/NodeWrapped.h:24:8: error: use of undeclared identifier
'handle_'; did you mean 'uv_lib_t::handle'?
if(handle_.IsEmpty()) {
^~~~~~~
uv_lib_t::handle
/Users/fortytwo/.node-gyp/0.12.4/deps/uv/include/uv-unix.h:205:9: note:
'uv_lib_t::handle' declared here
void* handle;
^
In file included from ../src/node-spotify.cc:4:
In file included from ../src/objects/node/NodeSpotify.h:4:
../src/objects/node/NodeWrapped.h:24:8: error: invalid use of non-static data
member 'handle'
if(handle_.IsEmpty()) {
^~~~~~~
../src/objects/node/NodeWrapped.h:25:71: error: member reference type
'v8::Persistent<v8::Function>' is not a pointer; maybe you meant to use
'.'?
v8::Local<v8::Object> o = v8::Local<v8::Object>::New(constructor->NewIns...
~~~~~~~~~~~^~
.
../src/objects/node/NodeWrapped.h:25:73: error: no member named 'NewInstance' in
'v8::Persistent<v8::Function,
v8::NonCopyablePersistentTraits<v8::Function> >'
v8::Local<v8::Object> o = v8::Local<v8::Object>::New(constructor->NewIns...
~~~~~~~~~~~ ^
../src/objects/node/NodeWrapped.h:28:12: error: use of undeclared identifier
'handle_'; did you mean 'uv_lib_t::handle'?
return handle_;
^~~~~~~
uv_lib_t::handle
/Users/fortytwo/.node-gyp/0.12.4/deps/uv/include/uv-unix.h:205:9: note:
'uv_lib_t::handle' declared here
void* handle;
^
In file included from ../src/node-spotify.cc:4:
In file included from ../src/objects/node/NodeSpotify.h:4:
../src/objects/node/NodeWrapped.h:28:12: error: invalid use of non-static data
member 'handle'
return handle_;
^~~~~~~
../src/objects/node/NodeWrapped.h:32:12: error: no viable conversion from
'v8::Persistent<v8::Function>' to 'v8::Handle<v8::Function>'
return constructor;
^~~~~~~~~~~
/Users/fortytwo/.node-gyp/0.12.4/deps/v8/include/v8.h:196:26: note: candidate
constructor (the implicit copy constructor) not viable: no known
conversion from 'v8::Persistent<v8::Function>' to 'const
v8::Handle<v8::Function> &' for 1st argument
template <class T> class Handle {
^
/Users/fortytwo/.node-gyp/0.12.4/deps/v8/include/v8.h:196:26: note: candidate
constructor (the implicit move constructor) not viable: no known
conversion from 'v8::Persistent<v8::Function>' to
'v8::Handle<v8::Function> &&' for 1st argument
template <class T> class Handle {
^
/Users/fortytwo/.node-gyp/0.12.4/deps/v8/include/v8.h:213:32: note: candidate
template ignored: could not match 'Handle' against 'Persistent'
template <class S> V8_INLINE Handle(Handle<S> that)
^
In file included from ../src/node-spotify.cc:4:
In file included from ../src/objects/node/NodeSpotify.h:4:
../src/objects/node/NodeWrapped.h:46:85: error: too few arguments to function
call, at least argument 'isolate' must be specified
...constructorTemplate = v8::FunctionTemplate::New();
~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/fortytwo/.node-gyp/0.12.4/deps/v8/include/v8.h:3455:3: note: 'New'
declared here
static Local<FunctionTemplate> New(
^
In file included from ../src/node-spotify.cc:4:
In file included from ../src/objects/node/NodeSpotify.h:4:
../src/objects/node/NodeWrapped.h:47:51: error: no member named 'NewSymbol' in
'v8::String'; did you mean 'IsSymbol'?
constructorTemplate->SetClassName(v8::String::NewSymbol(className));
~~~~~~~~~~~~^~~~~~~~~
IsSymbol
/Users/fortytwo/.node-gyp/0.12.4/deps/v8/include/v8.h:1379:8: note: 'IsSymbol'
declared here
bool IsSymbol() const;
^
In file included from ../src/node-spotify.cc:4:
In file included from ../src/objects/node/NodeSpotify.h:4:
../src/objects/node/NodeWrapped.h:47:51: error: call to non-static member
function without an object argument
constructorTemplate->SetClassName(v8::String::NewSymbol(className));
~~~~~~~~~~~~^~~~~~~~~
../src/objects/node/NodeWrapped.h:18:3: error: exception specification of
overriding function is more lax than base version
~NodeWrapped() {}
^
../src/objects/node/NodeSpotify.h:12:28: note: in instantiation of template
class 'NodeWrapped<NodeSpotify>' requested here
class NodeSpotify : public NodeWrapped<NodeSpotify> {
^
../src/objects/node/V8Wrapped.h:8:11: note: overridden virtual function is here
virtual ~V8Wrapped() {};
^
In file included from ../src/node-spotify.cc:4:
../src/objects/node/NodeSpotify.h:16:36: error: unknown type name 'Arguments';
did you mean 'v8::internal::Arguments'?
static Handle<Value> login(const Arguments& args);
^~~~~~~~~
v8::internal::Arguments
/Users/fortytwo/.node-gyp/0.12.4/deps/v8/include/v8.h:127:7: note:
'v8::internal::Arguments' declared here
class Arguments;
^
In file included from ../src/node-spotify.cc:4:
../src/objects/node/NodeSpotify.h:17:37: error: unknown type name 'Arguments';
did you mean 'v8::internal::Arguments'?
static Handle<Value> logout(const Arguments& args);
^~~~~~~~~
v8::internal::Arguments
/Users/fortytwo/.node-gyp/0.12.4/deps/v8/include/v8.h:127:7: note:
'v8::internal::Arguments' declared here
class Arguments;
^
In file included from ../src/node-spotify.cc:4:
../src/objects/node/NodeSpotify.h:18:75: error: unknown type name 'AccessorInfo'
...Handle<Value> getPlaylistContainer(Local<String> property, const Accesso...
^
../src/objects/node/NodeSpotify.h:19:72: error: unknown type name 'AccessorInfo'
...Handle<Value> getRememberedUser(Local<String> property, const AccessorIn...
^
../src/objects/node/NodeSpotify.h:20:69: error: unknown type name 'AccessorInfo'
static Handle<Value> getSessionUser(Local<String> property, const Access...
^
../src/objects/node/NodeSpotify.h:21:45: error: unknown type name 'Arguments';
did you mean 'v8::internal::Arguments'?
static Handle<Value> createFromLink(const Arguments& args);
^~~~~~~~~
v8::internal::Arguments
/Users/fortytwo/.node-gyp/0.12.4/deps/v8/include/v8.h:127:7: note:
'v8::internal::Arguments' declared here
class Arguments;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/nodespotify/src/node-spotify.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Darwin 14.3.0
gyp ERR! command "node" "/usr/local/bin/node-gyp" "build"
gyp ERR! cwd /Users/fortytwo/random/soundbounce/src/client-node-webkit/node-spotify-master
gyp ERR! node -v v0.12.4
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/23143505-compile-time-error?utm_campaign=plugin&utm_content=tracker%2F9578624&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F9578624&utm_medium=issues&utm_source=github).
Hi,
I'm trying to compile this on the latest OS X, but I'm getting the following error. Any ideas about what might be wrong?