qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RFC] allow special paths for libusbx


From: Erik Rull
Subject: Re: [Qemu-devel] [RFC] allow special paths for libusbx
Date: Wed, 27 Nov 2013 14:19:08 +0100 (CET)

> On November 27, 2013 at 11:38 AM Paolo Bonzini <address@hidden> wrote:
>
>
> Il 27/11/2013 11:24, Erik Rull ha scritto:
> > no I have no libusbx installed. I just downloaded the tar.bz2, unpacked it,
> > configure'd it and called make.
>
> I think your patch wouldn't be enough to actually run QEMU, because the
> path to libusbx.so is not in LD_LIBRARY_PATH (and if you can change
> LD_LIBRARY_PATH, you can also change PKG_CONFIG_PATH).
>
> The right way to do it is:
>
> * add --prefix=$HOME to your configure command line.
>
> * call "make install" after "make"
>
> * add $HOME/lib to your LD_LIBRARY_PATH
>
> * add the right subdirectory of $HOME/lib to your PKG_CONFIG_PATH
>
> * test that it works with "pkg-config --cflags libusb-1.0"
>
> * configure QEMU with no extra options
>
> Paolo

Even easier - a temporary change of the PKG_CONFIG_PATH is sufficient, configure
does everything that is needed later on:

address@hidden:~/qemu-test/qemu$ env
PKG_CONFIG_PATH=/home/erik/libusbx/.install/lib/pkgconfig:$PKG_CONFIG_PATH
./configure [...]

where the .install directory was created by a manual call of make install from
libusbx.

Works fine for me.

Best regards,

Erik



reply via email to

[Prev in Thread] Current Thread [Next in Thread]