[Haskell-cafe] video for linux two (v4l2) bindings

MaurĂ­cio Antunes mauricio.antunes at gmail.com
Sat Jul 9 06:12:46 CEST 2011


Hi, all,

I've added that 'extra-libraries' to .cabal, and also modules for fcntl.h
and sys/mman.h (mmap). Would you please test it and check if it solves
the problem before I upload it to hackage?

  https://bitbucket.org/mauricio/bindings-dsl/downloads/bindings-posix-1.2.3.tar.gz

Just download from that link, unpack and do 'cabal install' inside the
new directory.

Best,
MaurĂ­cio


2011/7/8, Claude Heiland-Allen <claude at goto10.org>:
> Hi,
>
> On 05/07/11 10:19, Christopher Done wrote:
> [snip]
>> /usr/bin/ld:
>> /home/chris/.cabal/lib/bindings-posix-1.2.2/ghc-6.12.3/libHSbindings-posix-1.2.2.a(Signal.o):(.text+0x5dfb):
>> error: undefined reference to 'pthread_kill'
> [snip]
>> I guess on Claude's system it's linked to by default.  So for guys
>> trying the examples with that error I'd recommend the following
>> commandline:
>>
>>    cabal install v4l2-examples --ghc-option=-lpthread
>
> I think this could be a bug in bindings-posix (maintainer CC'd), I guess
> it could do with this in its .cabal file:
>
>      Extra-libraries: pthread
>
>> Can't really play about with the webcam right now but I'd had a small
>> but cool project I've had in mind for a while that v4l is perfectly
>> suited for, so I'll get back to you with my experiences. Thanks for
>> releasing it, Claude. :-)
>
> Cool, look forward to seeing it!  Hopefully I'll soon find time to
> upload to Hackage a preliminary (feature-incomplete) release of the
> higher-level interface that I'm working on; until then:
> https://gitorious.org/hsv4l2/v4l2
>
>
> Claude
> --
> http://claudiusmaximus.goto10.org
>



More information about the Haskell-Cafe mailing list