On 03/01/11 17:03, Torfinn Ingolfsen wrote:
FreeBSD man pages for 8.1 claims otherwise:
http://www.freebsd.org/cgi/man.cgi?query=libusb
or does "The current implementation supports v1.0 of the libusb API"
mean something else?
Huh. OK. It looks like the FreeBSD team are implementing the API
themselves, but the libusb developers are concentrating on Linux and
Windows.
Either way, support is support -- I'll have to set up a BSD virtual
machine to test with (and a Darwin one for OSX, seeing as I can't see
the point of buying a Mac Mini just for OSX testing).
-- does anyone
here need BSD support?
Well, if I buy a DiscFerret, then - yes.
OK, on the "supported OSes" list it goes, then :)
I'll see about doing a test build in the next couple of days. If you (or
anyone else for that matter) wants to have a play with the C API, it's
available for download at:
http://hg.discferret.com/C-API/
Hit "bz2" to grab a tar-bzip2 of the current development TIP ("HEAD"
if
you're familiar with CVS/Subversion terminology). Building is fairly
simple -- just type "make". "make install" will install it into
/usr/local/{lib,include}. To uninstall, rm the following files/directories:
/usr/local/include/discferret
/usr/local/lib/libdiscferret.so*
To build an application which uses libdiscferret, you need to link
against libusb-1.0 and libdiscferret, e.g.:
gcc -o foo foo.o -ldiscferret -lusb-1.0
The only #include you need is:
#include <discferret/discferret.h>
I'll sort out a tutorial in the next couple of days; I know the build
system for libdiscferret is a bit crap, but it works fairly well...
Debian and RPM packages are next on my "to do" list, after the tutorial,
and testing on BSD and Windows.
Thanks,
--
Phil.
classiccmp at philpem.me.uk
http://www.philpem.me.uk/