Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V8 MapScript Support #5484

Open
jbelien opened this issue Sep 27, 2017 · 3 comments
Open

V8 MapScript Support #5484

jbelien opened this issue Sep 27, 2017 · 3 comments

Comments

@jbelien
Copy link

jbelien commented Sep 27, 2017

Hello,

I'm struggling with how to add v8 support in MapServer.

I found http://mapserver.org/installation/v8.html but the install instructions for v8 are now different :
https://github.com/v8/v8/wiki/Building-from-Source.

I successfully compiled v8 following the instructions ;
But I have no idea now how to compile MapServer with v8 support ;
I ran this command :

cmake -DWITH_V8=yes ..

but as excepted, I have this error : V8 JavaScript support requested but not found. !

I try to install the v8 library and include headers as defined in MapServer documentation but I couldn't find the libv8.so file.

Could someone help me or update the documentation ?
Thanks a lot !

@jbelien
Copy link
Author

jbelien commented Oct 3, 2017

I installed libv8-3.14.5 and libv8-3.14-dev. I also tried with libv8-dev.

But when I'm compiling it, I have the following errors :

In file included from /home/debian/mapserver-7.0.4/mapscript/v8/v8_mapscript.h:44:0,
                 from /home/debian/mapserver-7.0.4/mapv8.cpp:33:
/home/debian/mapserver-7.0.4/mapscript/v8/v8_object_wrap.hpp: In static member function ‘static T* ObjectWrap::Unwrap(v8::Handle<v8::Object>)’:
/home/debian/mapserver-7.0.4/mapscript/v8/v8_object_wrap.hpp:49:25: error: ‘class v8::Object’ has no member named ‘GetAlignedPointerFromInternalField’
     void* ptr = handle->GetAlignedPointerFromInternalField(0);
                         ^
/home/debian/mapserver-7.0.4/mapscript/v8/v8_object_wrap.hpp: In member function ‘v8::Local<v8::Object> ObjectWrap::handle(v8::Isolate*)’:
/home/debian/mapserver-7.0.4/mapscript/v8/v8_object_wrap.hpp:61:60: error: no matching function for call to ‘v8::Local<v8::Object>::New(v8::Isolate*&, v8::Persistent<v8::Object>&)’
     return v8::Local<v8::Object>::New(isolate, persistent());
                                                            ^
/home/debian/mapserver-7.0.4/mapscript/v8/v8_object_wrap.hpp:61:60: note: candidate is:
In file included from /home/debian/mapserver-7.0.4/mapscript/v8/v8_mapscript.h:40:0,
                 from /home/debian/mapserver-7.0.4/mapv8.cpp:33:
/usr/include/v8.h:4197:10: note: static v8::Local<T> v8::Local<T>::New(v8::Handle<T>) [with T = v8::Object]
 Local<T> Local<T>::New(Handle<T> that) {
          ^
/usr/include/v8.h:4197:10: note:   candidate expects 1 argument, 2 provided
In file included from /home/debian/mapserver-7.0.4/mapscript/v8/v8_mapscript.h:44:0,
                 from /home/debian/mapserver-7.0.4/mapv8.cpp:33:
/home/debian/mapserver-7.0.4/mapscript/v8/v8_object_wrap.hpp: In member function ‘void ObjectWrap::Wrap(v8::Handle<v8::Object>)’:
/home/debian/mapserver-7.0.4/mapscript/v8/v8_object_wrap.hpp:74:13: error: ‘class v8::Object’ has no member named ‘SetAlignedPointerInInternalField’
     handle->SetAlignedPointerInInternalField(0, this);
             ^
/home/debian/mapserver-7.0.4/mapscript/v8/v8_object_wrap.hpp:75:18: error: ‘class v8::Persistent<v8::Object>’ has no member named ‘Reset’
     persistent().Reset(v8::Isolate::GetCurrent(), handle);
                  ^
/home/debian/mapserver-7.0.4/mapscript/v8/v8_object_wrap.hpp: In member function ‘void ObjectWrap::MakeWeak()’:
/home/debian/mapserver-7.0.4/mapscript/v8/v8_object_wrap.hpp:81:45: error: invalid conversion from ‘void (*)(v8::Isolate*, v8::Persistent<v8::Object>*, ObjectWrap*)’ to ‘v8::WeakReferenceCallback {aka void (*)(v8::Persistent<v8::Value>, void*)}’ [-fpermissive]
     persistent().MakeWeak(this, WeakCallback);
                                             ^
In file included from /home/debian/mapserver-7.0.4/mapscript/v8/v8_mapscript.h:40:0,
                 from /home/debian/mapserver-7.0.4/mapv8.cpp:33:
/usr/include/v8.h:4249:6: note: initializing argument 2 of ‘void v8::Persistent<T>::MakeWeak(void*, v8::WeakReferenceCallback) [with T = v8::Object; v8::WeakReferenceCallback = void (*)(v8::Persistent<v8::Value>, void*)]’
 void Persistent<T>::MakeWeak(void* parameters, WeakReferenceCallback callback) {
      ^
In file included from /home/debian/mapserver-7.0.4/mapscript/v8/v8_mapscript.h:44:0,
                 from /home/debian/mapserver-7.0.4/mapv8.cpp:33:
/home/debian/mapserver-7.0.4/mapscript/v8/v8_object_wrap.hpp: In static member function ‘static void ObjectWrap::WeakCallback(v8::Isolate*, v8::Persistent<v8::Object>*, ObjectWrap*)’:
/home/debian/mapserver-7.0.4/mapscript/v8/v8_object_wrap.hpp:118:34: error: no matching function for call to ‘v8::HandleScope::HandleScope(v8::Isolate*&)’
     v8::HandleScope scope(isolate);
                                  ^
/home/debian/mapserver-7.0.4/mapscript/v8/v8_object_wrap.hpp:118:34: note: candidates are:
In file included from /home/debian/mapserver-7.0.4/mapscript/v8/v8_mapscript.h:40:0,
                 from /home/debian/mapserver-7.0.4/mapv8.cpp:33:
/usr/include/v8.h:473:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
   HandleScope(const HandleScope&);
   ^
/usr/include/v8.h:473:3: note:   no known conversion for argument 1 from ‘v8::Isolate*’ to ‘const v8::HandleScope&’
/usr/include/v8.h:448:3: note: v8::HandleScope::HandleScope()
   HandleScope();
   ^
/usr/include/v8.h:448:3: note:   candidate expects 0 arguments, 1 provided
In file included from /home/debian/mapserver-7.0.4/mapscript/v8/v8_mapscript.h:45:0,
                 from /home/debian/mapserver-7.0.4/mapv8.cpp:33:
/home/debian/mapserver-7.0.4/mapscript/v8/point.hpp: At global scope:
/home/debian/mapserver-7.0.4/mapscript/v8/point.hpp:40:29: error: ‘FunctionCallbackInfo’ in namespace ‘v8’ does not name a template type
   static void New(const v8::FunctionCallbackInfo<v8::Value>& args);
                             ^
/home/debian/mapserver-7.0.4/mapscript/v8/point.hpp:40:49: error: expected ‘,’ or ‘...’ before ‘<’ token
   static void New(const v8::FunctionCallbackInfo<v8::Value>& args);
                                                 ^
/home/debian/mapserver-7.0.4/mapscript/v8/point.hpp:50:29: error: ‘PropertyCallbackInfo’ does not name a type
                       const PropertyCallbackInfo<Value>& info);
                             ^
/home/debian/mapserver-7.0.4/mapscript/v8/point.hpp:50:49: error: expected ‘,’ or ‘...’ before ‘<’ token
                       const PropertyCallbackInfo<Value>& info);
                                                 ^
/home/debian/mapserver-7.0.4/mapscript/v8/point.hpp:53:29: error: ‘PropertyCallbackInfo’ does not name a type
                       const PropertyCallbackInfo<void>& info);
                             ^
/home/debian/mapserver-7.0.4/mapscript/v8/point.hpp:53:49: error: expected ‘,’ or ‘...’ before ‘<’ token
                       const PropertyCallbackInfo<void>& info);
                                                 ^
/home/debian/mapserver-7.0.4/mapscript/v8/point.hpp:55:31: error: ‘FunctionCallbackInfo’ in namespace ‘v8’ does not name a template type
   static void setXY(const v8::FunctionCallbackInfo<v8::Value>& args);
                               ^
/home/debian/mapserver-7.0.4/mapscript/v8/point.hpp:55:51: error: expected ‘,’ or ‘...’ before ‘<’ token
   static void setXY(const v8::FunctionCallbackInfo<v8::Value>& args);
                                                   ^
/home/debian/mapserver-7.0.4/mapscript/v8/point.hpp:56:32: error: ‘FunctionCallbackInfo’ in namespace ‘v8’ does not name a template type
   static void setXYZ(const v8::FunctionCallbackInfo<v8::Value>& args);
                                ^
/home/debian/mapserver-7.0.4/mapscript/v8/point.hpp:56:52: error: expected ‘,’ or ‘...’ before ‘<’ token
   static void setXYZ(const v8::FunctionCallbackInfo<v8::Value>& args);
                                                    ^
In file included from /home/debian/mapserver-7.0.4/mapscript/v8/v8_mapscript.h:46:0,
                 from /home/debian/mapserver-7.0.4/mapv8.cpp:33:
/home/debian/mapserver-7.0.4/mapscript/v8/line.hpp:40:29: error: ‘FunctionCallbackInfo’ in namespace ‘v8’ does not name a template type
   static void New(const v8::FunctionCallbackInfo<v8::Value>& args);
                             ^
/home/debian/mapserver-7.0.4/mapscript/v8/line.hpp:40:49: error: expected ‘,’ or ‘...’ before ‘<’ token
   static void New(const v8::FunctionCallbackInfo<v8::Value>& args);
                                                 ^
/home/debian/mapserver-7.0.4/mapscript/v8/line.hpp:50:29: error: ‘PropertyCallbackInfo’ does not name a type
                       const PropertyCallbackInfo<Value>& info);
                             ^
/home/debian/mapserver-7.0.4/mapscript/v8/line.hpp:50:49: error: expected ‘,’ or ‘...’ before ‘<’ token
                       const PropertyCallbackInfo<Value>& info);
                                                 ^
/home/debian/mapserver-7.0.4/mapscript/v8/line.hpp:53:29: error: ‘PropertyCallbackInfo’ does not name a type
                       const PropertyCallbackInfo<void>& info);
                             ^
/home/debian/mapserver-7.0.4/mapscript/v8/line.hpp:53:49: error: expected ‘,’ or ‘...’ before ‘<’ token
                       const PropertyCallbackInfo<void>& info);
                                                 ^
/home/debian/mapserver-7.0.4/mapscript/v8/line.hpp:55:34: error: ‘FunctionCallbackInfo’ in namespace ‘v8’ does not name a template type
   static void getPoint(const v8::FunctionCallbackInfo<Value>& args);
                                  ^
/home/debian/mapserver-7.0.4/mapscript/v8/line.hpp:55:54: error: expected ‘,’ or ‘...’ before ‘<’ token
   static void getPoint(const v8::FunctionCallbackInfo<Value>& args);
                                                      ^
/home/debian/mapserver-7.0.4/mapscript/v8/line.hpp:56:31: error: ‘FunctionCallbackInfo’ in namespace ‘v8’ does not name a template type
   static void addXY(const v8::FunctionCallbackInfo<Value>& args);
                               ^
/home/debian/mapserver-7.0.4/mapscript/v8/line.hpp:56:51: error: expected ‘,’ or ‘...’ before ‘<’ token
   static void addXY(const v8::FunctionCallbackInfo<Value>& args);
                                                   ^
/home/debian/mapserver-7.0.4/mapscript/v8/line.hpp:57:32: error: ‘FunctionCallbackInfo’ in namespace ‘v8’ does not name a template type
   static void addXYZ(const v8::FunctionCallbackInfo<Value>& args);
                                ^
/home/debian/mapserver-7.0.4/mapscript/v8/line.hpp:57:52: error: expected ‘,’ or ‘...’ before ‘<’ token
   static void addXYZ(const v8::FunctionCallbackInfo<Value>& args);
                                                    ^
/home/debian/mapserver-7.0.4/mapscript/v8/line.hpp:58:34: error: ‘FunctionCallbackInfo’ in namespace ‘v8’ does not name a template type
   static void addPoint(const v8::FunctionCallbackInfo<Value>& args);
                                  ^
/home/debian/mapserver-7.0.4/mapscript/v8/line.hpp:58:54: error: expected ‘,’ or ‘...’ before ‘<’ token
   static void addPoint(const v8::FunctionCallbackInfo<Value>& args);
                                                      ^
In file included from /home/debian/mapserver-7.0.4/mapscript/v8/v8_mapscript.h:47:0,
                 from /home/debian/mapserver-7.0.4/mapv8.cpp:33:
/home/debian/mapserver-7.0.4/mapscript/v8/shape.hpp:44:29: error: ‘FunctionCallbackInfo’ in namespace ‘v8’ does not name a template type
   static void New(const v8::FunctionCallbackInfo<v8::Value>& args);
                             ^
/home/debian/mapserver-7.0.4/mapscript/v8/shape.hpp:44:49: error: expected ‘,’ or ‘...’ before ‘<’ token
   static void New(const v8::FunctionCallbackInfo<v8::Value>& args);
                                                 ^
/home/debian/mapserver-7.0.4/mapscript/v8/shape.hpp:56:29: error: ‘PropertyCallbackInfo’ does not name a type
                       const PropertyCallbackInfo<Value>& info);
                             ^
/home/debian/mapserver-7.0.4/mapscript/v8/shape.hpp:56:49: error: expected ‘,’ or ‘...’ before ‘<’ token
                       const PropertyCallbackInfo<Value>& info);
                                                 ^
/home/debian/mapserver-7.0.4/mapscript/v8/shape.hpp:59:29: error: ‘PropertyCallbackInfo’ does not name a type
                       const PropertyCallbackInfo<void>& info);
                             ^
/home/debian/mapserver-7.0.4/mapscript/v8/shape.hpp:59:49: error: expected ‘,’ or ‘...’ before ‘<’ token
                       const PropertyCallbackInfo<void>& info);
                                                 ^
/home/debian/mapserver-7.0.4/mapscript/v8/shape.hpp:61:31: error: ‘FunctionCallbackInfo’ in namespace ‘v8’ does not name a template type
   static void clone(const v8::FunctionCallbackInfo<v8::Value>& args);
                               ^
/home/debian/mapserver-7.0.4/mapscript/v8/shape.hpp:61:51: error: expected ‘,’ or ‘...’ before ‘<’ token
   static void clone(const v8::FunctionCallbackInfo<v8::Value>& args);
                                                   ^
/home/debian/mapserver-7.0.4/mapscript/v8/shape.hpp:62:33: error: ‘FunctionCallbackInfo’ in namespace ‘v8’ does not name a template type
   static void getLine(const v8::FunctionCallbackInfo<v8::Value>& args);
                                 ^
/home/debian/mapserver-7.0.4/mapscript/v8/shape.hpp:62:53: error: expected ‘,’ or ‘...’ before ‘<’ token
   static void getLine(const v8::FunctionCallbackInfo<v8::Value>& args);
                                                     ^
/home/debian/mapserver-7.0.4/mapscript/v8/shape.hpp:63:33: error: ‘FunctionCallbackInfo’ in namespace ‘v8’ does not name a template type
   static void addLine(const v8::FunctionCallbackInfo<v8::Value>& args);
                                 ^
/home/debian/mapserver-7.0.4/mapscript/v8/shape.hpp:63:53: error: expected ‘,’ or ‘...’ before ‘<’ token
   static void addLine(const v8::FunctionCallbackInfo<v8::Value>& args);
                                                     ^
/home/debian/mapserver-7.0.4/mapscript/v8/shape.hpp:64:37: error: ‘FunctionCallbackInfo’ in namespace ‘v8’ does not name a template type
   static void setGeometry(const v8::FunctionCallbackInfo<v8::Value>& args);
                                     ^
/home/debian/mapserver-7.0.4/mapscript/v8/shape.hpp:64:57: error: expected ‘,’ or ‘...’ before ‘<’ token
   static void setGeometry(const v8::FunctionCallbackInfo<v8::Value>& args);
                                                         ^
/home/debian/mapserver-7.0.4/mapscript/v8/shape.hpp:71:39: error: ‘PropertyCallbackInfo’ does not name a type
                                 const PropertyCallbackInfo<Value> &info);
                                       ^
/home/debian/mapserver-7.0.4/mapscript/v8/shape.hpp:71:59: error: expected ‘,’ or ‘...’ before ‘<’ token
                                 const PropertyCallbackInfo<Value> &info);
                                                           ^
/home/debian/mapserver-7.0.4/mapscript/v8/shape.hpp:74:39: error: ‘PropertyCallbackInfo’ does not name a type
                                 const PropertyCallbackInfo<Value> &info);
                                       ^
/home/debian/mapserver-7.0.4/mapscript/v8/shape.hpp:74:59: error: expected ‘,’ or ‘...’ before ‘<’ token
                                 const PropertyCallbackInfo<Value> &info);
                                                           ^
In file included from /home/debian/mapserver-7.0.4/mapv8.cpp:33:0:
/home/debian/mapserver-7.0.4/mapscript/v8/v8_mapscript.h:71:43: error: ‘v8::FunctionCallback’ has not been declared
                                       v8::FunctionCallback callback) {
                                           ^
/home/debian/mapserver-7.0.4/mapscript/v8/v8_mapscript.h: In function ‘void NODE_SET_PROTOTYPE_METHOD(v8::Handle<v8::FunctionTemplate>, const char*, int)’:
/home/debian/mapserver-7.0.4/mapscript/v8/v8_mapscript.h:73:39: error: no matching function for call to ‘v8::HandleScope::HandleScope(v8::Isolate*&)’
   v8::HandleScope handle_scope(isolate);
                                       ^
/home/debian/mapserver-7.0.4/mapscript/v8/v8_mapscript.h:73:39: note: candidates are:
In file included from /home/debian/mapserver-7.0.4/mapscript/v8/v8_mapscript.h:40:0,
                 from /home/debian/mapserver-7.0.4/mapv8.cpp:33:
/usr/include/v8.h:473:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
   HandleScope(const HandleScope&);
   ^
/usr/include/v8.h:473:3: note:   no known conversion for argument 1 from ‘v8::Isolate*’ to ‘const v8::HandleScope&’
/usr/include/v8.h:448:3: note: v8::HandleScope::HandleScope()
   HandleScope();
   ^
/usr/include/v8.h:448:3: note:   candidate expects 0 arguments, 1 provided
In file included from /home/debian/mapserver-7.0.4/mapv8.cpp:33:0:
/home/debian/mapserver-7.0.4/mapscript/v8/v8_mapscript.h:74:73: error: invalid conversion from ‘int’ to ‘v8::InvocationCallback {aka v8::Handle<v8::Value> (*)(const v8::Arguments&)}’ [-fpermissive]
   v8::Local<v8::FunctionTemplate> t = v8::FunctionTemplate::New(callback);
                                                                         ^
In file included from /home/debian/mapserver-7.0.4/mapscript/v8/v8_mapscript.h:40:0,
                 from /home/debian/mapserver-7.0.4/mapv8.cpp:33:
/usr/include/v8.h:2255:34: note: initializing argument 1 of ‘static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::InvocationCallback, v8::Handle<v8::Value>, v8::Handle<v8::Signature>)’
   static Local<FunctionTemplate> New(
                                  ^
In file included from /home/debian/mapserver-7.0.4/mapv8.cpp:33:0:
/home/debian/mapserver-7.0.4/mapscript/v8/v8_mapscript.h:75:33: error: ‘NewFromUtf8’ is not a member of ‘v8::String’
   recv->InstanceTemplate()->Set(v8::String::NewFromUtf8(isolate, name),
                                 ^
/home/debian/mapserver-7.0.4/mapv8.cpp: In function ‘v8::Handle<v8::Value> msV8ExecuteScript(const char*, int)’:
/home/debian/mapserver-7.0.4/mapv8.cpp:173:13: error: ‘class v8::Persistent<v8::Script>’ has no member named ‘Reset’
     pscript.Reset(isolate, script);
             ^
/home/debian/mapserver-7.0.4/mapv8.cpp: In function ‘void msV8CreateContext(mapObj*)’:
/home/debian/mapserver-7.0.4/mapv8.cpp:229:35: error: no matching function for call to ‘v8::HandleScope::HandleScope(v8::Isolate*&)’
   HandleScope handle_scope(isolate);
                                   ^
/home/debian/mapserver-7.0.4/mapv8.cpp:229:35: note: candidates are:
In file included from /home/debian/mapserver-7.0.4/mapscript/v8/v8_mapscript.h:40:0,
                 from /home/debian/mapserver-7.0.4/mapv8.cpp:33:
/usr/include/v8.h:473:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
   HandleScope(const HandleScope&);
   ^
/usr/include/v8.h:473:3: note:   no known conversion for argument 1 from ‘v8::Isolate*’ to ‘const v8::HandleScope&’
/usr/include/v8.h:448:3: note: v8::HandleScope::HandleScope()
   HandleScope();
   ^
/usr/include/v8.h:448:3: note:   candidate expects 0 arguments, 1 provided
/home/debian/mapserver-7.0.4/mapv8.cpp:238:81: error: no matching function for call to ‘v8::Context::New(v8::Isolate*&, NULL, v8::Handle<v8::ObjectTemplate>&)’
   Handle<Context> context_ = Context::New(v8context->isolate, NULL, global_templ);
                                                                                 ^
/home/debian/mapserver-7.0.4/mapv8.cpp:238:81: note: candidate is:
In file included from /home/debian/mapserver-7.0.4/mapscript/v8/v8_mapscript.h:40:0,
                 from /home/debian/mapserver-7.0.4/mapv8.cpp:33:
/usr/include/v8.h:3695:30: note: static v8::Persistent<v8::Context> v8::Context::New(v8::ExtensionConfiguration*, v8::Handle<v8::ObjectTemplate>, v8::Handle<v8::Value>)
   static Persistent<Context> New(
                              ^
/usr/include/v8.h:3695:30: note:   no known conversion for argument 1 from ‘v8::Isolate*’ to ‘v8::ExtensionConfiguration*’
/home/debian/mapserver-7.0.4/mapv8.cpp:239:22: error: ‘class v8::Persistent<v8::Context>’ has no member named ‘Reset’
   v8context->context.Reset(v8context->isolate, context_);
                      ^
/home/debian/mapserver-7.0.4/mapv8.cpp: In function ‘char* msV8GetFeatureStyle(mapObj*, const char*, layerObj*, shapeObj*)’:
/home/debian/mapserver-7.0.4/mapv8.cpp:301:46: error: no matching function for call to ‘v8::HandleScope::HandleScope(v8::Isolate*&)’
   HandleScope handle_scope(v8context->isolate);
                                              ^
/home/debian/mapserver-7.0.4/mapv8.cpp:301:46: note: candidates are:
In file included from /home/debian/mapserver-7.0.4/mapscript/v8/v8_mapscript.h:40:0,
                 from /home/debian/mapserver-7.0.4/mapv8.cpp:33:
/usr/include/v8.h:473:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
   HandleScope(const HandleScope&);
   ^
/usr/include/v8.h:473:3: note:   no known conversion for argument 1 from ‘v8::Isolate*’ to ‘const v8::HandleScope&’
/usr/include/v8.h:448:3: note: v8::HandleScope::HandleScope()
   HandleScope();
   ^
/usr/include/v8.h:448:3: note:   candidate expects 0 arguments, 1 provided
/home/debian/mapserver-7.0.4/mapv8.cpp:304:86: error: no matching function for call to ‘v8::Local<v8::Context>::New(v8::Isolate*&, v8::Persistent<v8::Context>&)’
   Local<Context> context = Local<Context>::New(v8context->isolate, v8context->context);
                                                                                      ^
/home/debian/mapserver-7.0.4/mapv8.cpp:304:86: note: candidate is:
In file included from /home/debian/mapserver-7.0.4/mapscript/v8/v8_mapscript.h:40:0,
                 from /home/debian/mapserver-7.0.4/mapv8.cpp:33:
/usr/include/v8.h:4197:10: note: static v8::Local<T> v8::Local<T>::New(v8::Handle<T>) [with T = v8::Context]
 Local<T> Local<T>::New(Handle<T> that) {
          ^
/usr/include/v8.h:4197:10: note:   candidate expects 1 argument, 2 provided
/home/debian/mapserver-7.0.4/mapv8.cpp: In function ‘shapeObj* msV8TransformShape(shapeObj*, const char*)’:
/home/debian/mapserver-7.0.4/mapv8.cpp:342:46: error: no matching function for call to ‘v8::HandleScope::HandleScope(v8::Isolate*&)’
   HandleScope handle_scope(v8context->isolate);
                                              ^
/home/debian/mapserver-7.0.4/mapv8.cpp:342:46: note: candidates are:
In file included from /home/debian/mapserver-7.0.4/mapscript/v8/v8_mapscript.h:40:0,
                 from /home/debian/mapserver-7.0.4/mapv8.cpp:33:
/usr/include/v8.h:473:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
   HandleScope(const HandleScope&);
   ^
/usr/include/v8.h:473:3: note:   no known conversion for argument 1 from ‘v8::Isolate*’ to ‘const v8::HandleScope&’
/usr/include/v8.h:448:3: note: v8::HandleScope::HandleScope()
   HandleScope();
   ^
/usr/include/v8.h:448:3: note:   candidate expects 0 arguments, 1 provided
/home/debian/mapserver-7.0.4/mapv8.cpp:345:86: error: no matching function for call to ‘v8::Local<v8::Context>::New(v8::Isolate*&, v8::Persistent<v8::Context>&)’
   Local<Context> context = Local<Context>::New(v8context->isolate, v8context->context);
                                                                                      ^
/home/debian/mapserver-7.0.4/mapv8.cpp:345:86: note: candidate is:
In file included from /home/debian/mapserver-7.0.4/mapscript/v8/v8_mapscript.h:40:0,
                 from /home/debian/mapserver-7.0.4/mapv8.cpp:33:
/usr/include/v8.h:4197:10: note: static v8::Local<T> v8::Local<T>::New(v8::Handle<T>) [with T = v8::Context]
 Local<T> Local<T>::New(Handle<T> that) {
          ^
/usr/include/v8.h:4197:10: note:   candidate expects 1 argument, 2 provided
CMakeFiles/mapserver.dir/build.make:2285: recipe for target 'CMakeFiles/mapserver.dir/mapv8.cpp.o' failed
make[2]: *** [CMakeFiles/mapserver.dir/mapv8.cpp.o] Error 1
CMakeFiles/Makefile2:130: recipe for target 'CMakeFiles/mapserver.dir/all' failed
make[1]: *** [CMakeFiles/mapserver.dir/all] Error 2
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2

@honoref
Copy link

honoref commented Jan 31, 2018

I have send an email to alan boudreault about this problem for mapserver 7.0.7. He answered me "From what I can see in the logs, I am not sure latest mapserver supports a recent version of the v8 engine anymore"

make_V8.log

@sanfilippopablo
Copy link

Any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants