chdkptp - alternative ptp client - page 100 - General Discussion and Assistance - CHDK Forum
supplierdeeply

chdkptp - alternative ptp client

  • 1106 Replies
  • 513852 Views
*

Offline reyalp

  • ******
  • 14080
Re: chdkptp - alternative ptp client
« Reply #990 on: 27 / November / 2017, 03:28:35 »
Advertisements
Build 785 is uploaded to the files area https://app.assembla.com/spaces/chdkptp/documents

Main changes

* The linux binaries are built with symbols exported. This means you can Lua modules in .so files from chdkptp
* The lua-signal module is included with linux builds. This is not currently used by default, it's mostly there to support @manoweb's multilapse script. There are some quirks limitations with this module, the main one being it does not work correctly if chdkptp is waiting for input with readline.
* The shoot command now allows you to specify file download names, similar to the imdl command using shoot -dl=<substitution pattern>
* remoteshoot and rsint now treat the filename as a substitution string if it contains a $ (if you really want a $ in your filename, you can use -nosubst)
* shoot, rs and rsint can number files sequentially for each shot taken using the ${shotseq} substitution. So if you use rs ${shotseq}${ext} repeatedly, you'll get 0001.jpg, 0002.jpg etc. You can set the starting number with -seq=n.
* The imdl command and multicam download_images commands can also use ${shotseq}, so you can download your images as a continuous numbered sequence independent of what the camera used.
* Multicam now has preliminary support for hardware remote triggering, using usb_pwr_sync=true in mc:shoot()
Don't forget what the H stands for.

*

Offline Sdack

  • ***
  • 195
Re: chdkptp - alternative ptp client
« Reply #991 on: 27 / November / 2017, 18:31:50 »
Awesome,
Thanks heaps Reyalp.
I'm finally testing my whole rig today to see how long the batteries will run.
Cheers
Sdack

*

Offline reyalp

  • ******
  • 14080
Re: chdkptp - alternative ptp client
« Reply #992 on: 20 / December / 2017, 02:41:28 »
Build 795 is uploaded to the files area https://app.assembla.com/spaces/chdkptp/documents

The main change is fix to be bug in the linux shell script wrappers reported by Sdack

There are some other minor changes, covered in the changelog https://app.assembla.com/spaces/chdkptp/wiki/Changelog
Don't forget what the H stands for.

Re: chdkptp - alternative ptp client
« Reply #993 on: 28 / December / 2017, 15:06:05 »
I am having trouble getting chdkptp to run in Ubuntu. I have it running on one of my Ubuntu 12.04 machines. But I can't seem to get it to run on any of my other Ubuntu machines. I have several and depending on the hardware they have various builds of Ubuntu running. Some 12.04 32bit some 16.04 32 and 64 bit. I was trying to stay uniform with r735 but I have downloaded r795 and I get the same results. When I click on things, including sh files, it just spins. I tried in Terminal too, no luck. In terminal it tells me the file I asked to run doesn't exist, yet an ls shows that it is there. I have checked permissions of the files. Any ideas what I am doing wrong? thanks
John


*

Offline reyalp

  • ******
  • 14080
Re: chdkptp - alternative ptp client
« Reply #994 on: 28 / December / 2017, 16:07:07 »
I was trying to stay uniform with r735 but I have downloaded r795 and I get the same results.
If you can give the specific output from starting it in a terminal, that would be helpful.

In any case, you must run either chdkptp.sh (for terminal only CLI interface) or chdkptp_gui.sh (for the GUI). Running the binary (chdkptp or chdkptp_gui) will not work.

Older versions had a bug in the .sh file, which could cause it to fail with a "not found" type error in some case.

r795 works for me on 64 bit Ubuntu 16.04 starting the .sh file from a terminal window.

Double clicking in the file manager just opens it in gvim. Going to edit->preferences->Behavior and setting "Executable Text Files" to "ask each time" allows me to run it by double clicking.
Don't forget what the H stands for.

Re: chdkptp - alternative ptp client
« Reply #995 on: 28 / December / 2017, 17:20:47 »
If you can give the specific output from starting it in a terminal, that would be helpful.


john@Betsy03-AsusK52F:~$ cd chdkptp
john@Betsy03-AsusK52F:~/chdkptp$ ls
chdkptp-r795  Scripts
john@Betsy03-AsusK52F:~/chdkptp$ cd chdkptp-r795
john@Betsy03-AsusK52F:~/chdkptp/chdkptp-r795$ ls
chdkptp         COPYING                    README-OSX.TXT         THANKS.TXT
chdkptp_gui     lib                        README-RASPI-LIBS.TXT  USAGE.TXT
chdkptp_gui.sh  lua                        README.TXT
chdkptp.sh      README-LINUX-BINARIES.TXT  signal.so
john@Betsy03-AsusK52F:~/chdkptp/chdkptp-r795$ sudo ./chdkptp_gui.sh
[sudo] password for john:
/home/john/chdkptp/chdkptp-r795/chdkptp_gui: error while loading shared libraries: libusb-0.1.so.4: cannot open shared object file: No such file or directory
john@Betsy03-AsusK52F:~/chdkptp/chdkptp-r795$

Re: chdkptp - alternative ptp client
« Reply #996 on: 28 / December / 2017, 17:30:21 »
I googled libusb-0.1.so.4 and found where it lives and it is in my system
this is where I found it: /lib/x86_64-linux-gnu/
Not sure if I am barking up the right tree.

*

Offline reyalp

  • ******
  • 14080
Re: chdkptp - alternative ptp client
« Reply #997 on: 28 / December / 2017, 19:33:01 »
john@Betsy03-AsusK52F:~/chdkptp/chdkptp-r795$ sudo ./chdkptp_gui.sh
FWIW, you should not need to run chdkptp as root, just starting as a regular user should be fine. However, running it with sudo also worked for me.

The libusb-0.1 .so is provided by the libusb-0.1 package. On my system, the .so is found correctly and is at /lib/x86_64-linux-gnu. Make sure this package is installed, if it's not you might just be seeing an old symlink or something.

can you post the output of
Code: [Select]
ldd chdkptp
and
Code: [Select]
ls -l /lib/x86_64-linux-gnu/libusb*
Don't forget what the H stands for.


Re: chdkptp - alternative ptp client
« Reply #998 on: 28 / December / 2017, 21:06:21 »
john@Betsy03-AsusK52F:~/chdkptp/chdkptp-r795$ ldd chdkptp
   linux-gate.so.1 =>  (0xf7788000)
   libusb-0.1.so.4 => /lib/i386-linux-gnu/libusb-0.1.so.4 (0xf7762000)
   libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf770d000)
   libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf7707000)
   libreadline.so.6 => not found
   libhistory.so.6 => not found
   libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf7551000)
   /lib/ld-linux.so.2 (0x565dc000)

john@Betsy03-AsusK52F:~/chdkptp/chdkptp-r795$ ls -l /lib/x86_64-linux-gnu/libusb*
lrwxrwxrwx 1 root root    19 Dec 23 11:58 /lib/x86_64-linux-gnu/libusb-0.1.so.4 -> libusb-0.1.so.4.4.4
-rw-r--r-- 1 root root 30944 Jan  8  2016 /lib/x86_64-linux-gnu/libusb-0.1.so.4.4.4
lrwxrwxrwx 1 root root    19 Dec 23 11:58 /lib/x86_64-linux-gnu/libusb-1.0.so.0 -> libusb-1.0.so.0.1.0
-rw-r--r-- 1 root root 97056 Oct 23  2015 /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0

As far as sudo goes. I am a bit new to Ubuntu so if something doesn't work it gets sudo at the front. Most of the time it helps. :D

Re: chdkptp - alternative ptp client
« Reply #999 on: 28 / December / 2017, 22:16:30 »
I noticed that when I plug the camera in the OS does not see it. All my other Ubuntu machines do. I don't think this has anything to do with chdkptp. I will reload the OS tomorrow and try again. I will let you know what happens. Thanks for trying. I really appreciate it.
John

 

Related Topics