* [Buildroot] Problem building usbutils
@ 2008-06-18 1:48 hartleys
2008-06-18 1:58 ` Conrad Parker
2008-06-18 8:46 ` Peter Korsgaard
0 siblings, 2 replies; 7+ messages in thread
From: hartleys @ 2008-06-18 1:48 UTC (permalink / raw)
To: buildroot
Hello all,
I'm having a couple problems getting usbutils to build with buildroot.
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?
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?
Thanks,
Hartley
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] Problem building usbutils
2008-06-18 1:48 [Buildroot] Problem building usbutils hartleys
@ 2008-06-18 1:58 ` Conrad Parker
2008-06-18 2:56 ` hartleys
2008-06-18 8:46 ` Peter Korsgaard
1 sibling, 1 reply; 7+ messages in thread
From: Conrad Parker @ 2008-06-18 1:58 UTC (permalink / raw)
To: buildroot
2008/6/18 hartleys <hartleys@visionengravers.com>:
>
> 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?
edit the version in package/libusb/libusb.mk, and try again.
If it works, send a patch to this list :-)
Conrad.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] Problem building usbutils
2008-06-18 1:58 ` Conrad Parker
@ 2008-06-18 2:56 ` hartleys
0 siblings, 0 replies; 7+ messages in thread
From: hartleys @ 2008-06-18 2:56 UTC (permalink / raw)
To: buildroot
Conrad Parker wrote:
> >
> > 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?
>
> edit the version in package/libusb/libusb.mk, and try again.
>
> If it works, send a patch to this list :-)
>
I'm not sure that will fix the problem. The version in buildroot is
already newer than what libusb is looking for.
I think the problem is the files in build_arm/staging_dir/usr/lib are
not being seen during the configure stage.
I'm out of here for today. I'll try your suggestion tommorrow.
Thanks,
Hartley
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] Problem building usbutils
2008-06-18 1:48 [Buildroot] Problem building usbutils hartleys
2008-06-18 1:58 ` Conrad Parker
@ 2008-06-18 8:46 ` Peter Korsgaard
2008-06-18 19:08 ` hartleys
2008-06-18 21:41 ` hartleys
1 sibling, 2 replies; 7+ messages in thread
From: Peter Korsgaard @ 2008-06-18 8:46 UTC (permalink / raw)
To: buildroot
>>>>> "hartleys" == hartleys <hartleys@visionengravers.com> writes:
Hi,
hartleys> 1) usbutils requires libusb This was the easy one. I just
hartleys> needed to select the libusb package. But, shouldn't the
hartleys> Config.in for usbutils select it automatically?
Yes, fixed in trunk.
hartleys> 2) configure for usbutils outputs error: get libusb 0.1.8
hartleys> or newer Not sure how to fix this one. The libusb in
hartleys> buildroot is 0.1.12. It built fine and the library is in my
hartleys> build_arm/staging_dir/usb/lib directory. For some reason
hartleys> it's not being found. Can anyone offer so insite on what I
hartleys> might have setup wrong?
Strange, it builds here (i386).
Could you provide more details, please?
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] Problem building usbutils
2008-06-18 8:46 ` Peter Korsgaard
@ 2008-06-18 19:08 ` hartleys
2008-06-18 21:41 ` hartleys
1 sibling, 0 replies; 7+ messages in thread
From: hartleys @ 2008-06-18 19:08 UTC (permalink / raw)
To: buildroot
Peter,
Finally got it to work. But I really don't understand why this was
necessary.
In ext-tool.mk I changed the following
- for FILE in `find $${LIB_DIR} -maxdepth 1 -type l -name
"$${LIB}*"`; do \
+ for FILE in `find $${LIB_DIR}/ -maxdepth 1 -type l -name
"$${LIB}*"`; do \
I have no idea why adding the extra / fixed the problem but at least it
works.
Hartley
-----Original Message-----
From: Peter Korsgaard [mailto:jacmet at gmail.com] On Behalf Of Peter
Korsgaard
Sent: Wednesday, June 18, 2008 1:46 AM
To: hartleys
Cc: buildroot at uclibc.org
Subject: Re: [Buildroot] Problem building usbutils
>>>>> "hartleys" == hartleys <hartleys@visionengravers.com> writes:
Hi,
hartleys> 1) usbutils requires libusb This was the easy one. I just
hartleys> needed to select the libusb package. But, shouldn't the
hartleys> Config.in for usbutils select it automatically?
Yes, fixed in trunk.
hartleys> 2) configure for usbutils outputs error: get libusb 0.1.8
hartleys> or newer Not sure how to fix this one. The libusb in
hartleys> buildroot is 0.1.12. It built fine and the library is in my
hartleys> build_arm/staging_dir/usb/lib directory. For some reason
hartleys> it's not being found. Can anyone offer so insite on what I
hartleys> might have setup wrong?
Strange, it builds here (i386).
Could you provide more details, please?
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] Problem building usbutils
2008-06-18 8:46 ` Peter Korsgaard
2008-06-18 19:08 ` hartleys
@ 2008-06-18 21:41 ` hartleys
2008-06-18 22:20 ` hartleys
1 sibling, 1 reply; 7+ messages in thread
From: hartleys @ 2008-06-18 21:41 UTC (permalink / raw)
To: buildroot
Peter Korsgaard write:
> > 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,
I'm building for an arm platform using an extern uclibc-based toolchain.
The libusb package builds fine in build_arm/libusb-0.1.12 and library
file is placed in the build_arm/staging_dir/usr/lib directory. And when
the final root filesystem is created the library file is in
root/usr/lib.
If I then enable the usbutils package and try to run the build it gets
to the configure stage for usbutils and stops at:
Checking for usb_get_string_simple in -lusb... No
Configure: error: get libusb 0.1.8 or newer
I looked at the source for libusb-0.1.12 and the usb_get_string_simple
function does exist in usb.c and is prototyped in usb.h so it should be
available.
The only thing I can figure is the make process is not including my
build_arm/staging_dir/usb/lib in the library search path.
Is there anyway to output this information to verify?
Thanks,
Hartley
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] Problem building usbutils
2008-06-18 21:41 ` hartleys
@ 2008-06-18 22:20 ` hartleys
0 siblings, 0 replies; 7+ messages in thread
From: hartleys @ 2008-06-18 22:20 UTC (permalink / raw)
To: buildroot
> > 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
build.
In usbutils.mk:
$(USBUTILS_DIR)/.configured: $(USBUTILS_DIR)/.unpacked
(cd $(USBUTILS_DIR); rm -rf config.cache; \
$(TARGET_CONFIGURE_OPTS) \
$(TARGET_CONFIGURE_ARGS) \
+ LDFLAGS= "$(TARGET_LDFLAGS)" \
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?
Thanks,
Hartley
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-06-18 22:20 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-18 1:48 [Buildroot] Problem building usbutils hartleys
2008-06-18 1:58 ` Conrad Parker
2008-06-18 2:56 ` hartleys
2008-06-18 8:46 ` Peter Korsgaard
2008-06-18 19:08 ` hartleys
2008-06-18 21:41 ` hartleys
2008-06-18 22:20 ` hartleys
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox