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

issue with ffi (node-ffi) #2734

Closed
namkms opened this issue Dec 3, 2014 · 3 comments
Closed

issue with ffi (node-ffi) #2734

namkms opened this issue Dec 3, 2014 · 3 comments
Labels

Comments

@namkms
Copy link

namkms commented Dec 3, 2014

I got an issue when using ffi (node-ffi) to call C++ library with info below.

  • node-webkit v0.8.6 (downgraded)
  • ffi v1.2.7 (compiled with nw-gyp rebuild --target=0.8.6 --arch=ia32)

node-webkit app crashed when I try to call C++ library. I call C++ library successfully with nodejs (v.10.33) context.

I also tried to compile ref module (node_modules/ffi/node_modules/ref) with nw-gyp rebuild --target=0.8.6 --arch=ia32 , node-webkit doesn't crash but throw an error at line of code "var ffi = require('ffi')" like below.

(anonymous function)
(anonymous function)
l.$apply
(anonymous function)
x.event.dispatch
g.handle

Any idea?

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@namkms
Copy link
Author

namkms commented Dec 3, 2014

changed file name to nw.exe. it works.

https://github.com/rogerwang/node-webkit/wiki/Build-native-modules-with-nw-gyp#known-issues-and-limitations

is there a way without changing file name?

@Wortex17
Copy link

As you might have seen through your own link, this is a duplicate of #199
Look at the bottom there, as that seems to be your only solution (rebuilding node-webkit yourself with a different target name)

@stale
Copy link

stale bot commented Sep 30, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Sep 30, 2017
@stale stale bot closed this as completed Oct 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants