Needed to compile the package:
libusb
http://ftp.cn.debian.org/debian/pool/main/libu/libusb/libusb_0.1.12.orig.tar.gz
libtool
http://ftp.cn.debian.org/debian/pool/main/libt/libtool/libtool_2.4.orig.tar.gz
popt
http://ftp.cn.debian.org/debian/pool/main/p/popt/popt_1.16.orig.tar.gz
libgphoto2
http://ftp.cn.debian.org/debian/pool/main/libg/libgphoto2/libgphoto2_2.4.11.orig.tar.gz
gphoto2
http://ftp.cn.debian.org/debian/pool/main/g/gphoto2/gphoto2_2.4.11.orig.tar.gz
fuse
http://ftp.cn.debian.org/debian/pool/main/f/fuse/fuse_2.8.5.orig.tar.gz
gphotofs
http://ftp.cn.debian.org/debian/pool/main/g/gphotofs/gphotofs_0.4.0.orig.tar.gz
First, create your own program directory, such as: mkdir / home / download more than required under the package to / home / gphoto directory gphoto
Create your own installation directory, such as: mkdir / home / install
Creating compiler environment variables, / home / arm / cross-tool / bin to replace your ARM cross compiler tool path
export PATH=$PATH:/home/arm/cross-tool/bin
export gp_dir=/home/gphoto/install
export myhost=arm-none-linux-gnueabi
1. compile libusb
cd / home / GPhoto
tar xvf libusb_0.1.12.orig.tar.gz
cd libusb-0.1.12
./configure --prefix=$gp_dir --host=$myhost
make
make install
2. Compile libtool
cd / home / GPhoto
tar xvf libtool_2.4.orig.tar.gz
cd libtool-2.4
./configure --prefix=$gp_dir --host=$myhost
make
make install
3. Compile popt
cd / home / GPhoto
tar xvf popt_1.16.orig.tar.gz
cd popt-1.16
./configure --prefix=$gp_dir --host=$myhost
make
make install
4. Compile libgphoto2
cd / home / GPhoto
tar xvf libgphoto2_2.4.11.orig.tar.gz
cd libgphoto2-2.4.11
./configure --prefix=$gp_dir --host=$myhost \
LDFLAGS='-ldl' \
LIBLTDL=$gp_dir/lib/libltdl.a \
LTDLINCL=-I$gp_dir/include/ \
LIBUSB_LIBS=$gp_dir/lib/libusb.a \
LIBUSB_CFLAGS=-I$gp_dir/include/ \
--with-libexif=no
make
make install
5. Compile gphoto2
cd / home / GPhoto
tar xvf gphoto2_2.4.11.orig.tar.gz
cd gphoto2-2.4.11
./configure --prefix=$gp_dir --host=$myhost \
LDFLAGS='-ldl' \
POPT_CFLAGS=-I$gp_dir/include/ \
POPT_LIBS="-L$gp_dir/lib/ -lpopt" \
LIBLTDL=$gp_dir/lib/libltdl.a \
LTDLINCL=-I$gp_dir/include/ \
LIBUSB_LIBS=$gp_dir/lib/libusb.a \
LIBUSB_CFLAGS=-I$gp_dir/include/ \
--with-libexif=no \
--with-libgphoto2=$gp_dir \
--without-cdk \
--without-readline \
--without-aalib \
--without-jpeg \
--without-pthread
make
make install
6. Compile fuse
cd / home / GPhoto
tar xvf fuse_2.8.5.orig.tar.gz
cd fuse-2.8.5
./configure --prefix=$gp_dir --host=$myhost
make
make install