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

Alan Corey <[email protected]>
Newsgroups gmane.comp.multimedia.gphoto.user
Message-ID <CAOh3dDbz6PWALhgYiDg2QhjpQ5ae5ZtTitqKyQxmROZd9pXjXg@mail.gmail.com>
Yes, I just got  sample-trigger-capture.c and context.c to build by
adding a couple missing headers (unistd.h and sys/types.h for lseek).

I get it, these are just snippets, but what I was hoping to do was
work from a working program.  Maybe I can do that now.

On 1/1/18, Marcus Meissner <[email protected]> wrote:
> 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
>


-- 
-------------
No, I won't  call it "climate change", do you have a "reality problem"? - AB1JX
Impeach  Impeach  Impeach  Impeach  Impeach  Impeach  Impeach  Impeach

------------------------------------------------------------------------------
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.