Build electron failed in ubuntu 15.10


#1

hi,

I tried to build latest electron but failed. I have tried node version 4.5.0 and v0.10.25, but both of them failed. Do you guys know which node version I should use?

gcc version 5.2.1 20151010 (Ubuntu 5.2.1-22ubuntu2)

In file included from …/src/validation.cc:15:
…/…/nan/nan.h:261:25: error: redefinition of '_NanEnsureLocal’
NAN_INLINE v8::Local _NanEnsureLocal(v8::Local val) {
^
…/…/nan/nan.h:256:25: note: previous definition is here
NAN_INLINE v8::Local _NanEnsureLocal(v8::Handle val) {
^
…/…/nan/nan.h:289:39: warning: ‘IdleNotification’ is deprecated [-Wdeprecated-declarations]
return v8::Isolate::GetCurrent()->IdleNotification(idle_time_in_ms);
^
/home/yangxm/.node-gyp/iojs-1.4.0/deps/v8/include/v8.h:6217:22: note: ‘IdleNotification’ has been explicitly marked deprecated here
bool IdleNotification(int idle_time_in_ms));
^
In file included from …/src/validation.cc:15:
…/…/nan/nan.h:473:20: error: no type named ‘GCEpilogueCallback’ in 'v8::Isolate’
v8::Isolate::GCEpilogueCallback callback
~~~~~~~~~~~~~^
…/…/nan/nan.h:479:20: error: no type named ‘GCEpilogueCallback’ in 'v8::Isolate’
v8::Isolate::GCEpilogueCallback callback) {
~~~~~~~~~~~~~^
…/…/nan/nan.h:484:20: error: no type named ‘GCPrologueCallback’ in 'v8::Isolate’
v8::Isolate::GCPrologueCallback callback
~~~~~~~~~~~~~^
…/…/nan/nan.h:490:20: error: no type named ‘GCPrologueCallback’ in 'v8::Isolate’
v8::Isolate::GCPrologueCallback callback) {
~~~~~~~~~~~~~^
…/…/nan/nan.h:569:15: error: no type named ‘WeakCallbackData’ in namespace 'v8’
const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> > &data) {
~~~~^
…/…/nan/nan.h:569:31: error: expected ')'
const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> > &data) {
^
…/…/nan/nan.h:568:41: note: to match this '('
static void _NanWeakCallbackDispatcher(
^
…/…/nan/nan.h:570:42: error: use of undeclared identifier ‘data’
_NanWeakCallbackInfo<T, P> *info = data.GetParameter();
^
…/…/nan/nan.h:661:13: error: no member named ‘smalloc’ in namespace ‘node’
, node::smalloc::FreeCallback callback
~~~~~~^
…/…/nan/nan.h:672:12: error: no matching function for call to 'New’
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);


#2

hei, is there anyone can give me a help? thanks.


#3

Have you followed the build instructions for Linux?