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

Issues installing #11

Closed
saebekassebil opened this issue Apr 18, 2020 · 7 comments
Closed

Issues installing #11

saebekassebil opened this issue Apr 18, 2020 · 7 comments

Comments

@saebekassebil
Copy link

Hello @2bbb !

This is a super exciting project and I'd really like to use it in my setup, but I'm having troubles building the module after installing it (with npm)

I get the following errors:

In file included from ../src/nbind.cc:1:
In file included from ../src/./node-abletonlink.hpp:13:
In file included from ../../nbind/include/nbind/nbind.h:8:
In file included from ../../nbind/include/nbind/noconflict.h:8:
In file included from ../../nbind/include/nbind/BindDefiner.h:11:
In file included from ../../nbind/include/nbind/api.h:72:
../../nbind/include/nbind/v8/BindingType.h:193:1: error: too few arguments to function call, single argument 'context' was not
      specified

In file included from ../src/nbind.cc:1:
In file included from ../src/./node-abletonlink.hpp:13:
In file included from ../../nbind/include/nbind/nbind.h:8:
In file included from ../../nbind/include/nbind/noconflict.h:8:
In file included from ../../nbind/include/nbind/BindDefiner.h:11:
In file included from ../../nbind/include/nbind/api.h:71:
../../nbind/include/nbind/v8/BindWrapper.h:217:38: error: expected '(' for function-style cast or type construction
                void *ptr = v8::Handle<v8::External>::Cast(nanArgs[0])->Value();
                                       ~~~~~~~~~~~~^
../../nbind/include/nbind/v8/BindWrapper.h:217:19: error: no member named 'Handle' in namespace 'v8'
                void *ptr = v8::Handle<v8::External>::Cast(nanArgs[0])->Value();
                            ~~~~^
../../nbind/include/nbind/v8/BindWrapper.h:217:41: error: no member named 'Cast' in the global namespace
                void *ptr = v8::Handle<v8::External>::Cast(nanArgs[0])->Value();
                                                    ~~^
../../nbind/include/nbind/v8/BindWrapper.h:217:19: error: 'handle_' is a private member of 'node::ObjectWrap'
                void *ptr = v8::Handle<v8::External>::Cast(nanArgs[0])->Value();

and many others. Have I overlooked some dependency, or is this something else? I'm building on macOS Catalina 10.15.4

@2bbb
Copy link
Owner

2bbb commented Apr 19, 2020

please tell me your node version.

@Onni97
Copy link

Onni97 commented Apr 21, 2020

Hello @2bbb !

This is a super exciting project and I'd really like to use it in my setup, but I'm having troubles building the module after installing it (with npm)

I get the following errors:

In file included from ../src/nbind.cc:1:
In file included from ../src/./node-abletonlink.hpp:13:
In file included from ../../nbind/include/nbind/nbind.h:8:
In file included from ../../nbind/include/nbind/noconflict.h:8:
In file included from ../../nbind/include/nbind/BindDefiner.h:11:
In file included from ../../nbind/include/nbind/api.h:72:
../../nbind/include/nbind/v8/BindingType.h:193:1: error: too few arguments to function call, single argument 'context' was not
      specified

In file included from ../src/nbind.cc:1:
In file included from ../src/./node-abletonlink.hpp:13:
In file included from ../../nbind/include/nbind/nbind.h:8:
In file included from ../../nbind/include/nbind/noconflict.h:8:
In file included from ../../nbind/include/nbind/BindDefiner.h:11:
In file included from ../../nbind/include/nbind/api.h:71:
../../nbind/include/nbind/v8/BindWrapper.h:217:38: error: expected '(' for function-style cast or type construction
                void *ptr = v8::Handle<v8::External>::Cast(nanArgs[0])->Value();
                                       ~~~~~~~~~~~~^
../../nbind/include/nbind/v8/BindWrapper.h:217:19: error: no member named 'Handle' in namespace 'v8'
                void *ptr = v8::Handle<v8::External>::Cast(nanArgs[0])->Value();
                            ~~~~^
../../nbind/include/nbind/v8/BindWrapper.h:217:41: error: no member named 'Cast' in the global namespace
                void *ptr = v8::Handle<v8::External>::Cast(nanArgs[0])->Value();
                                                    ~~^
../../nbind/include/nbind/v8/BindWrapper.h:217:19: error: 'handle_' is a private member of 'node::ObjectWrap'
                void *ptr = v8::Handle<v8::External>::Cast(nanArgs[0])->Value();

and many others. Have I overlooked some dependency, or is this something else? I'm building on macOS Catalina 10.15.4

This projects uses nbind that supports only Node 6 or older, so with newer version it doesn't work. Are you using a more recent version?
If this will help you, I'm developing an Ableton Link in node integration using native-addon-api that are supported directly from Node.

@saebekassebil
Copy link
Author

Ah yes, hadn't seen that. I'm running node v13. Your project definitely sounds like something that would help me! Where can I find it?

Cheers!

@Onni97
Copy link

Onni97 commented Apr 21, 2020

I'm finishing it. I think tomorrow I'll upload ;)

@saebekassebil
Copy link
Author

Looking forward to it. Thank you to you both for your work.

@2bbb
Copy link
Owner

2bbb commented Apr 22, 2020

@saebekassebil @Onni97

thanks for pointing out and recommend node-addon-api.
I try to replace nbind with node-addon-api in dev/node-addon-api branch.

if you interested in, please check it.

@Onni97
Copy link

Onni97 commented Apr 22, 2020

@2bbb

I'm gonna implement it by myself because it's linked with an University project. I'm finishing this today and I'll upload it if you're interested 😃

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