On 13 June 2010 00:27, james <[email protected]> wrote:
>
> I can't find any info on this, so it's prodly so obvious that only dumbkorfs
> ask :-)
>
> I have a program using a web cam. All is perfect except that I need to
>
> export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so
>
> before running it.
>
> How can I compile the links into the code, rather than a PRELOAD env setting?

What does "ldd your-executable" show?
What do you pass to the linker to make it know about v4l1compat.so
when you link the program?

You can add /usr/lib/libv4l to the run time library search path by
passing -rpath to ld.

>
> skype did just that with their 2.1 beta.
> ie 2.0 needs the PRELOAD and 2.1 does not to use video.
>
> Thanks
> James
> --
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to