|
From: Michael L. <mil...@gm...> - 2011-05-01 22:46:25
|
Thanks. I am actually aware of the problem. I'm not very good with
configure scripts, but I'll try and fix it. Normally, I just build it
using:
PKG_CONFIG=`which pkg-config` ./autogen.sh
that usually works.
--Mike Lewis
"Be who you are and say what you feel, because those who mind don't
matter and those who matter don't mind." --Dr. Seuss
On Sat, Apr 30, 2011 at 10:33 PM, Xiaofan Chen <xia...@gm...> wrote:
> Both the release version and the subversion version has the following
> build issue. Actually all the detection of library does not work.
> I tested both Ubuntu 11.04 and Arch Linux.
>
> ***********
> configure: error: in `/home/mcuee/Desktop/build/openusb/openusb/openusb':
> configure: error: The pkg-config script could not be found or is too
> old. Make sure it
> is in your PATH or set the PKG_CONFIG environment variable to the full
> path to pkg-config.
>
> Alternatively, you may set the environment variables LIBUSB_CFLAGS
> and LIBUSB_LIBS to avoid the need to call pkg-config.
> See the pkg-config man page for more details.
>
> To get pkg-config, see <http://pkg-config.freedesktop.org/>.
> See `config.log' for more details
> *************
>
> So I follow the instuction and flags for libusb.
> LIBUSB_CFLAGS="-I/usr/include" LIBUSB_LIBS="-L/usr/lib -lusb" ./configure
> Then it will complain about udev.
>
> **************
> checking for UDEV... no
> configure: error: in `/home/mcuee/Desktop/build/openusb/openusb/openusb':
> configure: error: The pkg-config script could not be found or is too
> old. Make sure it
> is in your PATH or set the PKG_CONFIG environment variable to the full
> path to pkg-config.
>
> Alternatively, you may set the environment variables UDEV_CFLAGS
> and UDEV_LIBS to avoid the need to call pkg-config.
> See the pkg-config man page for more details.
>
> To get pkg-config, see <http://pkg-config.freedesktop.org/>.
> See `config.log' for more details
> ******************
>
> So finally I have the following and it seems to work. But I think
> the configure scripts should be changed.
>
> LIBUSB_CFLAGS="-I/usr/include" LIBUSB_LIBS="-L/usr/lib -lusb"
> UDEV_CFLAGS="-I/usr/include" UDEV_LIBS="-L/usr/lib -ludev" ./configure
>
>
> --
> Xiaofan
>
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network
> management toolset available today. Delivers lowest initial
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> _______________________________________________
> Libusb-devel mailing list
> Lib...@li...
> https://lists.sourceforge.net/lists/listinfo/libusb-devel
>
|