navcodec icon indicating copy to clipboard operation
navcodec copied to clipboard

Node 4.x support

Open caldwell opened this issue 8 years ago • 0 comments

I installed node 4.1.1 (4.2.1 is just entering Debian, now) and I'm getting a bunch of errors while compiling:

  CXX(target) Release/obj.target/navcodec/src/navcodec.o
In file included from ../src/navformat.h:25:0,
                 from ../src/navcodec.h:22,
                 from ../src/navcodec.cpp:22:
../src/navstream.h:35:36: error: expected class-name before ‘{’ token
 class NAVStream : node::ObjectWrap {
                                    ^
../src/navstream.h:47:34: error: ‘Arguments’ does not name a type
   static Handle<Value> New(const Arguments& args);
                                  ^
In file included from ../src/navcodec.h:22:0,
                 from ../src/navcodec.cpp:22:
../src/navformat.h:37:36: error: expected class-name before ‘{’ token
 class NAVFormat : node::ObjectWrap {
                                    ^
../src/navformat.h:51:34: error: ‘Arguments’ does not name a type
   static Handle<Value> New(const Arguments& args);
                                  ^
../src/navformat.h:54:38: error: ‘Arguments’ does not name a type
   static Handle<Value> Version(const Arguments& args);
                                      ^
../src/navformat.h:55:37: error: ‘Arguments’ does not name a type
   static Handle<Value> Decode(const Arguments& args);
                                     ^
../src/navformat.h:56:35: error: ‘Arguments’ does not name a type
   static Handle<Value> Dump(const Arguments& args);
                                   ^
../src/navformat.h:64:42: error: expected class-name before ‘{’ token
 class DecoderNotifier : node::ObjectWrap {
                                          ^
../src/navformat.h:77:35: error: ‘Arguments’ does not name a type
   static Handle<Value> Done(const Arguments& args);
                                   ^
In file included from ../src/navcodec.h:23:0,
                 from ../src/navcodec.cpp:22:
../src/navcodeccontext.h:36:20: error: ‘AccessorInfo’ does not name a type
              const AccessorInfo& info);
                    ^
../src/navcodeccontext.h:38:42: error: expected class-name before ‘{’ token
 class NAVCodecContext : node::ObjectWrap {
                                          ^

There are more, too, but they're all along the same lines. I assume this is because of the V8 changes in the newest node (from the io.js merger). Are there any plans to support the latest version?

caldwell avatar Oct 17 '15 06:10 caldwell