[argyllcms] Re: FreeBSD, USB: use system library

  • From: Boris Samorodov <bsam@xxxxxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Mon, 25 Feb 2013 22:47:49 +0400

25.02.2013 07:50, Graeme Gill пишет:
> Boris Samorodov wrote:

>> don't know how to make <libusb>libusb.a      [*]
> 
> Which version ArgyllCMS source code are you using ?

Sorry, should have said it at the first place. It's 1.4.0-release.

> I think that the above means that there are no Jamrules to build libusb,

May be. But it's a result of the default configure at FreeBSD.

> possibly because the libusb directory is missing.

Do you mean libusb at the sources?.. It is definitely there.

> Note that V1.5 (beta) no longer uses libusb, and therefore the source
> code for it is omitted. You either need to copy the libusb directory
> from the V1.4 source code (simplest), or write a usbio_bsd.c module patterned
> after usbio_lx.c to match the new arrangement (more difficult).

I see. Does that mean that *bsd are not more supported by default?
I mean that the upcomming release will not contain usb code for *bsd?

>> So AFAIK the system libraries from FreeBSD may (should?) be used
>> to compile ArgillCMS code.
> 
> This is the standard rhetoric from distro maintainers. It ignores
> the reality that these are hardware drivers, and are therefore
> sensitive to the particular hardware involved.

Actually I'd love to use your code/drivers but I failed to build
1.4.0-release at FreeBSD )until I just copy the system's libusb.a
to your SRC/libusb directory). Then and only then the build succeeded.

> If you are prepared to test all the supported instruments with the
> OS library, then feel free to use it, but it's likely to have
> bugs with certain instruments. The version of libusb included in
> the Argyll source has been patched and tested against all the instruments,
> and is known to work. V1.5 avoids this issue by including its own native
> USB user level drivers.

Thanks, that was helpful.

-- 
WBR, Boris Samorodov (bsam)
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve

Other related posts: