Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Oct 2000 20:47:07 -0700 (MST)
From:      John Reynolds <jjreynold@home.com>
To:        richard@cogsci.ed.ac.uk
Cc:        multimedia@freebsd.org, usb-bsd@egroups.com
Subject:   Re: gPhoto2 / USB
Message-ID:  <14813.19259.900762.840486@whale.home-net>
In-Reply-To: <14813.3511.966890.611822@hip186.ch.intel.com>
References:  <14813.3511.966890.611822@hip186.ch.intel.com>

next in thread | previous in thread | raw e-mail | index | archive | help

> [ Richard Tobin said: ]
>
> No-one responded to my question as to whether gPhoto's "libusb" had
> been ported to FreeBSD, so I've done it myself, at least to the
> extent of being able to download images from a Canon S10 camera.
> You can find the code at
> 
>   ftp://ftp.cogsci.ed.ac.uk/pub/richard/libusb/
> 
> Other relevant URLs:
> 
>   http://libusb.sourceforge.net/
>   http://www.gphoto.org/
> 

Hi Richard. I mailed you earlier from another account. I'm having difficulty in
getting your patch and freebsd.c file to work. I downloaded libusb-0.1.1.tar.gz
from the source forge site, used patch to patch the usbi.h with your diff and
placed the freebsd.c file into the same directory in which the files were
untared to.

Then I used the configure script with no arguments. When it finishes, I use
gmake and get the following:

root@whale [/packages/libusb-0.1.1]<107># gmake
Makefile:549: *** missing separator.  Stop.

So, I inspect the Makefile at that line and see:

     548 libusb-config: libusb-config.in
     549   if FREEBSD
     550   OS_SUPPORT = freebsd.c
     551   else
     552   OS_SUPPORT = 
     553   endif

it is missing TAB characters as the first char. I change that and still no
dice.

I've even tried manually compiling the freebsd.c source file and it only gives
me errors:

   root@whale [/packages/libusb-0.1.1]<130># gcc -c freebsd.c 
   freebsd.c: In function `usb_os_open':
   freebsd.c:48: structure has no member named `filename'
   freebsd.c:51: structure has no member named `filename'
   freebsd.c:55: structure has no member named `filename'
   freebsd.c: In function `usb_bulk_read':
   freebsd.c:165: structure has no member named `filename'
   freebsd.c: In function `usb_find_devices_on_bus':
   freebsd.c:240: structure has no member named `dirname'
   freebsd.c:242: structure has no member named `dirname'
   freebsd.c:290: structure has no member named `filename'
   freebsd.c:306: structure has no member named `filename'
   freebsd.c:306: structure has no member named `dirname'
   freebsd.c: In function `usb_find_busses':
   freebsd.c:342: structure has no member named `dirname'
   freebsd.c:351: structure has no member named `dirname'
   
So, what version of libusb did you get to work? 0.1.1 or 0.1.0? What version of
FreeBSD was this done under? -current? I'm running 4.1-STABLE on this machine
right now. Did you have to hack and compile each file individually then link
them together into a .a/.so file by hand or did the configure script give you a
Makefile that actually worked?

Thanks for your efforts thus far. I've got the same Canon S10 camera you do and
I'm just DYING to try out USB under FreeBSD with it. Serial is just deathly
slow (compared to when I reboot into Wincrap and use USB there). 

Help me iron these kinks out. Then we can submit the diffs to the libusb
folks. 

On a slightly different subject, I checked out the latest source code for
gPhoto2 and it doesn't appear by any stretch of the imagination that "libusb"
is part of gPhoto2. They seem completely disjoint. Comments?

Thanks,

-Jr

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
John Reynolds         Chandler Capabilities Engineering, CDS, Intel Corporation
jreynold@sedona.ch.intel.com  My opinions are mine, not Intel's. Running
jjreynold@home.com          FreeBSD 4.1-STABLE. FreeBSD: The Power to Serve.
http://members.home.com/jjreynold/  Come join us!!! @ http://www.FreeBSD.org/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-multimedia" in the body of the message




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