Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How-to: Canon S50 Digital camera and Gentoo!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
zakl
n00b
n00b


Joined: 09 May 2003
Posts: 73

PostPosted: Sun Oct 05, 2003 7:38 pm    Post subject: How-to: Canon S50 Digital camera and Gentoo! Reply with quote

After some playing around and trying different things and searching forums, this is how I got my Canon S50 digital camera to work. This method will work for a LOT of other digital cameras too, check out http://www.gphoto.org/proj/libgphoto2/support.php to see if your camera is supported.

First, I built my kernel(MM-sources 2.6.0 Beta 6 R2) with the proper options. You will need to enable(as built-in or module, I use built-in):

USB support
USB Mass Storage(not sure if it's needed for this cam or not, but it's enabled so I listed it)

Second, you need GTKam, GPhoto2, and last, libgphoto2 >= 2.1.2. I emerged the latest version myself. As of now, portage does not emerge the 2.1.2 version of libgphoto2, so you will need to do it manually since it's masked.

Code:
# emerge gtkam gphoto2
# cd /usr/portage/media-libs/libgphoto2/
#emerge libgphoto2-2.1.2-r1.ebuild


Start gtkam as root (or refer to the link in the post below which goes to the gphoto USB permissions how-to)

Click Camera --> Add Camera --> click the drop down menu, and select your camera --> click ok, and your set.

Your camera will appear in the left window pane of gtkam, and you can navigate the menu's there to see your pics.

Have fun!

By the way, through reading the online doc's for gphoto2, I found that there are also two 3rd party front-ends(gtkam) for gphoto2... flPhoto, and digikam. I haven't tried these, but I am going to just to see how they are.
_________________
Zak

Gentoo Linux * EPoX 8KHA+ * Athlon XP 1700+ * 768MB PC2100 * IBM 40GB for OS's, WD 120GB for storage * SB Audigy Platinum on emu10k1-cvs drivers * Radeon 8500 64MB on latest XFree-DRM driver


Last edited by zakl on Wed Oct 15, 2003 10:01 am; edited 4 times in total
Back to top
View user's profile Send private message
Ian
l33t
l33t


Joined: 28 Oct 2002
Posts: 834
Location: Somerville, MA

PostPosted: Mon Oct 06, 2003 1:21 am    Post subject: Reply with quote

I'm going to try this with my S45, I assume it'll work.

If not, I can always keep using my USB compact flash reader ;).

To the USB write permissions, ripped from my fstab...

Code:
/dev/sda1               /mnt/flash      vfat            noauto,rc,users,rw,gid=users,uid=ian    0 0


You want, specifically, "users" (allows the group "users" to mount/umount), "gid=users" (sets group to "users") and "uid=<username here>" (sets user). That's very important, for any Fat32 filesystem, otherwise the permissions will default to root.
Back to top
View user's profile Send private message
Ian
l33t
l33t


Joined: 28 Oct 2002
Posts: 834
Location: Somerville, MA

PostPosted: Mon Oct 06, 2003 2:13 am    Post subject: Reply with quote

Hmm, doesn't appear to work, unless I missed something.

Gives an error about not finding folders in '/', and "could not initalize camera".

Any ideas?
Back to top
View user's profile Send private message
zakl
n00b
n00b


Joined: 09 May 2003
Posts: 73

PostPosted: Mon Oct 06, 2003 4:05 am    Post subject: Reply with quote

I got that same exact error when I ran gtkam as a non-root user. After I ran gtkam as root, it worked like a charm.
_________________
Zak

Gentoo Linux * EPoX 8KHA+ * Athlon XP 1700+ * 768MB PC2100 * IBM 40GB for OS's, WD 120GB for storage * SB Audigy Platinum on emu10k1-cvs drivers * Radeon 8500 64MB on latest XFree-DRM driver
Back to top
View user's profile Send private message
Ian
l33t
l33t


Joined: 28 Oct 2002
Posts: 834
Location: Somerville, MA

PostPosted: Mon Oct 06, 2003 12:36 pm    Post subject: Reply with quote

Yeah, I tried running that as root, got the same errors, again.

What I'm confused about, is how does it mount the camera, and where does it mount the camera?
Back to top
View user's profile Send private message
daen1543
Tux's lil' helper
Tux's lil' helper


Joined: 15 Feb 2003
Posts: 85
Location: Berkeley, CA, USA

PostPosted: Mon Oct 06, 2003 5:46 pm    Post subject: Reply with quote

Ian wrote:
Yeah, I tried running that as root, got the same errors, again.

What I'm confused about, is how does it mount the camera, and where does it mount the camera?
I have the same camera (S45), and the latest ~x86 version of [lib]gphoto is broken. Try the latest x86 release. Works without a problem for me. Gphoto2 doesn't "mount" the camera anywhere, it's sort of like ftp. I'd say it's not very useful from the command line - if you're a KDE user, I recommend the camera:/ Kioslave. (compile kdegraphics with gphoto2 in USE).
Back to top
View user's profile Send private message
gitarretyp
n00b
n00b


Joined: 22 Oct 2002
Posts: 36

PostPosted: Tue Oct 07, 2003 1:45 am    Post subject: Reply with quote

I also have an s50 and tried following zakl's instructions exactly; however, when i plug the camera in, i get: usb.c: USB device 2 (vend/prod 0x4a9/0x3077) is not claimed by any active driver.
Susequently, gtkam can not find the camera.

I'm using gentoo-sources-2.4.20-r7 and have usb support and usb mass storage support compiled in (i have not enabled any of the options under usb mass storage). Any ideas?
Back to top
View user's profile Send private message
daen1543
Tux's lil' helper
Tux's lil' helper


Joined: 15 Feb 2003
Posts: 85
Location: Berkeley, CA, USA

PostPosted: Tue Oct 07, 2003 2:03 am    Post subject: Reply with quote

gitarretyp, as stated above, I had the same problem with gphoto2-2.1.2 and libgphoto2-2.1.2-r1. Downgrading to gphoto2-2.1.1-r1 and libgphoto2-2.1.1-r2 fixed the problem.
Back to top
View user's profile Send private message
gitarretyp
n00b
n00b


Joined: 22 Oct 2002
Posts: 36

PostPosted: Tue Oct 07, 2003 3:07 am    Post subject: Reply with quote

Thanks for the suggestion, but 2.1.1 doesn't even support the s50.
Back to top
View user's profile Send private message
daen1543
Tux's lil' helper
Tux's lil' helper


Joined: 15 Feb 2003
Posts: 85
Location: Berkeley, CA, USA

PostPosted: Tue Oct 07, 2003 6:03 am    Post subject: Reply with quote

With gphoto2-2.1.1, could you try selecting PTP as the communications protocol on the camera and then
1) try gphoto2 --auto-detect -v
2) try gphoto2 --camera "USB PTP Class Camera" -v ?
Back to top
View user's profile Send private message
jaska
Bodhisattva
Bodhisattva


Joined: 06 Jun 2003
Posts: 725
Location: Finland

PostPosted: Mon Oct 13, 2003 3:30 pm    Post subject: Reply with quote

Quote:
>>> emerge (1 of 2) media-libs/libgphoto2-2.1.2-r1 to /
>>> md5 src_uri ;-) libgphoto2-2.1.2.tar.bz2
>>> Unpacking source...
>>> Unpacking libgphoto2-2.1.2.tar.bz2 to /var/tmp/portage/libgphoto2-2.1.2-r1/work
* Applying libgphoto2-2.1.2-norpm.patch... [ ok ]
* Applying libgphoto2-2.1.2-canon.patch...

* Failed Patch: libgphoto2-2.1.2-canon.patch!
*
* Include in your bugreport the contents of:
*
* /var/tmp/portage/libgphoto2-2.1.2-r1/temp/libgphoto2-2.1.2-canon.patch-17819.out


!!! ERROR: media-libs/libgphoto2-2.1.2-r1 failed.
!!! Function epatch, Line 354, Exitcode 0
!!! Failed Patch: libgphoto2-2.1.2-canon.patch!

I am losing my mind over this... Any suggestions?[/quote]
Back to top
View user's profile Send private message
Daren
n00b
n00b


Joined: 13 Oct 2003
Posts: 3

PostPosted: Mon Oct 13, 2003 6:48 pm    Post subject: Re: How-to: Canon S50 Digital camera and Gentoo! Reply with quote

zakl wrote:
Start gtkam as root (for now I haven't figured out how to set-up non-root write access permissions for USB, if you know how to do this, please post)


Hi,

With regard to the non-root issue, there is a walkthrough in the gphoto2 faq. - http://www.gphoto.org/doc/manual/permissions-usb.html - works like a charm.

HTH
Daren
Back to top
View user's profile Send private message
tojo
n00b
n00b


Joined: 09 Dec 2002
Posts: 72

PostPosted: Mon Oct 13, 2003 9:07 pm    Post subject: Reply with quote

Yeah, thanks! :)

I have canon powershot a70 and got this working like a snap. I commented out the canon patch from libgphoto2 ebuild.
Back to top
View user's profile Send private message
zakl
n00b
n00b


Joined: 09 May 2003
Posts: 73

PostPosted: Tue Oct 14, 2003 7:18 am    Post subject: Reply with quote

jaska wrote:
Quote:
>>> emerge (1 of 2) media-libs/libgphoto2-2.1.2-r1 to /
>>> md5 src_uri ;-) libgphoto2-2.1.2.tar.bz2
>>> Unpacking source...
>>> Unpacking libgphoto2-2.1.2.tar.bz2 to /var/tmp/portage/libgphoto2-2.1.2-r1/work
* Applying libgphoto2-2.1.2-norpm.patch... [ ok ]
* Applying libgphoto2-2.1.2-canon.patch...

* Failed Patch: libgphoto2-2.1.2-canon.patch!
*
* Include in your bugreport the contents of:
*
* /var/tmp/portage/libgphoto2-2.1.2-r1/temp/libgphoto2-2.1.2-canon.patch-17819.out


!!! ERROR: media-libs/libgphoto2-2.1.2-r1 failed.
!!! Function epatch, Line 354, Exitcode 0
!!! Failed Patch: libgphoto2-2.1.2-canon.patch!

I am losing my mind over this... Any suggestions?
[/quote]

Are you using the test kernel? I have found for some reason, a LOT of software fails to compile when I am running my MM-Sources 2.6.x test kernel. I don't know why, and haven't found a solution yet, but if you are running the developement kernel (2.6.x) then you could try booting back to an old 2.4.x stable kernel while you emerge the programs.

Update: I upgraded my kernel from MM 2.6.0 test6 R2 to the newer R4 kernel, and now I can compile everything like a charm. I'm installing the new Beta7-R1 release right now to see how it runs =D These new kernels are pretty darn cool.
_________________
Zak

Gentoo Linux * EPoX 8KHA+ * Athlon XP 1700+ * 768MB PC2100 * IBM 40GB for OS's, WD 120GB for storage * SB Audigy Platinum on emu10k1-cvs drivers * Radeon 8500 64MB on latest XFree-DRM driver
Back to top
View user's profile Send private message
knoxville
Tux's lil' helper
Tux's lil' helper


Joined: 04 Mar 2003
Posts: 96

PostPosted: Fri May 07, 2004 1:53 pm    Post subject: Reply with quote

can anyone help me with this? when i emerge i get this error

Code:
make[2]: *** [gtkam-chooser.o] Error 1
make[2]: *** Waiting for unfinished jobs....
gtkam-clock.c: In function `gtkam_clock_destroy':
gtkam-clock.c:66: warning: implicit declaration of function `gtk_timeout_remove'gtkam-clock.c: In function `on_forward_pressed':
gtkam-clock.c:256: warning: implicit declaration of function `gtk_timeout_add'
make[2]: Leaving directory `/var/tmp/portage/gtkam-0.1.10-r1/work/gtkam-0.1.10/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gtkam-0.1.10-r1/work/gtkam-0.1.10'
make: *** [all] Error 2
 
!!! ERROR: media-gfx/gtkam-0.1.10-r1 failed.
!!! Function src_compile, Line 51, Exitcode 2
!!! (no error message)


thanks in advance
Back to top
View user's profile Send private message
phreaqy
n00b
n00b


Joined: 03 May 2004
Posts: 16
Location: Canada

PostPosted: Sat May 29, 2004 6:19 pm    Post subject: Reply with quote

I get the same error as him, does anybody know hot to fix it?
_________________
AMD TBIRD 1.33
256 mb RAM
kenel 2.6.7-love2
Soundblaster 16 PCI
Nvidia GeForce 3 Ti
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum