Re: FreeBSD 8.2 and DisplayLink devices?
On Saturday 16 July 2011 10:29:06 Hans Petter Selasky wrote: > > The machine in question is already at 8.2-stable: > > tingo@kg-v7$ uname -a > > FreeBSD kg-v7.kg4.no 8.2-STABLE FreeBSD 8.2-STABLE #7: Sat Jul 9 > > 23:00:31 CEST 2011 r...@kg-v7.kg4.no:/usr/obj/usr/src/sys/GENERIC > > amd64 > > > > Do I need a newer -stable than this? > > Hi, > > Sorry, the missing API was in LibUSB v1.0, but not in the LibUSB v0.1. > > Download and apply the following patch to your 8-stable and then recompile > and install LibUSB only. > > http://svn.freebsd.org/changeset/base/224085 > > --HPS If applying the patch is difficult, then just checkout 9-current in 5-10minutes and then copy libusb from there. --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: FreeBSD 8.2 and DisplayLink devices?
> > The machine in question is already at 8.2-stable: > tingo@kg-v7$ uname -a > FreeBSD kg-v7.kg4.no 8.2-STABLE FreeBSD 8.2-STABLE #7: Sat Jul 9 23:00:31 > CEST 2011 r...@kg-v7.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64 > > Do I need a newer -stable than this? Hi, Sorry, the missing API was in LibUSB v1.0, but not in the LibUSB v0.1. Download and apply the following patch to your 8-stable and then recompile and install LibUSB only. http://svn.freebsd.org/changeset/base/224085 --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: FreeBSD 8.2 and DisplayLink devices?
On Fri, 15 Jul 2011 18:55:42 +0200 Hans Petter Selasky wrote: > On Friday 15 July 2011 18:32:44 Torfinn Ingolfsen wrote: > > On Tue, 12 Jul 2011 10:18:35 +0200 > > > > Hans Petter Selasky wrote: > > > On Tuesday 12 July 2011 00:33:12 Torfinn Ingolfsen wrote: > > > > According to [1], this function is implemted on Linux only - a > > > > Linuxism. I'll see if I want to fix it. > > > > > > If you upgrade your libusb /usr/src/lib/libusb only, it should be there. > > > > Upgrade it from where? -current? > > Current or stable. It is the same. The machine in question is already at 8.2-stable: tingo@kg-v7$ uname -a FreeBSD kg-v7.kg4.no 8.2-STABLE FreeBSD 8.2-STABLE #7: Sat Jul 9 23:00:31 CEST 2011 r...@kg-v7.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64 Do I need a newer -stable than this? -- Torfinn ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: FreeBSD 8.2 and DisplayLink devices?
On Friday 15 July 2011 18:32:44 Torfinn Ingolfsen wrote: > On Tue, 12 Jul 2011 10:18:35 +0200 > > Hans Petter Selasky wrote: > > On Tuesday 12 July 2011 00:33:12 Torfinn Ingolfsen wrote: > > > According to [1], this function is implemted on Linux only - a > > > Linuxism. I'll see if I want to fix it. > > > > If you upgrade your libusb /usr/src/lib/libusb only, it should be there. > > Upgrade it from where? -current? Current or stable. It is the same. --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: FreeBSD 8.2 and DisplayLink devices?
On Tue, 12 Jul 2011 10:18:35 +0200 Hans Petter Selasky wrote: > On Tuesday 12 July 2011 00:33:12 Torfinn Ingolfsen wrote: > > According to [1], this function is implemted on Linux only - a Linuxism. > > I'll see if I want to fix it. > > If you upgrade your libusb /usr/src/lib/libusb only, it should be there. Upgrade it from where? -current? -- Torfinn ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: FreeBSD 8.2 and DisplayLink devices?
On Tuesday 12 July 2011 00:33:12 Torfinn Ingolfsen wrote: > According to [1], this function is implemted on Linux only - a Linuxism. > I'll see if I want to fix it. If you upgrade your libusb /usr/src/lib/libusb only, it should be there. --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: FreeBSD 8.2 and DisplayLink devices?
On 12/07/2011, at 24:06, Chris Rees wrote: > > That is the other approach but it's a bit of a pain to make the libusb port > > do something very different for 8.x. > > > > The last thing we should have is a port that does different things depending > on OS version like that, I was thinking of a virtual port, as it were. I don't believe that is currently possible. Although I suppose you could have magic in bsd.ports.mk which looked for USE_LIBUSB= or something.. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: FreeBSD 8.2 and DisplayLink devices?
On Mon, 11 Jul 2011 05:52:46 +0200 Matthias Apitz wrote: > So, look into the log file config.log to understand what it is missing; Good advice! Here is a part of it: configure:13177: gcc -o conftest -I/usr/local/include -I/usr/local/include -L/usr/local/lib conftest.c -lusb >&5 /var/tmp//cctcQ0kE.o(.text+0xa): In function `main': : undefined reference to `usb_get_driver_np' ... configure:13204: result: no configure:13209: error: Can't find libusb. On ubuntu, try sudo apt-get install libusb-dev According to [1], this function is implemted on Linux only - a Linuxism. I'll see if I want to fix it. References: 1) http://libusb.sourceforge.net/doc/function.usbgetdrivernp.html -- Torfinn ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: FreeBSD 8.2 and DisplayLink devices?
On 11 Jul 2011 14:26, "Daniel O'Connor" wrote: > > > On 11/07/2011, at 17:35, Chris Rees wrote: > >> 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... > > That is the other approach but it's a bit of a pain to make the libusb port do something very different for 8.x. > The last thing we should have is a port that does different things depending on OS version like that, I was thinking of a virtual port, as it were. Chris ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: FreeBSD 8.2 and DisplayLink devices?
On 11/07/2011, at 17:35, Chris Rees wrote: >> 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... That is the other approach but it's a bit of a pain to make the libusb port do something very different for 8.x. (Or at least I don't have any patches for that :) -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: FreeBSD 8.2 and DisplayLink devices?
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='-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 ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: FreeBSD 8.2 and DisplayLink devices?
On 11/07/2011, at 7:59, Torfinn Ingolfsen wrote: > On Sun, 10 Jul 2011 20:13:17 +0200 > Matthias Apitz 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.. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: FreeBSD 8.2 and DisplayLink devices?
El día Monday, July 11, 2011 a las 01:59:05AM +0200, Torfinn Ingolfsen escribió: > On Sun, 10 Jul 2011 20:13:17 +0200 > Matthias Apitz 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. So, look into the log file config.log to understand what it is missing; matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: FreeBSD 8.2 and DisplayLink devices?
On Sun, 10 Jul 2011 20:13:17 +0200 Matthias Apitz 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. -- Torfinn ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: FreeBSD 8.2 and DisplayLink devices?
On Sun, 10 Jul 2011 20:05:43 +0200 Hans Petter Selasky wrote: > > Maybe also add -L/usr/local/lib Tried env CFLAGS="-I/usr/local/include -L/usr/local/lib" ./configure same error as before. -- Torfinn ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: FreeBSD 8.2 and DisplayLink devices?
El día Sunday, July 10, 2011 a las 08:06:29PM +0200, Torfinn Ingolfsen escribió: > On Sun, 10 Jul 2011 19:56:03 +0200 > Hans Petter Selasky wrote: > > > > > Try to: > > > > setenv CFLAGS "-I/usr/local/include" > > export CFLAGS > > > > Before configure. > > I tried (I'm using /bin/sh) > CFLAGS="-I/usr/local/include" ./configure > env CFLAGS="-I/usr/local/include" ./configure CFLAGS='-I/usr/local/include' CPPFLAGS='-I/usr/local/include' LDFLAGS='-L/usr/local/lib ' ./configure HIH matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: FreeBSD 8.2 and DisplayLink devices?
On Sunday 10 July 2011 20:06:29 Torfinn Ingolfsen wrote: > On Sun, 10 Jul 2011 19:56:03 +0200 > > Hans Petter Selasky wrote: > > Try to: > > > > setenv CFLAGS "-I/usr/local/include" > > export CFLAGS > > > > Before configure. > > I tried (I'm using /bin/sh) > CFLAGS="-I/usr/local/include" ./configure > env CFLAGS="-I/usr/local/include" ./configure > > but got the same error message: > configure: error: Can't find libusb. On ubuntu, try sudo apt-get install > libusb-dev Maybe also add -L/usr/local/lib --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: FreeBSD 8.2 and DisplayLink devices?
On Sun, 10 Jul 2011 19:56:03 +0200 Hans Petter Selasky wrote: > > Try to: > > setenv CFLAGS "-I/usr/local/include" > export CFLAGS > > Before configure. I tried (I'm using /bin/sh) CFLAGS="-I/usr/local/include" ./configure env CFLAGS="-I/usr/local/include" ./configure but got the same error message: configure: error: Can't find libusb. On ubuntu, try sudo apt-get install libusb-dev -- Torfinn ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: FreeBSD 8.2 and DisplayLink devices?
On Sunday 10 July 2011 19:44:10 Torfinn Ingolfsen wrote: > Hi, > > Has anybody done any work on DisplayLink devices for FreeBSD? > I have a small monior, Lilliput UM-70[1], which uses DisplayLink. > The last time I tested it was when FreeBSD 7.2 was hot. :) > > Today I blew the dust off the monitor and connected it to a test machine: > root@kg-v7# uname -a > FreeBSD kg-v7.kg4.no 8.2-STABLE FreeBSD 8.2-STABLE #7: Sat Jul 9 23:00:31 > CEST 2011 r...@kg-v7.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64 > > It shows up fine: > root@kg-v7# usbconfig -d 0.3 > ugen0.3: at usbus0, cfg=0 md=HOST > spd=HIGH (480Mbps) pwr=ON from /var/log/messages: > Jul 10 18:57:44 kg-v7 root: Unknown USB device: vendor 0x17e9 product > 0x02a9 bus uhub2 Jul 10 18:57:44 kg-v7 kernel: ugen0.3: at > usbus0 > > But I don't have anything to actually use it. I downloaded > libdlo-0.1.2.tar.gz (found at thw libdlo wiki[2]) and tried to get it > working: > ./configure > ./configure --includedir=/usr/local/include > ./configure --includedir=/usr/local/include --libdir=/usr/local/lib > ./configure --includedir=/usr/include --libdir=/usr/lib > > all results in "configure: error: Can't find libusb. On ubuntu, try sudo > apt-get install libusb-dev". > > Any hints on getting this working? > > References: > 1) http://sites.google.com/site/tingox/lilliput_um70 > 2) http://libdlo.freedesktop.org/wiki/ Try to: setenv CFLAGS "-I/usr/local/include" export CFLAGS Before configure. --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"