[Buildroot] Problem building usbutils

hartleys hartleys at visionengravers.com
Wed Jun 18 22:20:42 UTC 2008

> > 1) usbutils requires libusb This was the easy one. I just needed to 
> > select the libusb package. But, shouldn't the Config.in for usbutils

> > select it automatically?
> Yes, fixed in trunk.
> > 2) configure for usbutils outputs error: get libusb 0.1.8 or newer 
> > Not sure how to fix this one. The libusb in buildroot is 0.1.12. It 
> > built fine and the library is in my build_arm/staging_dir/usb/lib 
> > directory. For some reason it's not being found. Can anyone offer so

> > insite on what I might have setup wrong?
> Strange, it builds here (i386).
> Could you provide more details, please?

Hello Peter,

Strange... If I add LDFLAGS="$(TARGET_LDFLAGS)" I can get usbutils to

In usbutils.mk:

$(USBUTILS_DIR)/.configured: $(USBUTILS_DIR)/.unpacked
	(cd $(USBUTILS_DIR); rm -rf config.cache; \
		ac_cv_func_malloc_0_nonnull=yes \
		./configure \
		--target=$(GNU_TARGET_NAME) \
		--host=$(GNU_TARGET_NAME) \
		--build=$(GNU_HOST_NAME) \
		--prefix=/usr \

I guess this is because the configure script for usbutils uses:

ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS
conftest.$ac_ext $LIBS >&5'

To build and link the tests.

Is this the "right" way to fix it?


More information about the buildroot mailing list