Using PTP on Linux - General Discussion and Assistance - CHDK Forum  

Using PTP on Linux

  • 6 Replies
  • 4546 Views
Using PTP on Linux
« on: 23 / June / 2012, 10:49:37 »
Advertisements
Hi, I'm using Debian Squeeze on my Raspberry Pi, and would like to get PTP working with my SX10. I've used chdkptp on my Windows machine before with no problems, but having compiled ptpcam on Linux I can't find out how to get it to recognise the camera.

On Windows there was a wizard to create a ".inf" file so that libusb would work with the camera. I'm fine with using terminal commands instead on Linux - I just don't know which to run to get this working!

Re: Using PTP on Linux
« Reply #1 on: 23 / June / 2012, 10:57:47 »
I have chdkptp working on my raspberry pi.

I created a build environment on the pi itself,  used svn to download the chdkptp code and other needed folders and compiled it on the pi.

I was able to build on both the Arch linux and Debian versions.  However, I was not able to get the Arch linux version for the pi to work (segfault when calling USB library routines) . The Debian version does.

Note that I have not tried to get the GUI version or liveview working yet.   CLI only at this point.

Not sure where you are stuck ?


Ported :   A1200    SD940   G10    Powershot N    G16

Re: Using PTP on Linux
« Reply #2 on: 23 / June / 2012, 11:03:09 »
Hi waterwingz. I compiled ptpcam using make after downloading it from the chdkde assembla page, and I've now got an executable called ptpcam. However, when I run

Code: [Select]
ptpcam --chdk
in the terminal, I get

Code: [Select]
ERROR: Could not open session!
I mentioned that on Windows I had to run the libusb wizard first because I'm not sure if I have to do something similar on Linux to get this working.

Re: Using PTP on Linux
« Reply #3 on: 23 / June / 2012, 11:23:51 »
I compiled ptpcam using make after downloading it from the chdkde assembla page, and I've now got an executable called ptpcam.
I've never used ptpcam so I really can't help much there

Quote
However, when I run
Code: [Select]
ptpcam --chdk in the terminal, I get
Code: [Select]
ERROR: Could not open session!I mentioned that on Windows I had to run the libusb wizard first because I'm not sure if I have to do something similar on Linux to get this working.
So are you trying to get this running on your raspberry pi or your main computer ?
Ported :   A1200    SD940   G10    Powershot N    G16


Re: Using PTP on Linux
« Reply #4 on: 23 / June / 2012, 11:34:52 »
I've never used ptpcam so I really can't help much there

I started off trying to compile chdkptp but I couldn't find a "makefile" and was getting errors running the shell scripts it came with. This may be because I didn't download it using svn and I'm a bit of a newbie at compiling on Linux. Please could you recommend a good svn client and I'll try chdkptp again?

So are you trying to get this running on your raspberry pi or your main computer ?

This is on the Raspberry Pi that I ran these commands.

Re: Using PTP on Linux
« Reply #5 on: 23 / June / 2012, 11:49:32 »
I started off trying to compile chdkptp but I couldn't find a "makefile" and was getting errors running the shell scripts it came with. This may be because I didn't download it using svn and I'm a bit of a newbie at compiling on Linux.
Assuming you are using the Debian version of linux on your pi,  then I think you need to do a :

apt-get install subversion

That gets you svn commands.

To get chdkptp you then enter

snv co  http://subversion.assembla.com/svn/chdkptp/
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Using PTP on Linux
« Reply #6 on: 23 / June / 2012, 12:47:22 »
Thanks for all your help and sorry for asking some "newbie" style questions!

I don't know what I was doing with ptpcam at first because when I ran it again it connected to the camera, but the camera wouldn't respond to any commands. I then tried running the "trunk" build instead of the "reyalp-ptp-live" build I was running, and it worked! (I think this might be because version 2.3 of PTP is too new for ptpcam, whereas 2.1 was fine, but I'm not sure).

Anyway, I've just installed SVN and downloaded the chdkptp source code, so I'll compile that later and hopefully get it up and running.

Thanks again :)

 

Related Topics