#231 ✓resolved
Rob Whittle

Ubuntu help installing libimobiledevice-1.1.1

Reported by Rob Whittle | September 7th, 2011 @ 02:01 PM

Hi Guyz , i'm a bit of a newbee ... i need some help .. with libglib2 checking issue

i've tried install different version of both glib and libglib2 and still no luck :(

Thanks


rob@rob-ThinkPad-R61:~/Downloads/libimobiledevice-1.1.1$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... 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 for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
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 for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
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 whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking how to run the C++ preprocessor... g++ -E
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) 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 for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libusbmuxd... yes
checking for libglib2... no
configure: error: Package requirements (glib-2.0 >= 2.14.1) were not met:

Requested 'glib-2.0 >= 2.14.1' but version of GLib is 2.12.13

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables libglib2_CFLAGS
and libglib2_LIBS to avoid the need to call pkg-config.

See the pkg-config man page for more details.

Comments and changes to this ticket

  • Nikias Bassen

    Nikias Bassen September 26th, 2011 @ 01:27 PM

    • Assigned user set to “Nikias Bassen”

    Hi,

    your system has a too low version of glib. Which ubuntu version are you running?

    Regards
    Nikias

  • Helmar Waiczies

    Helmar Waiczies November 29th, 2011 @ 01:27 PM

    im getting a bit further:

    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... 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 for style of include used by make... GNU
    checking dependency style of gcc... gcc3
    checking for g++... g++
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking dependency style of g++... gcc3
    checking whether gcc and cc understand -c and -o together... yes
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    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 for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for ar... ar
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking how to run the C preprocessor... gcc -E
    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 whether we are using the GNU C++ compiler... (cached) yes
    checking whether g++ accepts -g... (cached) yes
    checking dependency style of g++... (cached) gcc3
    checking how to run the C++ preprocessor... g++ -E
    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 for ld used by g++... /usr/bin/ld -m elf_x86_64
    checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
    checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking for g++ option to produce PIC... -fPIC -DPIC
    checking if g++ PIC flag -fPIC -DPIC works... yes
    checking if g++ static flag -static works... yes
    checking if g++ supports -c -o file.o... yes
    checking if g++ supports -c -o file.o... (cached) yes
    checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for libusbmuxd... yes
    checking for libglib2... yes
    checking for libgthread2... yes
    checking for libgnutls... yes
    checking for libtasn1... yes
    checking for libplist... yes
    checking for libplistmm... yes
    checking for gcry_control in -lgcrypt... yes
    checking for ANSI C header files... (cached) yes
    checking for stdint.h... (cached) yes
    checking for stdlib.h... (cached) yes
    checking for string.h... (cached) yes
    checking gcrypt.h usability... yes
    checking gcrypt.h presence... yes
    checking for gcrypt.h... yes
    checking for an ANSI C-conforming const... yes
    checking for size_t... yes
    checking for ssize_t... yes
    checking for uint16_t... yes
    checking for uint32_t... yes
    checking for uint8_t... yes
    checking for stdlib.h... (cached) yes
    checking for GNU libc compatible malloc... yes
    checking for stdlib.h... (cached) yes
    checking for GNU libc compatible realloc... yes
    checking for strcasecmp... yes
    checking for strdup... yes
    checking for strerror... yes
    checking for strndup... yes
    checking for a Python interpreter with version >= 2.3... python
    checking for python... /usr/bin/python
    checking for python version... 2.6
    checking for python platform... linux2
    checking for python script directory... ${prefix}/lib/python2.6/dist-packages
    checking for python extension module directory... ${exec_prefix}/lib/python2.6/dist-packages
    checking for swig... no
    configure: WARNING: cannot find 'swig' program. You should look at http://www.swig.org or install your distribution specific swig package.
    checking for python2.6... (cached) /usr/bin/python
    checking for a version of Python >= '2.1.0'... yes
    checking for the distutils Python package... yes
    checking for Python include path... -I/usr/include/python2.6
    checking for Python library path... -L/usr/lib/python2.6 -lpython2.6
    checking for Python site-packages path... /usr/lib/python2.6/dist-packages
    checking python extra libraries... -lssl -lcrypto -lssl -lcrypto -L/usr/lib -lz -lpthread -ldl -lutil
    checking python extra linking flags... -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions
    checking consistency of all components of python development environment... yes
    checking for supported compiler flags... -Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter
    checking for special C compiler options needed for large files... no
    checking for FILE_OFFSET_BITS value needed for large files... no
    checking for native large file support... yes
    checking for
    LARGEFILE_SOURCE value needed for large files... no
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating src/Makefile
    config.status: creating include/Makefile
    config.status: creating dev/Makefile
    config.status: creating tools/Makefile
    config.status: creating swig/Makefile
    config.status: creating docs/Makefile
    config.status: creating libimobiledevice-1.0.pc
    config.status: creating doxygen.cfg
    config.status: creating config.h
    config.status: executing depfiles commands
    config.status: executing libtool commands

    Configuration for libimobiledevice 1.1.0:

    Install prefix: .........: /usr/local Debug code ..............: no Dev tools ...............: no Python bindings .........: yes

    Now type 'make' to build libimobiledevice 1.1.0, and then 'make install' for installation.

    but when i do make im getting this:

    make all-recursive
    make[1]: Betrete Verzeichnis '/home/hwaicz/Downloads/libimobiledevice-1.1.0'
    Making all in src
    make[2]: Betrete Verzeichnis '/home/hwaicz/Downloads/libimobiledevice-1.1.0/src'
    CC idevice.lo CC debug.lo debug.c: In function ‘debug_print_line’:
    debug.c:60: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
    debug.c: At top level:
    debug.c:49: warning: ‘debug_print_line’ defined but not used
    CC userpref.lo CC property_list_service.lo CC device_link_service.lo CC lockdown.lo lockdown.c: In function ‘lockdownd_get_sync_data_classes’:
    lockdown.c:1589: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
    CC afc.lo CC file_relay.lo CC notification_proxy.lo CC installation_proxy.lo CC sbservices.lo CC mobile_image_mounter.lo CC screenshotr.lo CC mobilesync.lo CC mobilebackup.lo CC house_arrest.lo CC restore.lo CCLD libimobiledevice.la make[2]: Verlasse Verzeichnis '/home/hwaicz/Downloads/libimobiledevice-1.1.0/src'
    Making all in include
    make[2]: Betrete Verzeichnis '/home/hwaicz/Downloads/libimobiledevice-1.1.0/include'
    make[2]: Für das Ziel »all« ist nichts zu tun.
    make[2]: Verlasse Verzeichnis '/home/hwaicz/Downloads/libimobiledevice-1.1.0/include'
    Making all in swig
    make[2]: Betrete Verzeichnis '/home/hwaicz/Downloads/libimobiledevice-1.1.0/swig'
    false -python -I../include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/python2.6 -I/usr/include -I../src -o imobiledevice_wrap.cxx imobiledevice.i
    make[2]: [imobiledevice_wrap.cxx] Fehler 1
    make[2]: Verlasse Verzeichnis '/home/hwaicz/Downloads/libimobiledevice-1.1.0/swig'
    make[1]:
    [all-recursive] Fehler 1
    make[1]: Verlasse Verzeichnis '/home/hwaicz/Downloads/libimobiledevice-1.1.0'
    make: [all] Fehler 2
    hwaicz@MRT27:~/Downloads/libimobiledevice-1.1.0$ make
    make all-recursive
    make[1]: Betrete Verzeichnis '/home/hwaicz/Downloads/libimobiledevice-1.1.0'
    Making all in src
    make[2]: Betrete Verzeichnis '/home/hwaicz/Downloads/libimobiledevice-1.1.0/src'
    make[2]: Für das Ziel »all« ist nichts zu tun.
    make[2]: Verlasse Verzeichnis '/home/hwaicz/Downloads/libimobiledevice-1.1.0/src'
    Making all in include
    make[2]: Betrete Verzeichnis '/home/hwaicz/Downloads/libimobiledevice-1.1.0/include'
    make[2]: Für das Ziel »all« ist nichts zu tun.
    make[2]: Verlasse Verzeichnis '/home/hwaicz/Downloads/libimobiledevice-1.1.0/include'
    Making all in swig
    make[2]: Betrete Verzeichnis '/home/hwaicz/Downloads/libimobiledevice-1.1.0/swig'
    false -python -I../include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/python2.6 -I/usr/include -I../src -o imobiledevice_wrap.cxx imobiledevice.i
    make[2]:
    [imobiledevice_wrap.cxx] Fehler 1
    make[2]: Verlasse Verzeichnis '/home/hwaicz/Downloads/libimobiledevice-1.1.0/swig'
    make[1]: [all-recursive] Fehler 1
    make[1]: Verlasse Verzeichnis '/home/hwaicz/Downloads/libimobiledevice-1.1.0'
    make:
    [all] Fehler 2
    hwaicz@MRT27:~/Downloads/libimobiledevice-1.1.0$ make all
    make all-recursive
    make[1]: Betrete Verzeichnis '/home/hwaicz/Downloads/libimobiledevice-1.1.0'
    Making all in src
    make[2]: Betrete Verzeichnis '/home/hwaicz/Downloads/libimobiledevice-1.1.0/src'
    make[2]: Für das Ziel »all« ist nichts zu tun.
    make[2]: Verlasse Verzeichnis '/home/hwaicz/Downloads/libimobiledevice-1.1.0/src'
    Making all in include
    make[2]: Betrete Verzeichnis '/home/hwaicz/Downloads/libimobiledevice-1.1.0/include'
    make[2]: Für das Ziel »all« ist nichts zu tun.
    make[2]: Verlasse Verzeichnis '/home/hwaicz/Downloads/libimobiledevice-1.1.0/include'
    Making all in swig
    make[2]: Betrete Verzeichnis '/home/hwaicz/Downloads/libimobiledevice-1.1.0/swig'
    false -python -I../include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/python2.6 -I/usr/include -I../src -o imobiledevice_wrap.cxx imobiledevice.i
    make[2]: [imobiledevice_wrap.cxx] Fehler 1
    make[2]: Verlasse Verzeichnis '/home/hwaicz/Downloads/libimobiledevice-1.1.0/swig'
    make[1]:
    [all-recursive] Fehler 1
    make[1]: Verlasse Verzeichnis '/home/hwaicz/Downloads/libimobiledevice-1.1.0'
    make: *** [all] Fehler 2

    Any suggestions ?!

  • Helmar Waiczies

    Helmar Waiczies November 29th, 2011 @ 01:30 PM

    uups sorry, just answered the question myself swig was missing, sorry again

  • Helmar Waiczies

    Helmar Waiczies December 2nd, 2011 @ 10:57 AM

    ok i could do
    conifgure
    make and make install
    without problems

    but still my device wont be mounted
    /usr/lib/gvfs/gvfs-afc-volume-monitor Volume monitor alive
    creating volume for device uuid '7990c9fe6e16f543290ffc85bafced6832fd3a13'

    but nothing happens
    ideviceinfo (nothing)
    idevicesyslog (nothing)
    idevicepair unpair => QueryType failed, error code -256
    idevice_id -l gives my ID as it should be

    ive ubuntu 10.10 and afaik all prerequieries installed

    maybe someone has a hint ?!

    Best
    Helmar

  • Nikias Bassen

    Nikias Bassen December 2nd, 2011 @ 01:03 PM

    You still have the old library active since you installed your self-compiled version in /usr/local. First, do

    sudo make uninstall
    

    in your libimobiledevice source tree. Then do

    ./configure --prefix=/usr
    make
    sudo make install
    

    But watch out if you're on Ubuntu 10.10 you might break some software relying
    on a lower version of libimobiledevice, like gvfsd-afc (the gvfs extension that allows
    you to browse your device's filesystem with nautilus).

  • Martin S.

    Martin S. March 20th, 2012 @ 11:14 PM

    • State changed from “new” to “resolved”
    • Tag set to autofoo, glib2

    If you still have issues with the latest non-glib git master please feel free to reopen.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A project around supporting the iPhone in Linux.

See http://libimobiledevice.org

Tags

Pages