Author Topic: Help Needed Compiling Gphoto2  (Read 12826 times)

merli

  • Full Member
  • ***
  • Posts: 227
    • View Profile
    • http://
Help Needed Compiling Gphoto2
« Reply #15 on: March 23, 2006, 07:24:39 am »
Quote
Quote
Updated post ... please read.
I compiled libreadline in some other project, and from that time I have it on Z :-) and compile with it. Anyway my cam seems working without hotplug files. If you post them I will repackage libreadline2 ipk.
OK, I removed my hotplug stuff and installed your updated libgphoto2 and gphoto2 still works nicely.

It begs the question WTF are the hotplug files for?

-- cheers
[div align=\"right\"][a href=\"index.php?act=findpost&pid=119923\"][{POST_SNAPBACK}][/a][/div]

I'm glad it works ... I will upload packages to contrib :-)
merli
------
SL-C1000 - pdaxii13 5.3.3 but considering go back to beta1
Wifi D-link DCF-650W CF card - not using
bluetooth Billionton BT CF card and Samsung SGH-i310 GPRS
Pretec Cheetah 133x 4GB SD, Pretec Cheetah 80x 1GB CF

vimes

  • Newbie
  • *
  • Posts: 27
    • View Profile
    • http://www.morpork.org/
Help Needed Compiling Gphoto2
« Reply #16 on: March 26, 2006, 11:54:51 am »
Thank you both so much for gphoto and gthumb...
zaurus -> usb -> canon powershot g5
it just works, gthumb can see the camera and download the piccies...
what more could I ask


(crappy piccy from phone camera added just to prove the point
 [ Invalid Attachment ]
C3000 - Debian EABI - Kernel 2.6.23 of Angstrom

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Help Needed Compiling Gphoto2
« Reply #17 on: March 27, 2006, 12:09:24 pm »
Thanks Chero, gthumbs and gphoto2 works fine together - I'm able to download photos from my camera.

BUT the odd thing is that once gthumbs has downloaded the photos (it auto creates a directory with a name based on the current date/time), it doesn't "see" the photos in the newly created directory. The files are there and are viewable in eg xzgv. In fact it doesn't recognise any image files in any of my directories.

Any ideas?
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Help Needed Compiling Gphoto2
« Reply #18 on: March 27, 2006, 03:20:43 pm »
Quote
Thanks Chero, gthumbs and gphoto2 works fine together - I'm able to download photos from my camera.

BUT the odd thing is that once gthumbs has downloaded the photos (it auto creates a directory with a name based on the current date/time), it doesn't "see" the photos in the newly created directory. The files are there and are viewable in eg xzgv. In fact it doesn't recognise any image files in any of my directories.

Any ideas?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=120497\"][{POST_SNAPBACK}][/a][/div]

I don't have a clue.

I installed to / cause I had a broken lib when running from /mnt/ide, maybe that's why ?
HP-95LX -> HP Jornada 680 -> SL-C860 -> SL-C3100 -> Fuji u810 -> SL-C1000 -> HTC uni -> SL-C860 -> SL-C760.
March 12 2009 : Back because the Zaurus is one of a kind.
SL-C760 : pdaXrom
Pandora pre-ordered -> received and tested : great device but not my cup of tea -> sold.

flyvholm

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • http://
Help Needed Compiling Gphoto2
« Reply #19 on: June 21, 2006, 03:08:31 am »
New versions of gphoto2 and libgphoto2 are out. I am new to cross compiling and have no luck. I can't seem to explain to ./configure where to find usb.h:
Quote
checking for LIBUSB... yes
checking usb.h usability... no
checking usb.h presence... no
checking for usb.h... no
configure: error:
PKG_CONFIG_PATH=/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/lib/pkgconfig
LIBUSB_LIBS=-lusb
LIBUSB_CFLAGS=

* Fatal: libgphoto2_port by default requires libusb >= 0.1.5 to build.
File usb.h can be found at
/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/include/linux/usb.h
and I've tried using ./configure with both
--x-includes=/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/include
--x-includes=/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/include/linux
to no avail. How do I make ./configure recognize it?
SL-C1000, pdaXrom 1.1.0beta1
Ubuntu 6.06 (Dapper) on Compaq R3000Z

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Help Needed Compiling Gphoto2
« Reply #20 on: June 21, 2006, 03:22:17 am »
Quote
New versions of gphoto2 and libgphoto2 are out. I am new to cross compiling and have no luck. I can't seem to explain to ./configure where to find usb.h:
Quote
checking for LIBUSB... yes
checking usb.h usability... no
checking usb.h presence... no
checking for usb.h... no
configure: error:
PKG_CONFIG_PATH=/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/lib/pkgconfig
LIBUSB_LIBS=-lusb
LIBUSB_CFLAGS=

* Fatal: libgphoto2_port by default requires libusb >= 0.1.5 to build.
File usb.h can be found at
/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/include/linux/usb.h
and I've tried using ./configure with both
--x-includes=/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/include
--x-includes=/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/include/linux
to no avail. How do I make ./configure recognize it?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=132136\"][{POST_SNAPBACK}][/a][/div]

you need to compile and install libusb
the usb.h you found is the usb header for the usb kernel. you need the usb.h for the user mode usb library.
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

flyvholm

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • http://
Help Needed Compiling Gphoto2
« Reply #21 on: June 21, 2006, 12:24:26 pm »
Thanks a lot for clarifying. Now I added libusb (new v.0.1.12) and libexif to my cross compiling environment using:
Quote
CC=gcc CXX=g++ F77=g77 ./configure --host=armv5tel-cacko-linux --build=i686-linux prefix=/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux
This didn't work with libgphoto2. ./configure completes, but then running make I get:
Quote
gcc -g -O2 -Wall -g -o .libs/test-gp-port test_gp_port-test-gp-port.o  ../libgphoto2_port/.libs/libgphoto2_port.so ../libltdl/.libs/libltdlc.a -ldl -Wl,--rpath -Wl,/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/lib
../libltdl/.libs/libltdlc.a: could not read symbols: Archive has no index; run ranlib to add one
Running ranlib (native or arm version) on libltdlc.a doesn't help.

Creating the libgphoto2 arm binaries by removing flags CC/CXX/F77/prefix fails already at ./configure:
Quote
checking for LIBUSB... yes
checking usb.h usability... yes
checking usb.h presence... yes
checking for usb.h... yes
checking for function usb_busses in libusb... no
configure: error:
PKG_CONFIG_PATH=/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/lib/pkgconfig
LIBUSB_LIBS=-L/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/lib -lusb
LIBUSB_CFLAGS=-I/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/include

* Fatal: libgphoto2_port by default requires libusb >= 0.1.5 to build.
What am I doing wrong?  
SL-C1000, pdaXrom 1.1.0beta1
Ubuntu 6.06 (Dapper) on Compaq R3000Z

cycle_55

  • Full Member
  • ***
  • Posts: 134
    • View Profile
Help Needed Compiling Gphoto2
« Reply #22 on: December 03, 2006, 07:00:39 pm »
Quote
Quote
I compiled gphoto2 and it seems to work for me with Canon S2 IS.
That's good, at least I know gphoto2 does work on the Z.

Quote
Enjoy them and give me feedback.
I notice that you've compiled it against a newer readline - it wants libreadline.so.5 and I've only got libreadline.so.4. As a quick and dirty fix I created a symlink. I also note that there is no usb.usermap so I ran /usr/lib/libgphoto2/print-usb-usermap, but that gave no output at all.

I'll play with it a bit more tomorrow.

Update
On further examination, I see that there is no provision for hotplug to recognise when a supported camera is plugged in. In my libgphoto2 package I have:

/etc/hotplug/usb.usermap which allows hotplug to recognise camera

and

/etc/hotplug/usb/usbcam which sets up correct permissions for camera

Both these files seems to be missing from your packages    I would appreciate it if you could post some info on how to your packages to work  


Update
I copied the above 2 missing files from my own package, now hotplug detects camera and does the right thing. However now gphoto2 is looking for the libgphoto2 stuff in /home/root   ! I created some suitable symlinks and now gphoto2 works - thanks Merli.

Is it possible for you to repackage your stuff (it probably only involves libgphoto2) so that:

1) it includes the hotplug stuff
2) looks for the libgphoto2 stuff in the right place

If you don't have the time or inclination could you please tell me:

1) what ./configure options you used on all the packages
2) and any other particular tweaks/patches/fixes etc you had to use

Also any reason why you used readline 5.X? Even 1.10beta2 still use readline 4.3 (same as 1.10beta1).

-- cheers
[div align=\"right\"][a href=\"index.php?act=findpost&pid=119666\"][{POST_SNAPBACK}][/a][/div]


Would you be able to tell me where I can get libreadline.so.4? Thanks.

cycle_55
C3100,  1.1.0beta3, Rox, Ambicom WL100C-CF wireless , Buffalo ethernet