From owner-freebsd-usb@FreeBSD.ORG Mon Jul 11 09:59:41 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 22786106566B for ; Mon, 11 Jul 2011 09:59:41 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id DFD458FC17 for ; Mon, 11 Jul 2011 09:59:40 +0000 (UTC) Received: by iwr19 with SMTP id 19so4480347iwr.13 for ; Mon, 11 Jul 2011 02:59:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=H0FJuhAbzMca7jQI5wOz87F2YacaCabpSWU2bJgUf0E=; b=aQRMdy3hCisDvOOKjszkptIM0vdcQZgTLbOPVP19pLcVIL/nfhj1gzbEGgaedhdxhC V9ZNp0XYis/amOYh8+MamP+8n+rNzYue2W7mkkHshGVecejzuZ+rEwRNzrUATeMbsLH1 q69MTVOuriHPf7jRgghm2JPHrJHipYzYO4YPk= Received: by 10.231.10.138 with SMTP id p10mr4497541ibp.84.1310376984146; Mon, 11 Jul 2011 02:36:24 -0700 (PDT) MIME-Version: 1.0 Sender: utisoft@gmail.com Received: by 10.231.155.141 with HTTP; Mon, 11 Jul 2011 02:35:54 -0700 (PDT) In-Reply-To: <5A792F9E-4860-4892-ACC4-9250F025EDB0@gsoft.com.au> References: <20110710194410.4ff1f096.torfinn.ingolfsen@broadpark.no> <201107101956.03740.hselasky@c2i.net> <20110710200629.00aab8b3.torfinn.ingolfsen@broadpark.no> <20110710181316.GA1147@tiny> <20110711015905.ff232e6b.torfinn.ingolfsen@broadpark.no> <5A792F9E-4860-4892-ACC4-9250F025EDB0@gsoft.com.au> From: Chris Rees Date: Mon, 11 Jul 2011 10:35:54 +0100 X-Google-Sender-Auth: Z8E9xfkyz2RjxIhfzj5teJ8X5aE Message-ID: To: "Daniel O'Connor" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-usb@freebsd.org Subject: Re: FreeBSD 8.2 and DisplayLink devices? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jul 2011 09:59:41 -0000 On 11 July 2011 04:22, Daniel O'Connor wrote: > On 11/07/2011, at 7:59, Torfinn Ingolfsen wrote: >> On Sun, 10 Jul 2011 20:13:17 +0200 >> Matthias Apitz wrote: >> >>> >>> CFLAGS=3D'-I/usr/local/include' CPPFLAGS=3D'-I/usr/local/include' LDFLA= GS=3D'-L/usr/local/lib ' =A0./configure >>> >> >> Same error as before. Also tried >> env CFLAGS=3D'-I/usr/local/include' CPPFLAGS=3D'-I/usr/local/include' LD= FLAGS=3D'-L/usr/local/lib ' =A0./configure >> >> it didn't make a difference - same error as before. > > It's probably using pkg-config and FreeBSD doesn't ship with a .pc file f= or libusb. > > Create files like so > [midget 12:51] ~ >cat /usr/local/libdata/pkgconfig/libusb.pc > prefix=3D/usr > exec_prefix=3D${prefix} > libdir=3D${exec_prefix}/lib > includedir=3D${prefix}/include > > Name: libusb > Description: USB access library > Version: 0.1 > Libs: -L${libdir} -lusb > Cflags: -I${includedir} > > [midget 12:51] ~ >cat /usr/local/libdata/pkgconfig/libusb-1.0.pc > prefix=3D/usr > exec_prefix=3D${prefix} > libdir=3D${exec_prefix}/lib > includedir=3D${prefix}/include > > Name: libusb > Description: USB access library > Version: 1.0.1 > Libs: -L${libdir} -lusb > Cflags: -I${includedir} > > > > and try it again. > > It would be nice if FreeBSD shipped with those files in (say) /usr/libdat= a/pkgconfig and the pkg-config port was tweaked to search there as well but= it hasn't happened yet.. Really? We don't have pkgconfig in the base system, so I'd submit that it'd be a little strange. I would suggest a port (perhaps like libusb-pkgconfig) that installs/creates those files in ${PREFIX}/libdata/pkgconfig for you, or any other creative fix that you can think of! Not sure if we want to go down that road though... Chris