Re: Getting a hook from shell mode to do motion detection?

Marcus Meissner <[email protected]>
Newsgroups gmane.comp.multimedia.gphoto.user
Organization SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 212 84 (AG Nürnberg)
Message-ID <[email protected]>
On Mon, Jan 01, 2018 at 11:20:46AM -0500, Alan Corey wrote:
> I guess capture.c isn't exactly self-contained:
> preview.c:(.text+0x4c): undefined reference to `sample_create_context'
> preview.c:(.text+0xbc): undefined reference to `canon_enable_capture'
> preview.c:(.text+0xd0): undefined reference to `camera_eosviewfinder'
> preview.c:(.text+0x1b0): undefined reference to `camera_auto_focus'
> preview.c:(.text+0x1c4): undefined reference to `camera_auto_focus'
> preview.c:(.text+0x204): undefined reference to `camera_manual_focus'
> preview.c:(.text+0x2e4): undefined reference to `camera_eosviewfinder'
> 
> So I guess I'll have to write some placeholders at least to use it.
> The Lunkwill stuff is still online from 8 years ago but I don't see
> them there.  Or I probably should take out the missing stuff and only
> put in what I need.  I went to preview.c first because I want to see
> how feasible capturing previews and handing them off to my motion
> detection is going to be.

you also need to build and link with:

sample-photobooth.c context.c config.c
 
> It seems wasteful to go through compressing each one to a JPEG and
> uncompressing it again but I suppose the camera's firmware dictates
> that.

Likely, yes.

Ciao, Marcus

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.