Ticket #14 (assigned enhancement)

Opened 17 months ago

Last modified 4 months ago

Change the method to check libusb at configuring

Reported by: jerryyu Owned by: zany
Priority: minor Milestone:
Component: openobex-lib Version:
Keywords: Cc:

Description

libusb.pc is checked at configuring to ensure that the usb library exists. However, the file libusb.pc isn't shipped in Solaris. So it won't work on Solaris. It was modified to check if the function 'usb_open' is there or not. If 'usb_open' is found, we think the usb library exists. It will work in Solaris as well as in Linux.

Attachments

openobex-02-libusb.diff (0.8 KB) - added by jerryyu 17 months ago.
patch for this bug

Change History

Changed 17 months ago by jerryyu

patch for this bug

in reply to: ↑ description ; follow-up: ↓ 2   Changed 17 months ago by hsattler

Replying to jerryyu:

libusb.pc is checked at configuring to ensure that the usb library exists. However, the file libusb.pc isn't shipped in Solaris. So it won't work on Solaris. It was modified to check if the function 'usb_open' is there or not. If 'usb_open' is found, we think the usb library exists. It will work in Solaris as well as in Linux.

Neither is it present on Win32, still we want to use it on systems that provide it. It would be nice to use a solution like done in ticket #9 as it actually is possible to support both detection methods.

in reply to: ↑ 1   Changed 17 months ago by jerryyu

Replying to hsattler:

Replying to jerryyu:

libusb.pc is checked at configuring to ensure that the usb library exists. However, the file libusb.pc isn't shipped in Solaris. So it won't work on Solaris. It was modified to check if the function 'usb_open' is there or not. If 'usb_open' is found, we think the usb library exists. It will work in Solaris as well as in Linux.

Neither is it present on Win32, still we want to use it on systems that provide it. It would be nice to use a solution like done in ticket #9 as it actually is possible to support both detection methods.

Yeah, supporting both detection methods is ok for me. After "Ticket #9: 620_win32-usb.patch" is accepted into trunk, I'll re-write a patch for Solaris based on that patch.

  Changed 7 months ago by zany

  • owner changed from somebody to zany
  • priority changed from major to minor
  • status changed from new to assigned
  • type changed from defect to enhancement

Jerry, can you re-check this on Solaris?

Note: See TracTickets for help on using tickets.