Closed javsmo closed 8 years ago
Last working version of node is 0.10.x
— nvm install 0.10
Thanks for this information. I wasn't aware of this version limitation. In the Raspberry Pi, I don't know why, but the installed version is 0.10.29. That's why it worked there.
Now I was able to install on my mac, but the example from the readme gives a malloc error right after printing the camera model console.log('Found', camera.model);
:
Found Canon EOS 1200D node(35426,0x7000003b9000) malloc: * error for object 0x10070b5c0: pointer being freed was not allocated * set a breakpoint in malloc_error_break to debug
I don't see this problem on the Raspberry Pi.
After removing all other node and npm versions, and reinstalling the 0.10 directly from homebrew, I was able to make the example work.
Here's what finally worked.
npm uninstall gphoto2
brew uninstall node
brew tap homebrew/versions
brew search node
brew install homebrew/versions/node010
npm install gphoto2
I just installed node-gphoto2 on a Raspberry Pi without any problem and it works fine. I'd like to install it on my Mac (OS X 10.11.5) to develop something locally before putting on the Raspberry Pi, but I'm facing a lot of problems.
I installed everything using Homebrew and I think I have all dependencies installed.
At first the install was failing to find the libgphoto2 and I used a workaround from another issue posted here to solve this issue using he line below:
After this step, it was able to find the libgphoto2, but it gives me a lot of compilation errors and stop.
Here are the errors it gives me now.
Is there anything I could do to fix the install on my Mac? I wouldn't like to develop using a VM or the Raspberry Pi.