jetma / jav8

Automatically exported from code.google.com/p/jav8
0 stars 0 forks source link

Build error, related to HandleScope() privacy? #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I downloaded and built the latest v8 on Fedora 20, using "make native".  First, 
the jav8 build failed because it couldn't find the "x64.release" directory... I 
linked it to the "native" directory, and it seemed happy.  (I mention this in 
case you think this is really the cause of my problem.)

When building, a long stream of somewhat similar errors appears.  Here is the 
just the first few:

     [echo] linking V8 static library v8_base.x64,v8_snapshot at /home/cmjanicki/tmp/v8/out/x64.release/obj.target/tools/gyp/
       [cc] 3 total files to be compiled.
       [cc] In file included from /home/cmjanicki/jav8/jni/jav8.cpp:7:0:
       [cc] /home/cmjanicki/tmp/v8/include/v8.h: In constructor ‘jni::V8Env::V8Env(JNIEnv*)’:
       [cc] /home/cmjanicki/tmp/v8/include/v8.h:838:13: error: ‘v8::HandleScope::HandleScope()’ is private
       [cc]    V8_INLINE HandleScope() {}
       [cc]              ^
       [cc] In file included from /home/cmjanicki/jav8/jni/jav8.cpp:16:0:
       [cc] /home/cmjanicki/jav8/jni/Utils.h:273:31: error: within this context
       [cc]    V8Env(JNIEnv *env) : Env(env)
       [cc]                                ^
       [cc] /home/cmjanicki/jav8/jni/Utils.h: In member function ‘v8::Local<T> jni::V8Env::Close(v8::Handle<T>)’:
       [cc] /home/cmjanicki/jav8/jni/Utils.h:291:84: error: ‘class v8::HandleScope’ has no member named ‘Close’
       [cc]    template <class T> v8::Local<T> Close(v8::Handle<T> value) { return handle_scope.Close(value); }

Original issue reported on code.google.com by Chris.Ja...@gmail.com on 14 Jan 2014 at 7:24

GoogleCodeExporter commented 9 years ago
Please check fix with the SVN trunk code after r87

Original comment by flier...@gmail.com on 16 Jan 2014 at 10:14