- Forums - Sign Up - Reply - Search - Statistics -
Huidae Cho's Private Forums / libdlusb / libusb 0.1.12
Author Message
mstone
Member
# Posted: 4 Jan 2010 14:05
Reply 


Apparently, libusb 0.1.12 is required to build libdlusb 0.0.11. But libusb 0.1.12 no longer compiles on the latest Mac OS X (10.6.2). Since that version is no longer in development, I am unable to find any help to fix it. So unfortunately, I'm now unable to build libdlusb.

I'd like to request that you add support for the latest version of libusb, which is currently 1.0.6.

Thank you!

Huidae Cho
Admin
# Posted: 5 Jan 2010 04:44 - Edited by: Huidae Cho
Reply 


Michael,

Try 0.0.12 and let me know. This version supports libusb 1.0.6. configure --with-libusb1

mstone
Member
# Posted: 5 Jan 2010 11:56
Reply 


Wow! Thank you for the quick support.

When I build libusb 1.0.6, it installs to /usr/local. So I do the following and get errors:

$ ./configure --with-libusb1 --prefix=/usr/local
checking how to build library... static
checking which usb library to use... libusb 1.0
configure: creating ./config.status
config.status: creating Makefile

$ make
cc -Wall -DUSB_LIBUSB_1_0 `pkg-config libusb-1.0 --cflags` -c -o session.o session.c
/bin/sh: pkg-config: command not found
In file included from dlusb.h:43,
from session.c:29:
usb_libusb-1.0.h:31:20: error: libusb.h: No such file or directory
In file included from dlusb.h:43,
from session.c:29:
usb_libusb-1.0.h:39: error: expected specifier-qualifier-list before ‘libusb_device_handle’
make: *** [session.o] Error 1

Huidae Cho
Admin
# Posted: 5 Jan 2010 13:15
Reply 


Oh! You don't have pkg-config. Open Makefile and change `pkg-config libusb-1.0 --cflags` to "/usr/local/include/libusb" and `pkg-config libusb-1.0 --libs` to "-L/usr/local/lib -lusb-1.0" (or -lusb-1? I don't remember exactly).

I'll remove the dependency on libusb-config and pkg-config for the next version.

mstone
Member
# Posted: 6 Jan 2010 02:07
Reply 


OK, thanks. I'll look forward to the next release. Meanwhile, I've attached the updated Makefile.in since it's a bit different than what you suggested.

It's building for me now on Mac OS X 10.6.2. Thanks for your prompt help!

Attached file:
Makefile.in.zip
Your reply
Bold Style  Italic Style  Underlined Style  Code  LaTeX equation  Image Link  URL Link 

File attachment: file(s), max 10 files, (.png, .gif, .jpg, .jpeg, .txt, .zip, .dbf)

» Username  » Password 
Only registered users can post here. Please enter your login/password details before posting a message, or register here first.
 

These forums are running on bulletin board script miniBB™ © 2001-2010