FreeBSD 8.2 and DisplayLink devices?

Chris Rees crees at freebsd.org
Mon Jul 11 09:59:41 UTC 2011


On 11 July 2011 04:22, Daniel O'Connor <doconnor at 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 at unixarea.de> wrote:
>>
>>>
>>> CFLAGS='-I/usr/local/include' CPPFLAGS='-I/usr/local/include' LDFLAGS='-L/usr/local/lib '  ./configure
>>>
>>
>> Same error as before. Also tried
>> env CFLAGS='-I/usr/local/include' CPPFLAGS='-I/usr/local/include' LDFLAGS='-L/usr/local/lib '  ./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 for libusb.
>
> Create files like so
> [midget 12:51] ~ >cat /usr/local/libdata/pkgconfig/libusb.pc
> prefix=/usr
> exec_prefix=${prefix}
> libdir=${exec_prefix}/lib
> includedir=${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=/usr
> exec_prefix=${prefix}
> libdir=${exec_prefix}/lib
> includedir=${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/libdata/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


More information about the freebsd-usb mailing list