LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Trying to get camera to work? (https://www.linuxquestions.org/questions/slackware-14/trying-to-get-camera-to-work-235577/)

BajaNick 09-26-2004 09:28 PM

Trying to get camera to work?
 
Trying to get kodak digital camera to work. I downloaded gphoto and libphoto 2.1.4 and when try to configure gphoto i get this:

checking for libgphoto2 >= 2.1.2... Package libgphoto2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libgphoto2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libgphoto2' found

configure: error: Library requirements (libgphoto2 >= 2.1.2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

How do i add the directory containing libgphoto2.pc the the PKG_CONFIG_PATH?
How do i adjust PKG_CONFIG_PATH environment variable? and why would mine be in a nonstandard prefix?

Thanks for any help.

Nikon01 09-26-2004 10:19 PM

What are you trying to do? Are you just trying to pull images off the camera? If so I would think it would work just like a usb hard drive(just have to add it to your fstab)...

WMD 09-26-2004 10:33 PM

Gphoto...hah, nice. Ok, what really works: ;)

1. do modprobe usb-storage
2. add this line to fstab:
Code:

/dev/sda1    /mnt/camera    vfat    defaults,user  0 0
3. Then do: mkdir /mnt/camera, mount /dev/sda1

That should have the camera mounted. Just copy files from there...

BajaNick 09-26-2004 10:45 PM

Yea, I am just trying to get images off the camera.
I will give that a try

Thanks

BajaNick 09-26-2004 10:55 PM

Quote:

Originally posted by WMD
Gphoto...hah, nice. Ok, what really works: ;)

1. do modprobe usb-storage
2. add this line to fstab:
Code:

/dev/sda1    /mnt/camera    vfat    defaults,user  0 0
3. Then do: mkdir /mnt/camera, mount /dev/sda1

That should have the camera mounted. Just copy files from there...

Tried that and I keep getting : /dev/sda1 is not a valid block device

snop 09-27-2004 01:58 AM

Hi,

Cameras can work in two (standard) ways :

- Mass storage (then it can be mounted as WMD suggested).
- PTP (then I think the only way to go is libgphoto).

I own a Coolpix 2000 that can operate either using Mass storage or PTP (it has to be configured properly through camera's menu).

I tried both mass storage and ptp methods. Mass storage is plain easy but it's broken for my camera in kernel 2.6.x series. It's a known bug.

On the other side libgphoto was a pain in the ass to set up. You have to deal with hotplug (which I disabled) and so on. You should check libgphoto homepage for instructions (http://gphoto.org/doc/manual/permissions-usb.html).

I think I had to compile libgphoto using --prefix=/usr when configuring. So the steps were:
./configure --prefix=/usr
make
make install (I recommend using a nice utility called checkinstall instead of make install).

Then the same steps must be followed to compile gphoto.

All in all I was able to read photos from my camera but gphoto frontend is quite unstable for me.

It's too hard yet to set up this kind of things. Should be easier.

Bye

SnOp

gbonvehi 09-27-2004 02:04 AM

Or you can get a precompiled package from: http://www.linuxpackages.net/search_...photo&ver=10.0

slackist 09-27-2004 06:36 AM

I had the same probs compiling gphoto, try this:

export PKG_CONFIG_PATH=/usr/local/libgphoto2-2.1.4/libgphoto2/

or the same command but pointing to whatever directory holds libgphoto2.pc

HTH,
Mark

BajaNick 09-28-2004 12:13 AM

I just want to pull pics off my camera. Do I really need gphoto? I tried setting up fstab and all that but keep getting : /dev/sda1 is not a valid block device.

JohnKFT 09-28-2004 05:33 PM

This may sound silly but is the camera plugged into the computer? That cryptic phrase about not being a valid block device usually means there is no medium plugged in - no disk or whatever. There is a website somewhere that lists all cameras known to work with usb mass storage but I do not seem to have the link. Try googling for "usb mass storage" or look at the Linux USB guide (also on the net somewhere). Usb mass storage is great - so simple - just like using a floppy or CD.

Correct my last - much easier than a CD as you can write to it as easily as a floppy. My wife keeps copies of all her work files in her camera.

BajaNick 09-28-2004 09:51 PM

I have the USB port working, the usb module loaded, everything is hooked up. :(
I do mount -t vfat /dev/sda1 /mnt/camera and I still get "invalid block device" could it be that I should be using something other that /dev/sda1? why would I use a scssi device setting for a digital camera?

gbonvehi 09-28-2004 09:58 PM

You can try using gphoto precompiled from linuxpackages.net.

And see if this helps: http://www.linux.com/howtos/Kodak-Di...TO/index.shtml

There you have a detailed how-to, be sure to read if carefully

trickykid 09-28-2004 10:34 PM

Quote:

Originally posted by BajaNick
I have the USB port working, the usb module loaded, everything is hooked up. :(
I do mount -t vfat /dev/sda1 /mnt/camera and I still get "invalid block device" could it be that I should be using something other that /dev/sda1? why would I use a scssi device setting for a digital camera?

After you plug your device in, run dmesg and see if it outputs your camera there. Should be near bottom, etc.

If its detecting it and loading the module, find out what the actual device is. Do you have any other scsi devices? If not, are you using the default Slackware kernel with SCSI support or a custom compiled kernel? If custom, do you have SCSI enabled? If not, that's your problem, recompile your kernel.

If you do have SCSI support, do you really have libphoto2 installed? After installation of it did you update your library shared links with a ldconfig command?

Any more details helps out..

BajaNick 09-28-2004 11:16 PM

This is what I get with dmesg but I dont know if this is after I plugged in the camera or if this was already there. I will try it again after I reboot. I dont know what most of this means. I am using a 4 port usb hub. Would dmesg change after I unplug the camera or any usb device? I do see an error on first line.

Thanks. :)

usbdevfs: remount parameter error
hub.c: new USB device 00:1f.2-2.1, assigned address 3
usb.c: USB device 3 (vend/prod 0x46d/0xc214) is not claimed by any active driver.
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
usb.c: USB disconnect on device 00:1f.2-2.1 address 3
hub.c: new USB device 00:1f.2-2.2, assigned address 4
usb.c: USB device 4 (vend/prod 0x46d/0xc214) is not claimed by any active driver.
usb.c: USB disconnect on device 00:1f.2-2.2 address 4
hub.c: new USB device 00:1f.2-2.3, assigned address 5
usb.c: USB device 5 (vend/prod 0x46d/0xc214) is not claimed by any active driver.
usb.c: USB disconnect on device 00:1f.2-2.3 address 5
hub.c: new USB device 00:1f.2-2.1, assigned address 6
usb.c: USB device 6 (vend/prod 0x46d/0xc214) is not claimed by any active driver.

BajaNick 09-28-2004 11:21 PM

Yes, I am using the default Slack install with scssi enabled.
and I did run ldconfig.
I just disconnected the camera and ran dmesg then connected it and ran it again and there is no difference in the output of dmesg.


All times are GMT -5. The time now is 07:37 PM.