Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jul 2011 10:35:54 +0100
From:      Chris Rees <crees@freebsd.org>
To:        "Daniel O'Connor" <doconnor@gsoft.com.au>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: FreeBSD 8.2 and DisplayLink devices?
Message-ID:  <CADLo839FE=doVyR5JRs0NPiD6ZS5zWVOVbj7uiCDpZNp3yFf8w@mail.gmail.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11 July 2011 04:22, Daniel O'Connor <doconnor@gsoft.com.au> wrote:
> On 11/07/2011, at 7:59, Torfinn Ingolfsen wrote:
>> On Sun, 10 Jul 2011 20:13:17 +0200
>> Matthias Apitz <guru@unixarea.de> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLo839FE=doVyR5JRs0NPiD6ZS5zWVOVbj7uiCDpZNp3yFf8w>