Skip to contentSkip to conversation

: Attempt to build usb tools fails by missing libusb.so

Buildroot bugs at busybox.net 1 participant 1 message Mar 9, 2008

lore
Share & tools
lore
#0 lore raw

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-08-2008 17:09 PST

======================================================================
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)

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                          

======================================================================