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

chdkptp - alternative ptp client

  • 1107 Replies
  • 598079 Views
Re: alternative ptp client
« Reply #110 on: 11 / March / 2012, 15:54:41 »
Advertisements
Trying to build this myself, now have Ubuntu 10.04 and everything compiles and runs, but the live view doesn't work. I've enabled all the libs, installed, linked and checked the paths. When connecting however, I get the following stack trace:
Quote
/home/joel/chdkptp/trunk/lua/chdku.lua:950: attempt to call method 'get_handler' (a nil value)
stack traceback:
   /home/joel/chdkptp/trunk/lua/chdku.lua:950: in function 'live_init_streaming'
   /home/joel/chdkptp/trunk/lua/gui_live.lua:577: in function 'on_connect_change'
   /home/joel/chdkptp/trunk/lua/gui.lua:111: in function 'update_connection_status'
   /home/joel/chdkptp/trunk/lua/gui.lua:128: in function </home/joel/chdkptp/trunk/lua/gui.lua:114>
   (tail call): ?
   [C]: in function 'MainLoop'
   /home/joel/chdkptp/trunk/lua/gui.lua:492: in function </home/joel/chdkptp/trunk/lua/gui.lua:478>
   (tail call): ?
   /home/joel/chdkptp/trunk/lua/main.lua:172: in main chunk
   [C]: in function 'require'
   [string "require('main')"]:1: in main chunk
Where do I look? All functions except for live view work however.
« Last Edit: 11 / March / 2012, 16:05:00 by webguy »

*

Offline reyalp

  • ******
  • 14138
Re: alternative ptp client
« Reply #111 on: 11 / March / 2012, 16:21:14 »
Trying to build this myself, now have Ubuntu 10.04 and everything compiles and runs, but the live view doesn't work. I've enabled all the libs, installed, linked and checked the paths. When connecting however, I get the following stack trace:
...
Where do I look? All functions except for live view work however.
You need to set LIVEVIEW_SUPPORT=1 in config.mk

The fact that this resulted in a runtime error is a bug, which I've worked around in r226
Don't forget what the H stands for.

Re: alternative ptp client
« Reply #112 on: 11 / March / 2012, 17:25:04 »
Ok, thanks, that was the trick, now have it working under Linux (after also copying live_view.h from your CHDK branch)

Re: alternative ptp client
« Reply #113 on: 12 / March / 2012, 19:07:14 »
Ok, thanks, that was the trick, now have it working under Linux (after also copying live_view.h from your CHDK branch)
So do you just need to copy that file to the main trunk build ?  Or do you need to use the reyalp-ptp-live branch built for your cam/fw to use live_view ?
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 14138
Re: alternative ptp client
« Reply #114 on: 12 / March / 2012, 23:22:41 »
Ok, thanks, that was the trick, now have it working under Linux (after also copying live_view.h from your CHDK branch)
So do you just need to copy that file to the main trunk build ?  Or do you need to use the reyalp-ptp-live branch built for your cam/fw to use live_view ?
You need to use the reyalp-ptp-live branch, and the live_view.h included in chdkptp must come from that branch.
Don't forget what the H stands for.

Re: alternative ptp client
« Reply #115 on: 12 / March / 2012, 23:25:14 »
You need to use the reyalp-ptp-live branch, and the live_view.h included in chdkptp must come from that branch.
Thanks - wondered about that after reading the previous post.    Any plans to add to the dev trunk ?
Ported :   A1200    SD940   G10    Powershot N    G16

Re: alternative ptp client
« Reply #116 on: 13 / March / 2012, 22:41:50 »
Note that the palettes types are likely wrong, but I can fix this if owners of the cameras send live view "quick dumps" and pictures of the camera display.
@reyalp : Got live-view working tonight under Fedora 16.  Very nice! 

A few rough patches to be expected I guess.  The CHDK menus seem to overlay each other.  If the previous menu is bigger than the new menu,  you can still see it in the background.  Pretty much what happens during the early stage of a port when vid_bitmap_refresh() is not working.

Here's the two image files for the G10 :  http://www.box.com/s/6100778e4164ad695df7

If you can find a few minutes to "fix" the colors,  I can use this to update the new USB remote wiki pages - the current images are pretty lame.

Thanks again.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 14138
Re: alternative ptp client
« Reply #117 on: 13 / March / 2012, 23:46:08 »
Any plans to add to the dev trunk ?
Yes, holding off on that until after I've got the protocol changes sorted out.

Quote
I can use this to update the new USB remote wiki pages - the current images are pretty lame.
At some point I plan to link in libjpeg or IM so you can save camera screenshots directly to an image file. Not today though...
Don't forget what the H stands for.

Re: alternative ptp client
« Reply #118 on: 14 / March / 2012, 00:05:03 »
At some point I plan to link in libjpeg or IM so you can save camera screenshots directly to an image file. Not today though...
Nice feature.  Screen capture from what we have now is  a huge step above taking pictures of the cam LCD with my cellphone but that would be even nicer.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 14138
Re: alternative ptp client
« Reply #119 on: 18 / March / 2012, 16:15:47 »
New snapshot build r230. Not much end-user visible stuff.  Changed the linux build to not use a really old hack related to the USB API, which should make it work on newer distros. Thanks to waterwingz for helping to sort this out. Users over very old distros (2005 ?) might want to look at http://trac.assembla.com/chdkptp/changeset/222 if they trouble.
Don't forget what the H stands for.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal