-
Notifications
You must be signed in to change notification settings - Fork 90
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
Porting to NAN #67
Comments
Is |
No, it's not - I didn't even test it yet 😊 On Wed, Apr 15, 2015 at 11:29 PM, dubcanada notifications@github.com
|
I am in need of this for a project I am working on. I am debating helping you with the NAN stuff or using node-ffi. Was there any reason you choose to create C node bindings, rather then using FFI? |
As libgphoto2 requires some sort of threading, FFI wasn't an option when I started development. Also, I didn't find a way to easily handle structs (now possible with I just read that node-ffi meanwhile supports async calls and will definitely reconsider it, Have you already done some async work with FFI? Before making such a choice, it would be great to have some proof of concept (open camera, take picture) using FFI. There's a similar project done in Ruby (https://github.com/zaeleus/ffi-gphoto2). You're very welcome to contribute! |
I'm going to spend a while over the next two days trying to get a proof of concept working with FFI. I only need open camera, and take photo, and then download photo working for my project so I'll show you that when I get done/working/not working lol |
Didn't have a lot of luck with the whole node-ffi. A ton of really weird complicated pointers and things in libgpphoto2. I'll start playing around with your nan version and try to get that to work. I think that's probably a better solution anyways. |
Thanks for trying it :) (Just added that to the task list, so we won't forget) |
Hi lwille Do you have any news on this subject ? I really like your lib but working with node 0.10 is really annoying. |
It largely works with node 0.10+ already with the nan version just a few On Fri, 3 Jul 2015 6:18 am Nataku notifications@github.com wrote:
|
Hi there, First of all, many thanks for this work. What you've made is so cool! Just wondering what's the status about Node 0.10+ support? Any idea when it will be available? Many thanks, |
I just saw this thread now -- I've been working porting my fork to nan the last couple weeks (didn't get very far yet). Where is this at now? I'd love to help out if I can. Thanks! |
Any news on this? Right now I am trying to use the gphoto2 cli with child_process. It works well, but I guess a proper node module could be more fool-proof. |
Alright, here it is. I'll give it a try to make it compile again first. |
Sorry about the all-in-one PR. The main changes are:
It passes the tests - apart from a livepreview test that my camera doesn't support. I haven't tried tested it with anything from the examples dir. |
@mitnuh: this looks great -- thanks so much! This module has been holding back the node version in my project and I hadn't found the time to tackle this yet, so thank you very much for your work here! |
Just wanted to echo the enthusiasm around @mitnuh's contribution. Can't wait to see the PR merged... |
merged #92 into I'd like to ask for some help with testing (still no camera
Please run the tests and use the files from the git clone git@github.com:lwille/node-gphoto2.git && cd node-gphoto2
git checkout feature/nan
npm install
npm link
# cd to your project directory
npm link gphoto2 |
It's working fine on OSX (node v7.7.1) with livepreview on my project :) (but the example seems to be broken) |
Thanks for testing it Ivan :) the latest pull request seems to get the example working again. |
@mitnuh thanks for merging, please make sure to reference this issue (#67) in your future merges ;-) I'll try to get hold of a camera to test on Linux so we can finally release. |
I have a canon 500d that I am going to test this against in ubuntu 14.04 this weekend, I will let you ifi ti works. |
It's working perfectly on Ubuntu for me (tested with 2 Canon). |
Seems like it's GTG, yay! Big thanks to @mitnuh for making this happen, and of course to @lwille for keeping an eye and stewardship of this branch. |
@lwille ping |
Any news? |
@lwille need any help with the next releases? I could help you with maintenance if you like. |
@lwille 🏓 There are people waiting for this update for almost 3 yrs now... |
@Sija please go ahead! I currently don't have the resources to actively work on this project. |
The module needs porting to NAN in order to assure compability with previous and future versions of Node and V8.
Development is done in feature/nan.
related issues: #65
Tasks so far:
The text was updated successfully, but these errors were encountered: