[vlc-devel] V4L2 & ALSA
Rafaël Carré
funman at videolan.org
Wed Aug 29 20:40:52 CEST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Richard Hosking a écrit :
> Ok, I knew I would answer my own question just after
> posting :-)
>
> I have added:-
>
> VLC_ADD_LDFLAGS([v4l2],[-lasound -lm -ldl])
>
> near the end of the v4l2 section in the configure.ac
> file and all seems to be well.
>
> I'm not sure if this should have some additional
> checking around it (ie if ALSA support is present).
>
you can look at --enable-alsa section of configure.ac, if v4l2 test is
located after alsa test, you can just use:
if test "${have_alsa}" = "true"
if not, move it ;)
> Richard.
>
> Richard Hosking wrote:
>> I am currently in the process of finishing the V4L2
>> (Video 4 Linux 2) driver in VLC on Linux.
>>
>> I am doing this as I have a capture card which only
>> supports the newer V4L2 spec... hence me completing
>> the work. The video capture side of things is complete.
>>
>> For audio, as well as legacy OSS support I need to
>> implement ALSA input capture support. I see VLC uses
>> ALSA code elsewhere (ie for audio output).
>>
>> My test ALSA code in the v4l2.c file builds correctly, but
>> VLC moans at startup....
>>
>> cannot load module `modules/access/.libs/libv4l2_plugin.so'
>> (modules/access/.libs/libv4l2_plugin.so: undefined symbol:
>> snd_pcm_close)
>>
>> what do I need to do to my build so the library knows
>> about the ALSA stuff? My knowledge of the make system in
>> VLC is non existent!
>>
>> Cheers,
>> Richard (hovis)
>> _______________________________________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> http://mailman.videolan.org/listinfo/vlc-devel
>>
>>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>
- --
Rafaël Carré
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFG1b20YWCeGMCv8Q8RAtKwAKDMFrZtXfLP3X1kF4M+Wiu8oR4VGwCcDN54
3SsMIuTNZRUzdmC0a2XAW6Y=
=U/o1
-----END PGP SIGNATURE-----
More information about the vlc-devel
mailing list