I download libgphoto2-2.5.6 compile and install it. those lib will be installed to /usr/local/lib
when I compile gphotofs-0.5 with configure and make it compained can not found he?
~/gphotofs-0.5$ make
make all-recursive
make[1]: Entering directory /home/vip/Downloads/gphotofs-0.5'
Making all in m4m
make[2]: Entering directory
/home/vip/Downloads/gphotofs-0.5/m4m'
make[2]: Nothing to be done for all'.
make[2]: Leaving directory
/home/vip/Downloads/gphotofs-0.5/m4m'
make[2]: Entering directory /home/vip/Downloads/gphotofs-0.5'
/bin/bash ./libtool --tag=CC --mode=link gcc -g -O2 -L/usr/local/lib/ -o gphotofs gphotofs-gphotofs.o -pthread -lfuse -lglib-2.0
libtool: link: gcc -g -O2 -o gphotofs gphotofs-gphotofs.o -pthread -L/usr/local/lib/ -lfuse -lglib-2.0 -pthread
gphotofs-gphotofs.o: In function
gphotofs_destroy':
/home/vip/Downloads/gphotofs-0.5/gphotofs.c:816: undefined reference to gp_abilities_list_free'
/home/vip/Downloads/gphotofs-0.5/gphotofs.c:819: undefined reference to
gp_camera_unref'
/home/vip/Downloads/gphotofs-0.5/gphotofs.c:822: undefined reference to `gp_context_unref'
uname -a
Linux vip-Inspiron-N4030 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.2-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
can you attachj config.log ... it somehow leaves out the library -lgphoto2 :/
$ ./configure
---------
Platform.
---------
hostname = vip-Inspiron-N4030
uname -m = x86_64
uname -r = 3.13.0-32-generic
uname -s = Linux
uname -v = #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /usr/local/games
-----------
Core tests.
-----------
configure:2414: checking for a BSD-compatible install
configure:2482: result: /usr/bin/install -c
configure:2493: checking whether build environment is sane
configure:2543: result: yes
configure:2684: checking for a thread-safe mkdir -p
configure:2723: result: /bin/mkdir -p
configure:2736: checking for gawk
configure:2752: found /usr/bin/gawk
configure:2763: result: gawk
configure:2774: checking whether make sets $(MAKE)
configure:2796: result: yes
configure:2901: checking for POSIX sh $() command substitution
configure:2905: result: yes
configure:2977: checking for gcc
configure:2993: found /usr/bin/gcc
configure:3004: result: gcc
configure:3233: checking for C compiler version
configure:3242: gcc --version >&5
gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:3253: $? = 0
configure:3242: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.2-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
configure:3253: $? = 0
configure:3242: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3253: $? = 4
configure:3242: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:3253: $? = 4
configure:3273: checking whether the C compiler works
configure:3295: gcc conftest.c >&5
configure:3299: $? = 0
configure:3347: result: yes
configure:3350: checking for C compiler default output file name
configure:3352: result: a.out
configure:3358: checking for suffix of executables
configure:3365: gcc -o conftest conftest.c >&5
configure:3369: $? = 0
configure:3391: result:
configure:3413: checking whether we are cross compiling
configure:3421: gcc -o conftest conftest.c >&5
configure:3425: $? = 0
configure:3432: ./conftest
configure:3436: $? = 0
configure:3451: result: no
configure:3456: checking for suffix of object files
configure:3478: gcc -c conftest.c >&5
configure:3482: $? = 0
configure:3503: result: o
configure:3507: checking whether we are using the GNU C compiler
configure:3526: gcc -c conftest.c >&5
configure:3526: $? = 0
configure:3535: result: yes
configure:3544: checking whether gcc accepts -g
configure:3564: gcc -c -g conftest.c >&5
configure:3564: $? = 0
configure:3605: result: yes
configure:3622: checking for gcc option to accept ISO C89
configure:3686: gcc -c -g -O2 conftest.c >&5
configure:3686: $? = 0
configure:3699: result: none needed
configure:3730: checking for style of include used by make
configure:3758: result: GNU
configure:3783: checking dependency style of gcc
configure:3893: result: gcc3
configure:3913: checking how to run the C preprocessor
configure:3944: gcc -E conftest.c
configure:3944: $? = 0
configure:3958: gcc -E conftest.c
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
#include <ac_nonexistent.h>
^
compilation terminated.
configure:3958: $? = 1
configure: failed program was:
| / confdefs.h /
| #define PACKAGE_NAME "gphoto filesystem"
| #define PACKAGE_TARNAME "gphotofs"
| #define PACKAGE_VERSION "0.5"
| #define PACKAGE_STRING "gphoto filesystem 0.5"
| #define PACKAGE_BUGREPORT "gphoto-devel@lists.sourceforge.net"
| #define PACKAGE_URL ""
| #define PACKAGE "gphotofs"
| #define VERSION "0.5"
| / end confdefs.h. /
| #include <ac_nonexistent.h>
configure:3983: result: gcc -E
configure:4003: gcc -E conftest.c
configure:4003: $? = 0
configure:4017: gcc -E conftest.c
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
#include <ac_nonexistent.h>
^
compilation terminated.
configure:4017: $? = 1
configure: failed program was:
| / confdefs.h /
| #define PACKAGE_NAME "gphoto filesystem"
| #define PACKAGE_TARNAME "gphotofs"
| #define PACKAGE_VERSION "0.5"
| #define PACKAGE_STRING "gphoto filesystem 0.5"
| #define PACKAGE_BUGREPORT "gphoto-devel@lists.sourceforge.net"
| #define PACKAGE_URL ""
| #define PACKAGE "gphotofs"
| #define VERSION "0.5"
| / end confdefs.h. /
| #include <ac_nonexistent.h>
configure:4074: checking build system type
configure:4088: result: x86_64-unknown-linux-gnu
configure:4108: checking host system type
configure:4121: result: x86_64-unknown-linux-gnu
configure:4141: checking for a sed that does not truncate output
configure:4205: result: /bin/sed
configure:4223: checking for grep that handles long lines and -e
configure:4281: result: /bin/grep
configure:4286: checking for egrep
configure:4348: result: /bin/grep -E
configure:4353: checking for fgrep
configure:4415: result: /bin/grep -F
configure:4450: checking for ld used by gcc
configure:4517: result: /usr/bin/ld
configure:4524: checking if the linker (/usr/bin/ld) is GNU ld
configure:4539: result: yes
configure:4551: checking for BSD- or MS-compatible name lister (nm)
configure:4600: result: /usr/bin/nm -B
configure:4718: checking the name lister (/usr/bin/nm -B) interface
configure:4725: gcc -c -g -O2 conftest.c >&5
configure:4728: /usr/bin/nm -B "conftest.o"
configure:4731: output
0000000000000000 B some_variable
configure:4738: result: BSD nm
configure:4741: checking whether ln -s works
configure:4745: result: yes
configure:4753: checking the maximum length of command line arguments
configure:4873: result: 1572864
configure:4890: checking whether the shell understands some XSI constructs
configure:4900: result: yes
configure:4904: checking whether the shell understands "+="
configure:4910: result: yes
configure:4945: checking for /usr/bin/ld option to reload object files
configure:4952: result: -r
configure:5021: checking for objdump
configure:5037: found /usr/bin/objdump
configure:5048: result: objdump
configure:5080: checking how to recognize dependent libraries
configure:5276: result: pass_all
configure:5336: checking for ar
configure:5352: found /usr/bin/ar
configure:5363: result: ar
configure:5441: checking for strip
configure:5457: found /usr/bin/strip
configure:5468: result: strip
configure:5540: checking for ranlib
configure:5556: found /usr/bin/ranlib
configure:5567: result: ranlib
configure:5657: checking command to parse /usr/bin/nm -B output from gcc object
configure:5775: gcc -c -g -O2 conftest.c >&5
configure:5778: $? = 0
configure:5782: /usr/bin/nm -B conftest.o \| sed -n -e 's/^.[ ]([ABCDGIRSTW][ABCDGIRSTW])[ ][ ]([_A-Za-z][_A-Za-z0-9])$/\1 \2 \2/p' > conftest.nm
configure:5785: $? = 0
configure:5839: gcc -o conftest -g -O2 conftest.c conftstm.o >&5
configure:5842: $? = 0
configure:5880: result: ok
configure:5976: gcc -c -g -O2 conftest.c >&5
configure:5979: $? = 0
configure:6685: checking for ANSI C header files
configure:6705: gcc -c -g -O2 conftest.c >&5
configure:6705: $? = 0
configure:6778: gcc -o conftest -g -O2 conftest.c >&5
configure:6778: $? = 0
configure:6778: ./conftest
configure:6778: $? = 0
configure:6789: result: yes
configure:6802: checking for sys/types.h
configure:6802: gcc -c -g -O2 conftest.c >&5
configure:6802: $? = 0
configure:6802: result: yes
configure:6802: checking for sys/stat.h
configure:6802: gcc -c -g -O2 conftest.c >&5
configure:6802: $? = 0
configure:6802: result: yes
configure:6802: checking for stdlib.h
configure:6802: gcc -c -g -O2 conftest.c >&5
configure:6802: $? = 0
configure:6802: result: yes
configure:6802: checking for string.h
configure:6802: gcc -c -g -O2 conftest.c >&5
configure:6802: $? = 0
configure:6802: result: yes
configure:6802: checking for memory.h
configure:6802: gcc -c -g -O2 conftest.c >&5
configure:6802: $? = 0
configure:6802: result: yes
configure:6802: checking for strings.h
configure:6802: gcc -c -g -O2 conftest.c >&5
configure:6802: $? = 0
configure:6802: result: yes
configure:6802: checking for inttypes.h
configure:6802: gcc -c -g -O2 conftest.c >&5
configure:6802: $? = 0
configure:6802: result: yes
configure:6802: checking for stdint.h
configure:6802: gcc -c -g -O2 conftest.c >&5
configure:6802: $? = 0
configure:6802: result: yes
configure:6802: checking for unistd.h
configure:6802: gcc -c -g -O2 conftest.c >&5
configure:6802: $? = 0
configure:6802: result: yes
configure:6816: checking for dlfcn.h
configure:6816: gcc -c -g -O2 conftest.c >&5
configure:6816: $? = 0
configure:6816: result: yes
configure:7000: checking for objdir
configure:7015: result: .libs
configure:7311: checking if gcc supports -fno-rtti -fno-exceptions
configure:7329: gcc -c -g -O2 -fno-rtti -fno-exceptions conftest.c >&5
cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C [enabled by default]
configure:7333: $? = 0
configure:7346: result: no
configure:7366: checking for gcc option to produce PIC
configure:7638: result: -fPIC -DPIC
configure:7650: checking if gcc PIC flag -fPIC -DPIC works
configure:7668: gcc -c -g -O2 -fPIC -DPIC -DPIC conftest.c >&5
configure:7672: $? = 0
configure:7685: result: yes
configure:7709: checking if gcc static flag -static works
configure:7737: result: yes
configure:7752: checking if gcc supports -c -o file.o
configure:7773: gcc -c -g -O2 -o out/conftest2.o conftest.c >&5
configure:7777: $? = 0
configure:7799: result: yes
configure:7807: checking if gcc supports -c -o file.o
configure:7854: result: yes
configure:7887: checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries
configure:8874: result: yes
configure:8911: checking whether -lc should be explicitly linked in
configure:8916: gcc -c -g -O2 conftest.c >&5
configure:8919: $? = 0
configure:8934: gcc -shared conftest.o -v -Wl,-soname -Wl,conftest -o conftest 2>\&1 \| /bin/grep -lc >/dev/null 2>\&1
configure:8937: $? = 0
configure:8949: result: no
configure:9113: checking dynamic linker characteristics
configure:9546: gcc -o conftest -g -O2 -Wl,-rpath -Wl,/foo conftest.c >&5
configure:9546: $? = 0
configure:9764: result: GNU/Linux ld.so
configure:9866: checking how to hardcode library paths into programs
configure:9891: result: immediate
configure:10411: checking whether stripping libraries is possible
configure:10416: result: yes
configure:10451: checking if libtool supports shared libraries
configure:10453: result: yes
configure:10456: checking whether to build shared libraries
configure:10477: result: yes
configure:10480: checking whether to build static libraries
configure:10484: result: yes
configure:10521: checking whether gcc and cc understand -c and -o together
configure:10552: gcc -c conftest.c -o conftest2.o >&5
configure:10556: $? = 0
configure:10562: gcc -c conftest.c -o conftest2.o >&5
configure:10566: $? = 0
configure:10577: cc -c conftest.c >&5
configure:10581: $? = 0
configure:10589: cc -c conftest.c -o conftest2.o >&5
configure:10593: $? = 0
configure:10599: cc -c conftest.c -o conftest2.o >&5
configure:10603: $? = 0
configure:10621: result: yes
configure:10656: checking PKG_CONFIG_PATH
configure:10659: result: empty
configure:10668: checking for pkg-config
configure:10686: found /usr/bin/pkg-config
configure:10699: result: /usr/bin/pkg-config
configure:10827: checking pkg-config is at least version 0.9.0
configure:10830: result: yes
configure:10840: checking for FUSE
configure:10847: $PKG_CONFIG --exists --print-errors "fuse >= 2.5"
configure:10850: $? = 0
configure:10863: $PKG_CONFIG --exists --print-errors "fuse >= 2.5"
configure:10866: $? = 0
configure:10923: result: yes
configure:10932: checking for GLIB
configure:10939: $PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.6"
configure:10942: $? = 0
configure:10955: $PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.6"
configure:10958: $? = 0
configure:11015: result: yes
configure:11039: checking for dynamic library extension
configure:11061: result: .so
configure:11074: checking for libgphoto2 to use
configure:11092: result: autodetect
configure:11101: checking for LIBGPHOTO2
configure:11108: $PKG_CONFIG --exists --print-errors "libgphoto2 >= 2.5"
configure:11111: $? = 0
configure:11124: $PKG_CONFIG --exists --print-errors "libgphoto2 >= 2.5"
configure:11127: $? = 0
configure:11164: result: yes
configure:11358: checking libgphoto2 library flags
configure:11360: result: ""
configure:11362: checking libgphoto2 cpp flags
configure:11364: result: ""
configure:11390: checking locale.h usability
configure:11390: gcc -c -g -O2 conftest.c >&5
configure:11390: $? = 0
configure:11390: result: yes
configure:11390: checking locale.h presence
configure:11390: gcc -E conftest.c
configure:11390: $? = 0
configure:11390: result: yes
configure:11390: checking for locale.h
configure:11390: result: yes
configure:11401: checking for LC_MESSAGES
configure:11417: gcc -o conftest -g -O2 conftest.c >&5
configure:11417: $? = 0
configure:11425: result: yes
configure:11442: checking libintl.h usability
configure:11442: gcc -c -g -O2 conftest.c >&5
configure:11442: $? = 0
configure:11442: result: yes
configure:11442: checking libintl.h presence
configure:11442: gcc -E conftest.c
configure:11442: $? = 0
configure:11442: result: yes
configure:11442: checking for libintl.h
configure:11442: result: yes
configure:11450: checking for ngettext in libc
configure:11468: gcc -o conftest -g -O2 conftest.c >&5
configure:11468: $? = 0
configure:11477: result: yes
configure:11481: checking for dgettext in libc
configure:11499: gcc -o conftest -g -O2 conftest.c >&5
configure:11499: $? = 0
configure:11508: result: yes
configure:11515: checking for bind_textdomain_codeset
configure:11515: gcc -o conftest -g -O2 conftest.c >&5
configure:11515: $? = 0
configure:11515: result: yes
configure:11791: checking for msgfmt
configure:11818: result: /usr/bin/msgfmt
configure:11829: checking for dcgettext
configure:11829: gcc -o conftest -g -O2 conftest.c >&5
conftest.c:52:6: warning: conflicting types for built-in function 'dcgettext' [enabled by default]
char dcgettext ();
^
configure:11829: $? = 0
configure:11829: result: yes
configure:11839: checking if msgfmt accepts -c
configure:11854: $MSGFMT -c -o /dev/null conftest.foo
conftest.foo:3: warning: header field 'Language' missing in header
configure:11857: $? = 0
configure:11859: result: yes
configure:11869: checking for gmsgfmt
configure:11900: result: /usr/bin/msgfmt
configure:11910: checking for xgettext
configure:11937: result: /usr/bin/xgettext
configure:11956: gcc -o conftest -g -O2 conftest.c >&5
configure:11956: $? = 0
configure:12228: creating ./config.status
----------------------
Running config.status.
----------------------
This file was extended by gphoto filesystem config.status 0.5, which was
generated by GNU Autoconf 2.68. Invocation command line was
CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ ./config.status
on vip-Inspiron-N4030
config.status:1112: creating Makefile
config.status:1112: creating m4m/Makefile
config.status:1112: creating config.h
config.status:1341: executing depfiles commands
config.status:1341: executing libtool commands
config.status:1341: executing default-1 commands
----------------
Cache variables.
----------------
ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_FUSE_CFLAGS_set=
ac_cv_env_FUSE_CFLAGS_value=
ac_cv_env_FUSE_LIBS_set=
ac_cv_env_FUSE_LIBS_value=
ac_cv_env_GLIB_CFLAGS_set=
ac_cv_env_GLIB_CFLAGS_value=
ac_cv_env_GLIB_LIBS_set=
ac_cv_env_GLIB_LIBS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBGPHOTO2_CFLAGS_set=
ac_cv_env_LIBGPHOTO2_CFLAGS_value=
ac_cv_env_LIBGPHOTO2_LIBS_set=
ac_cv_env_LIBGPHOTO2_LIBS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=
ac_cv_env_PKG_CONFIG_PATH_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_func_bind_textdomain_codeset=yes
ac_cv_func_dcgettext=yes
ac_cv_header_dlfcn_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_libintl_h=yes
ac_cv_header_locale_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_host=x86_64-unknown-linux-gnu
ac_cv_objext=o
ac_cv_path_EGREP='/bin/grep -E'
ac_cv_path_FGREP='/bin/grep -F'
ac_cv_path_GMSGFMT=/usr/bin/msgfmt
ac_cv_path_GREP=/bin/grep
ac_cv_path_MSGFMT=/usr/bin/msgfmt
ac_cv_path_PKG_CONFIG=/usr/bin/pkg-config
ac_cv_path_SED=/bin/sed
ac_cv_path_XGETTEXT=/usr/bin/xgettext
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_AR=ar
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_OBJDUMP=objdump
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_gcc_c_o=yes
ac_cv_prog_make_make_set=yes
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_val_LC_MESSAGES=yes
gt_cv_func_dgettext_libc=yes
gt_cv_func_dgettext_libintl=no
gt_cv_func_ngettext_libc=yes
gt_cv_have_gettext=yes
lt_cv_deplibs_check_method=pass_all
lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_ld_reload_flag=-r
lt_cv_nm_interface='BSD nm'
lt_cv_objdir=.libs
lt_cv_path_LD=/usr/bin/ld
lt_cv_path_NM='/usr/bin/nm -B'
lt_cv_prog_compiler_c_o=yes
lt_cv_prog_compiler_pic_works=yes
lt_cv_prog_compiler_rtti_exceptions=no
lt_cv_prog_compiler_static_works=yes
lt_cv_prog_gnu_ld=yes
lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.[ ]([ABCDGIRSTW][ABCDGIRSTW])[ ][ ]([_A-Za-z][_A-Za-z0-9])$/\1 \2 \2/p'\'''
lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: ([^ ]) $/ {\"\1\", (void ) 0},/p'\'' -e '\''s/^[ABCDGIRSTW] ([^ ]) ([^ ])$/ {"\2", (void ) \&\2},/p'\'''
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='sed -n -e '\''s/^: ([^ ]) $/ {\"\1\", (void ) 0},/p'\'' -e '\''s/^[ABCDGIRSTW] ([^ ]) (lib[^ ])$/ {"\2", (void ) \&\2},/p'\'' -e '\''s/^[ABCDGIRSTW] ([^ ]) ([^ ])$/ {"lib\2", (void ) \&\2},/p'\'''
lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^T . (.)$/extern int \1();/p'\'' -e '\''s/^[ABCDGIRSTW] . (.*)$/extern char \1;/p'\'''
lt_cv_sys_max_cmd_len=1572864
pkg_cv_FUSE_CFLAGS='-D_FILE_OFFSET_BITS=64 -I/usr/include/fuse '
pkg_cv_FUSE_LIBS='-pthread -lfuse '
pkg_cv_GLIB_CFLAGS='-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include '
pkg_cv_GLIB_LIBS='-lglib-2.0 '
pkg_cv_LIBGPHOTO2_CFLAGS=
pkg_cv_LIBGPHOTO2_LIBS=
-----------------
Output variables.
-----------------
ACLOCAL='${SHELL} /home/vip/gphotofs-0.5/auto-aux/missing --run aclocal-1.11'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /home/vip/gphotofs-0.5/auto-aux/missing --run tar'
AR='ar'
AUTOCONF='${SHELL} /home/vip/gphotofs-0.5/auto-aux/missing --run autoconf'
AUTOHEADER='${SHELL} /home/vip/gphotofs-0.5/auto-aux/missing --run autoheader'
AUTOMAKE='${SHELL} /home/vip/gphotofs-0.5/auto-aux/missing --run automake-1.11'
AWK='gawk'
CATALOGS=''
CATOBJEXT='.gmo'
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-g -O2'
CPP='gcc -E'
CPPFLAGS=''
CYGPATH_W='echo'
DATADIRNAME='share'
DEFS='-DHAVE_CONFIG_H'
DEPDIR='.deps'
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/bin/grep -E'
EXEEXT=''
FGREP='/bin/grep -F'
FUSE_CFLAGS='-D_FILE_OFFSET_BITS=64 -I/usr/include/fuse '
FUSE_LIBS='-pthread -lfuse '
GETTEXT_PACKAGE='gphotofs'
GLIB_CFLAGS='-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include '
GLIB_LIBS='-lglib-2.0 '
GMOFILES=''
GMSGFMT='/usr/bin/msgfmt'
GREP='/bin/grep'
HAVE_LIBGPHOTO2_FALSE='#'
HAVE_LIBGPHOTO2_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
INSTOBJEXT='.mo'
INTLLIBS=''
LD='/usr/bin/ld -m elf_x86_64'
LDFLAGS=''
LIBGPHOTO2_CFLAGS=''
LIBGPHOTO2_CONFIG_PROG=''
LIBGPHOTO2_LIBS=''
LIBOBJS=''
LIBS=''
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
LIPO=''
LN_S='ln -s'
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/vip/gphotofs-0.5/auto-aux/missing --run makeinfo'
MKDIR_P='/bin/mkdir -p'
MKINSTALLDIRS='auto-aux/mkinstalldirs'
MSGFMT='/usr/bin/msgfmt'
MSGFMT_OPTS='-c'
NM='/usr/bin/nm -B'
NMEDIT=''
OBJDUMP='objdump'
OBJEXT='o'
OTOOL64=''
OTOOL=''
PACKAGE='gphotofs'
PACKAGE_BUGREPORT='gphoto-devel@lists.sourceforge.net'
PACKAGE_NAME='gphoto filesystem'
PACKAGE_STRING='gphoto filesystem 0.5'
PACKAGE_TARNAME='gphotofs'
PACKAGE_URL=''
PACKAGE_VERSION='0.5'
PATH_SEPARATOR=':'
PKG_CONFIG='/usr/bin/pkg-config'
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
POFILES=''
POSUB='po'
PO_IN_DATADIR_FALSE=''
PO_IN_DATADIR_TRUE=''
RANLIB='ranlib'
REQUIREMENTS_FOR_LIBGPHOTO2='libgphoto2 >= 2.5'
SED='/bin/sed'
SET_MAKE=''
SHELL='/bin/bash'
STRIP='strip'
USE_NLS='yes'
VERSION='0.5'
XGETTEXT='/usr/bin/xgettext'
ac_ct_CC='gcc'
ac_ct_DUMPBIN=''
amEXEEXT_FALSE=''
amEXEEXT_TRUE='#'
amfastdepCC_FALSE='#'
amfastdepCC_TRUE=''
aminclude='include'
amisrc=''
amleading_dot='.'
amquote=''
amtar='${AMTAR} chof - "$$tardir"'
amuntar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='${prefix}'
host='x86_64-unknown-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/vip/gphotofs-0.5/auto-aux/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
lt_ECHO='echo'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
-----------
confdefs.h.
-----------
/ confdefs.h /
define PACKAGE_NAME "gphoto filesystem"
define PACKAGE_TARNAME "gphotofs"
define PACKAGE_VERSION "0.5"
define PACKAGE_STRING "gphoto filesystem 0.5"
define PACKAGE_BUGREPORT "gphoto-devel@lists.sourceforge.net"
define PACKAGE_URL ""
define PACKAGE "gphotofs"
define VERSION "0.5"
define STDC_HEADERS 1
define HAVE_SYS_TYPES_H 1
define HAVE_SYS_STAT_H 1
define HAVE_STDLIB_H 1
define HAVE_STRING_H 1
define HAVE_MEMORY_H 1
define HAVE_STRINGS_H 1
define HAVE_INTTYPES_H 1
define HAVE_STDINT_H 1
define HAVE_UNISTD_H 1
define HAVE_DLFCN_H 1
define LT_OBJDIR ".libs/"
define HAVE_LIBGPHOTO2 1
define GETTEXT_PACKAGE "gphotofs"
define HAVE_LOCALE_H 1
define HAVE_LC_MESSAGES 1
define HAVE_BIND_TEXTDOMAIN_CODESET 1
define HAVE_GETTEXT 1
define HAVE_DCGETTEXT 1
define ENABLE_NLS 1
configure: exit 0
can you run
pkg-config --libs libgphoto2
pkg-config --modversion libgphoto2
pkg-config --cflags libgphoto2
it seems as if the pkg-config --libs libgphoto2 output is emptuy for you or something else broke?
pkg-config --libs libgphoto2
Empty package name in Requires or Conflicts in file '/usr/local/lib/pkgconfig/libgphoto2.pc'
/usr/local/lib/pkgconfig/libgphoto2.pc
prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
VERSION=2.5.6
driverdir=${libdir}/libgphoto2/2.5.6
Name: libgphoto2
Description: Library for easy access to digital cameras
URL: http://gphoto.org/proj/libgphoto2/
Version: 2.5.6
Requires: libgphoto2_port >= 0.10.0,
Libs: -L${libdir} -lgphoto2 -lm
Cflags: -I${includedir}/gphoto2
Last edit: jianjun wang 2015-01-09
libgphoto config.log
in /usr/local/lib/pkgconfig/libgphoto2.pc
can you in the Requires: line
delete the , at the end of the line?
and see if that helps?
It is ok then, but I got another error:
./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/vip/gphotofs-0.5/auto-aux/missing: Unknown
--is-lightweight' option Try
/home/vip/gphotofs-0.5/auto-aux/missing --help' for more informationconfigure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for POSIX sh $() command substitution... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking PKG_CONFIG_PATH... empty
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for FUSE... yes
checking for GLIB... yes
checking for dynamic library extension... .so
checking for libgphoto2 to use... autodetect
checking for LIBGPHOTO2... yes
checking libgphoto2 library flags... "-L/usr/local/lib -lgphoto2 -lgphoto2_port -lm "
checking libgphoto2 cpp flags... "-I/usr/local/include/gphoto2 "
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
./configure: line 13014: ./po/POTFILES.in: No such file or directory
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating m4m/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default-1 commands
Configuration (gphotofs 0.5):
You may run "make" and "make install" now.
vip:~/gphotofs-0.5$ make
cd . && automake-1.14 --gnu
CDPATH="${ZSH_VERSION+.}:" && cd . && autoconf
/bin/bash ./config.status --recheck
running CONFIG_SHELL=/bin/bash /bin/bash ./configure --no-create --no-recursion
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/vip/gphotofs-0.5/auto-aux/missing: Unknown
--is-lightweight' option Try
/home/vip/gphotofs-0.5/auto-aux/missing --help' for more informationconfigure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
./configure: line 2871: GP_CHECK_SHELL_ENVIRONMENT: command not found
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 3458764513820540925
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
./configure: line 11508: GP_PKG_CONFIG: command not found
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for FUSE... yes
checking for GLIB... yes
./configure: line 11818: syntax error near unexpected token
LIBGPHOTO2,'** ./configure: line 11818:
GP_CHECK_LIBRARY(LIBGPHOTO2, libgphoto2, >= 2.5)'make: * [config.status] Error 2
Last edit: jianjun wang 2015-01-11
can you run autoreconf -i -f ? it does not seem to have expanded GP_CHECK_LIBRARY from the m4 directory
I sync several m4m files from gphoto2 packages, then configure with errors again, then I try directly make, came back to configure then it is ok then.
I have test new make on a Ubuntu 12.04 PC, after delete the required section's comma , then everything is OK.
I noticed your gphoto2 and gphotofs, subdirectory like test or sample's configure files have not update as new as main directory. It will report errors when cross compiling into Openwrt package, I have to disable it. maybe because gphotofs depends on glib2?