SLUG Mailing List Archives
[SLUG] Re: LD_PRELOAD
- To: slug@xxxxxxxxxxx
- Subject: [SLUG] Re: LD_PRELOAD
- From: james <jam@xxxxxxxxx>
- Date: Sun, 13 Jun 2010 10:48:25 +0800
- User-agent: KMail/1.12.4 (Linux/188.8.131.52-0.1-desktop; KDE/4.3.5; x86_64; ; )
On Sunday 13 June 2010 10:00:04 slug-request@xxxxxxxxxxx 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?
> You can't.
> Instead, create a wrapper script containing:
> export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so
> exec your-webcam-program
I do have a wrapper, that does work, so thanks
What I was trying to learn is how skype did do exactly that.
2.0 had to be wrapped, but 2.1 (beta) uses the cam without preload.
I accept 'You can't' I certainly cant despite trying lots :-)