* [Buildroot] libusb now compile - patch
@ 2007-09-19 16:29 Sushi Sensei
2007-09-20 0:16 ` Hebbar
0 siblings, 1 reply; 6+ messages in thread
From: Sushi Sensei @ 2007-09-19 16:29 UTC (permalink / raw)
To: buildroot
--
------------------------------------------------------
--- Timeo Danaos et dona ferentes ---
------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20070919/223412f5/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: br2-libusb.patch
Type: text/x-patch
Size: 678 bytes
Desc: not available
Url : http://busybox.net/lists/buildroot/attachments/20070919/223412f5/attachment.bin
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] libusb now compile - patch
2007-09-19 16:29 [Buildroot] libusb now compile - patch Sushi Sensei
@ 2007-09-20 0:16 ` Hebbar
2007-09-20 0:21 ` Allan Clark
0 siblings, 1 reply; 6+ messages in thread
From: Hebbar @ 2007-09-20 0:16 UTC (permalink / raw)
To: buildroot
Hi Sushi Sensei,
Thanks for the patch. Now i am able to build libusb. unfortunately when i
try to build usbutils i get an error saying
<snip>
checking for usb_get_string_simple in -lusb... no
configure: error: get libusb 0.1.8 or newer
make: ***
[/home/guru/project/original/bldrt/buildroot/build_arm/usbutils-0.72/.configured]
Error 1
When i looked at config.log inside build_arm/usbutils-0.72 folder i got
this.
onfigure:5074: checking for usb_get_string_simple in -lusb
configure:5104:
/home/guru/project/original/bldrt/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibcgnueabi-gcc
-Os -pipe
-I/home/guru/project/original/bldrt/buildroot/build_arm/staging_dir/usr/include
-I/home/guru/project/original/bldrt/buildroot/build_arm/staging_dir/include
--sysroot=/home/guru/project/original/bldrt/buildroot/build_arm/staging_dir/
-isysroot /home/guru/project/original/bldrt/buildroot/build_arm/staging_dir
-mtune=arm9tdmi -o conftest -g -O2 conftest.c -lusb >&5
/home/guru/project/original/bldrt/buildroot/build_arm/staging_dir/usr/bin/../lib/gcc/arm-linux-uclibcgnueabi/4.2.1/../../../../arm-linux-uclibcgnueabi/bin/ld:
cannot find -lusb
collect2: ld returned 1 exit status
configure:5110: $? = 1
configure: failed program was:
Seems ls is not able to find proper -lusb libraries
Let me know if you need any more info. Waiting for your reply.
Regards
Gururaja
Sushi Sensei wrote:
>
> --
> ------------------------------------------------------
> --- Timeo Danaos et dona ferentes ---
> ------------------------------------------------------
>
> Index: package/libusb/libusb.mk
> ===================================================================
> --- package/libusb/libusb.mk (revisi??n: 19893)
> +++ package/libusb/libusb.mk (copia de trabajo)
> @@ -43,6 +43,7 @@
> --prefix=/ \
> --disable-debug \
> --disable-build-docs \
> + --libdir $(LIBUSB_DIR)/.libs \
> )
> touch $@
>
> @@ -52,8 +53,7 @@
>
> $(TARGET_DIR)/$(LIBUSB_BINARY): $(STAGING_DIR)/lib/libusb.so
> mkdir -p $(TARGET_DIR)/usr/lib
> - cp -dpf $(STAGING_DIR)/lib/libusb* $(TARGET_DIR)/usr/lib
> - rm -f $(TARGET_DIR)/usr/lib/*.a $(TARGET_DIR)/usr/lib/*.la
> + cp -dpf $(LIBUSB_DIR)/.libs/libusb*.so.* $(TARGET_DIR)/usr/lib
>
> libusb: uclibc $(TARGET_DIR)/$(LIBUSB_BINARY)
>
> _______________________________________________
> buildroot mailing list
> buildroot at uclibc.org
> http://busybox.net/mailman/listinfo/buildroot
>
--
View this message in context: http://www.nabble.com/libusb-now-compile---patch-tf4482125.html#a12788591
Sent from the BuildRoot mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] libusb now compile - patch
2007-09-20 0:16 ` Hebbar
@ 2007-09-20 0:21 ` Allan Clark
2007-09-20 1:09 ` Hebbar
0 siblings, 1 reply; 6+ messages in thread
From: Allan Clark @ 2007-09-20 0:21 UTC (permalink / raw)
To: buildroot
On 9/20/07, Hebbar <gururajakr@sanyo.co.in> wrote:
>
> Hi Sushi Sensei,
> Thanks for the patch. Now i am able to build libusb. unfortunately when i
> try to build usbutils i get an error saying
>
> <snip>
> checking for usb_get_string_simple in -lusb... no
> configure: error: get libusb 0.1.8 or newer
> make: ***
> [/home/guru/project/original/bldrt/buildroot/build_arm/usbutils-0.72/.configured]
> Error 1
In libusb/libusb.mk, try this change:
< cp -dpf $(LIBUSB_DIR)/.libs/libusb*.so.* $(TARGET_DIR)/usr/lib
--
> cp -dpf $(LIBUSB_DIR)/.libs/libusb*.so* $(TARGET_DIR)/usr/lib
notice ".so.*" ==> ".so*" -- this will allow libusb.so to exist, and
perhaps allow the build to continue. Otherwise, if the libusb.a is
there, and not working, check the build path.
If this doesn't work, in private email, can you send your .config, or
provide a download URL? I'm curious, and have some time in 16 hours.
Allan
--
allanc at chickenandporn.com "??" http://linkedin.com/in/goldfish
please, no proprietary attachments (http://tinyurl.com/cbgq)
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-09-20 9:38 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-19 16:29 [Buildroot] libusb now compile - patch Sushi Sensei
2007-09-20 0:16 ` Hebbar
2007-09-20 0:21 ` Allan Clark
2007-09-20 1:09 ` Hebbar
2007-09-20 2:39 ` [Buildroot] libusb now compile - patch 02 Rex Luscus
2007-09-20 9:38 ` Bernhard Fischer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox