From owner-freebsd-usb@FreeBSD.ORG Sat Feb 23 02:26:51 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 716671B7 for ; Sat, 23 Feb 2013 02:26:51 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from mail-qa0-f42.google.com (mail-qa0-f42.google.com [209.85.216.42]) by mx1.freebsd.org (Postfix) with ESMTP id C55AB7CC for ; Sat, 23 Feb 2013 02:26:50 +0000 (UTC) Received: by mail-qa0-f42.google.com with SMTP id cr7so726429qab.8 for ; Fri, 22 Feb 2013 18:26:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=U3bv8946LbgyM12ElNKqb/lWX758XlQ+4rnemHZtNeA=; b=WA8hl8seVl9itCKTAQ79+xNrztjZcPMV0NTXcmZWD0PHy96//ISUM0XHV+Vun9JNrQ JRe9cS+S+mysbfohiFxD0kv51odEo/HvmpjIUwRdXT+MGYGOxkNS3jcXp84Q/CQPhdX7 A6KW1ztuUZ6omvebYKZAEGp63eXPHqR4zYHLwmOqc12qZwRLNoDngRk8fB60c90R7uMn 9U+TuGHmlW+Ih55pCS8dZvlD3Eqj1vJ2wiTWdtLKyEYDanb0lnav2NfHVg9h25WAkR9n tRPw3DztyqjjTkU1f3WXOlmU1nUkzyBFsll7nTrnLe1eIjR2qSDLW9r5dqHXK6L9L2hd mjYQ== MIME-Version: 1.0 X-Received: by 10.49.3.234 with SMTP id f10mr2213099qef.52.1361586404317; Fri, 22 Feb 2013 18:26:44 -0800 (PST) Received: by 10.49.87.197 with HTTP; Fri, 22 Feb 2013 18:26:44 -0800 (PST) In-Reply-To: <51272931.4050407@passap.ru> References: <5124932E.5080205@passap.ru> <201302201804.09100.hselasky@c2i.net> <51272931.4050407@passap.ru> Date: Sat, 23 Feb 2013 10:26:44 +0800 Message-ID: Subject: Re: argyllcms and usb (0.1 and 1.0) From: Xiaofan Chen To: Boris Samorodov Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Feb 2013 02:26:51 -0000 On Fri, Feb 22, 2013 at 4:15 PM, Boris Samorodov wrote: >> USE_LIBUSB1 should be set, and -lusb must be used as linker flag, not - >> lusb-1.0 like under linux. > > After a deeper look at the code I realised that actually the called > LIBUSB1 is a USB-1.0 with some changes. The author call it "USB-1.0A". > And this specific code is used at Linux and Windows drivers. And this > code dosn't compile at FreeBSD. So I proceed with USB-0.1. It should not really matter. The USB-1.0A mod is more aimed under Windows (to support libusb0.sys) and a bit of mod for older Linux libusb-1.0.8. The API is still libusb-1.0 API. And of course the code does not compile for FreeBSD, in fact, libusb-1.0 and libusbx will not compile for FreeBSD since FreeBSD has its own libusb-1.0 API implementation (wrap around libusb20). libusb-1.0 and libusbx do have experimental support of OpenBSD and NetBSD which is based on ugen driver. > The linker flag actually is "-lusb". > >> In FreeBSD -lusb is a multi-API library, including v0.1, v1.0 and v2.0. >> Header files are in /usr/include > > Thanks, it was helpfull. With some changes at the code I managed to > build argyllcms-1.4.0. -- Xiaofan