[Buildroot] [buildroot 0002494]: Attempt to build usb tools fails by missing libusb.so
bugs at busybox.net
bugs at busybox.net
Tue Mar 11 08:28:51 UTC 2008
A NOTE has been added to this issue.
======================================================================
http://busybox.net/bugs/view.php?id=2494
======================================================================
Reported By: ucdamiano
Assigned To: buildroot
======================================================================
Project: buildroot
Issue ID: 2494
Category: Architecture Specific
Reproducibility: always
Severity: block
Priority: normal
Status: assigned
======================================================================
Date Submitted: 03-08-2008 04:29 PST
Last Modified: 03-11-2008 01:28 PDT
======================================================================
Summary: Attempt to build usb tools fails by missing
libusb.so
Description:
I try to build USB libraries packages on ARM S3C2410, the vanilla
compilation is OK and the generated systems works (only using OABi, but it
works) but when I try to add support for USB I get the following error (see
additional information)
======================================================================
----------------------------------------------------------------------
ucdamiano - 03-08-08 06:23
----------------------------------------------------------------------
It is possible to continue by issuing
cp build_arm/staging_dir/lib/libusb.so build_arm/staging_dir/usr/lib
----------------------------------------------------------------------
hbr_in - 03-08-08 17:09
----------------------------------------------------------------------
Hi,
here is the patch to correct this error. i had sent this earlier but no
one comited this.
Regards
Gururaja
diff -purN buildroot/package/libusb/libusb.mk
buildroot_patched/package/libusb/libusb.mk
--- buildroot/package/libusb/libusb.mk 2008-03-04 03:15:13.000000000
-0500
+++ buildroot_patched/package/libusb/libusb.mk 2008-02-21
16:46:07.000000000 -0500
@@ -56,7 +56,7 @@ $(STAGING_DIR)/lib/libusb.so: $(LIBUSB_D
$(MAKE) -C $(LIBUSB_DIR) DESTDIR=$(STAGING_DIR) install
$(TARGET_DIR)/$(LIBUSB_BINARY): $(STAGING_DIR)/lib/libusb.so
- cp -dpf $(STAGING_DIR)/usr/lib/libusb*.so* $(TARGET_DIR)/usr/lib/
+ cp -dpf $(STAGING_DIR)/lib/libusb*.so* $(TARGET_DIR)/usr/lib/
$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libusb*.so*
libusb: uclibc $(TARGET_DIR)/$(LIBUSB_BINARY)
----------------------------------------------------------------------
UlfSamuelsson - 03-11-08 01:28
----------------------------------------------------------------------
Thaty is probably wrong, you want a patch which ensures
that libusb.so is generated in $(STAGING_DIR)/usr.
$(MAKE) -C $(LIBUSB_DIR) DESTDIR=$(STAGING_DIR)/usr install
will do this.
Some further cleanup is needed.
Issue History
Date Modified Username Field Change
======================================================================
03-08-08 04:29 ucdamiano New Issue
03-08-08 04:29 ucdamiano Status new => assigned
03-08-08 04:29 ucdamiano Assigned To => buildroot
03-08-08 06:19 ucdamiano Issue Monitored: ucdamiano
03-08-08 06:23 ucdamiano Note Added: 0005614
03-08-08 17:09 hbr_in Note Added: 0005634
03-11-08 01:28 UlfSamuelsson Note Added: 0005644
======================================================================
More information about the buildroot
mailing list