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

square_events example does not seem to work with version 0.4.5 #68

Open
stephan-nordnes-eriksen opened this issue Dec 13, 2018 · 0 comments

Comments

@stephan-nordnes-eriksen

First; thanks a lot for this amazing library!

I was trying to use the setEventCallback method in my own project, and it wasn't returning a callback, so I tested the square_events-example, but with var cl = require("node-opencl") in stead of var cl = require("../lib/opencl").

That was giving me a Segmentation fault: 11 when using the npm-installed version of node-opencl (version 0.4.5).

So I tried to clone the repo, do a npm install, and run the same code without modifying it. That worked.

So I tried in my original location to do a var cl = require("/Absolute/path/to/my/local/clone/of/node-opencl/lib/opencl"). That, again, worked.

So I believe that there is something happening when installing this library from npm that is different from cloning it from the repo, and building.

I tried linking directly to the repo in my package.json, in hopes that this would help;

//...
"dependencies":{
"node-opencl":"mikeseven/node-opencl#master",
//...

This, also, did not work correctly. I was not able to figure out what is going on. Perhaps someone know what is going on?


OS: MacOS Majove 10.14.1
Machine: Macbook "pro" 15 with intel HD graphics 530

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

1 participant