Can't compile due to libplist dependency #4

Closed
jasperblues opened this Issue Feb 27, 2014 · 13 comments

Comments

Projects
None yet
5 participants
@jasperblues

I'm getting an error:

configure: error: Package requirements (libplist >= 1.11) were not met:

Requested 'libplist >= 1.11' but version of libplist is 1.10

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

Looking at libplist, it seems the latest tag is 1.10

@aburgh

This comment has been minimized.

Show comment
Hide comment
@aburgh

aburgh Feb 27, 2014

Contributor

Line #5 of https://github.com/libimobiledevice/libplist/blob/master/configure.ac defines the version of libplist as 1.11. Where did you get libplist from?

Contributor

aburgh commented Feb 27, 2014

Line #5 of https://github.com/libimobiledevice/libplist/blob/master/configure.ac defines the version of libplist as 1.11. Where did you get libplist from?

@jasperblues

This comment has been minimized.

Show comment
Hide comment
@jasperblues

jasperblues Feb 27, 2014

First I got libplist form MacPorts (like last time) but when I noticed that version 1.11 was required I got it form the libimobiledvice github org. . . that version is only tagged up to 1.10.

Is there a master somewhere else?

First I got libplist form MacPorts (like last time) but when I noticed that version 1.11 was required I got it form the libimobiledvice github org. . . that version is only tagged up to 1.10.

Is there a master somewhere else?

@aburgh

This comment has been minimized.

Show comment
Hide comment
@aburgh

aburgh Feb 27, 2014

Contributor

The link I included is to libimobiledevice's libplist repo, and it is version 1.11. Did you run autogen.sh? Did you look at the the output of "make install" to be sure it installed libplist in the location needed by libimobiledevice? Look for where libplist.pc is installed and where it is searched for when building libimobiledevice.

Contributor

aburgh commented Feb 27, 2014

The link I included is to libimobiledevice's libplist repo, and it is version 1.11. Did you run autogen.sh? Did you look at the the output of "make install" to be sure it installed libplist in the location needed by libimobiledevice? Look for where libplist.pc is installed and where it is searched for when building libimobiledevice.

@jasperblues

This comment has been minimized.

Show comment
Hide comment
@jasperblues

jasperblues Feb 27, 2014

Oops, sorry. I didn't read your comment properly. . . checking now.

Oops, sorry. I didn't read your comment properly. . . checking now.

@jasperblues

This comment has been minimized.

Show comment
Hide comment
@jasperblues

jasperblues Feb 27, 2014

Hmmmm wierd. I ran through the autotools steps again for libplist, and libusbmuxd.

  • Confirmed that libplist declares itself as 1.11
  • Confirmed that install is to /usr/local/lib
  • Confirmed I have: export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/**

Then ran autogen.sh and configure in libusbmuxd. . . . same problem. . . Only finds 1.10

It must be something about my local setup. . I'll work it out.

Hmmmm wierd. I ran through the autotools steps again for libplist, and libusbmuxd.

  • Confirmed that libplist declares itself as 1.11
  • Confirmed that install is to /usr/local/lib
  • Confirmed I have: export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/**

Then ran autogen.sh and configure in libusbmuxd. . . . same problem. . . Only finds 1.10

It must be something about my local setup. . I'll work it out.

@jasperblues

This comment has been minimized.

Show comment
Hide comment
@jasperblues

jasperblues Feb 27, 2014

Ah .. . I have nothing at: /usr/local/lib/pkgconfig

. . . On my old machine (dead - graphics card blew up) it was there. . . I wonder where it is now?

Ah .. . I have nothing at: /usr/local/lib/pkgconfig

. . . On my old machine (dead - graphics card blew up) it was there. . . I wonder where it is now?

@jasperblues

This comment has been minimized.

Show comment
Hide comment
@jasperblues

jasperblues Feb 27, 2014

Fixed two problems (local config) and its ok now:

  • Created the missing /usr/local/lib/pkgconfig dir
  • Removed '/' from: export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/

Fixed two problems (local config) and its ok now:

  • Created the missing /usr/local/lib/pkgconfig dir
  • Removed '/' from: export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
@aburgh

This comment has been minimized.

Show comment
Hide comment
@aburgh

aburgh Feb 27, 2014

Contributor

try "pkg-config --debug" to see if that gives you a hint of where it is looking by default. "find / type d -name pkgconfig" will find the pkgconfig directories on your system and should only take a couple of minutes.

Contributor

aburgh commented Feb 27, 2014

try "pkg-config --debug" to see if that gives you a hint of where it is looking by default. "find / type d -name pkgconfig" will find the pkgconfig directories on your system and should only take a couple of minutes.

@jasperblues

This comment has been minimized.

Show comment
Hide comment
@jasperblues

jasperblues Feb 27, 2014

Thanks for your help!

Thanks for your help!

@FunkyM

This comment has been minimized.

Show comment
Hide comment
@FunkyM

FunkyM Mar 12, 2014

Member

If you use MacPorts, the single trick for compiling everything smoothly is to pass "--prefix=/opt/local" to configure.

Member

FunkyM commented Mar 12, 2014

If you use MacPorts, the single trick for compiling everything smoothly is to pass "--prefix=/opt/local" to configure.

@diaojunxian

This comment has been minimized.

Show comment
Hide comment
@diaojunxian

diaojunxian Aug 29, 2016

@aburgh My mac is 10.11.6 ,then I used "./autogen.sh".Like this:

/usr/local/bin/glibtoolize: line 406: /usr/local/Library/ENV/4.3/sed: No such file or directory
/usr/local/bin/glibtoolize: line 2513: /usr/local/Library/ENV/4.3/sed: No such file or directory
/usr/local/bin/glibtoolize: line 2513: /usr/local/Library/ENV/4.3/sed: No such file or directory
/usr/local/bin/glibtoolize: line 3601: /usr/local/Library/ENV/4.3/sed: No such file or directory
/usr/local/bin/glibtoolize: line 3845: /usr/local/Library/ENV/4.3/sed: No such file or directory
/usr/local/bin/glibtoolize: line 861: /usr/local/Library/ENV/4.3/sed: No such file or directory
: putting auxiliary files in '.'.
: linking file './ltmain.sh'
/usr/local/bin/glibtoolize: line 3771: /usr/local/Library/ENV/4.3/sed: No such file or directory
configure.ac:28: installing './compile'
configure.ac:6: installing './missing'
common/Makefile.am: installing './depcomp'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) 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 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 build system type... x86_64-apple-darwin15.6.0
checking host system type... x86_64-apple-darwin15.6.0
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
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... 196608
checking how to convert x86_64-apple-darwin15.6.0 file names to x86_64-apple-darwin15.6.0 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin15.6.0 file names to toolchain format... func_convert_file_noop
checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
checking for objdump... no
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... no
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 a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
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 for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin15.6.0 dyld
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 how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fno-common -DPIC
checking if g++ PIC flag -fno-common -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin15.6.0 dyld
checking how to hardcode library paths into programs... immediate
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libplist... no
configure: error: Package requirements (libplist >= 1.11) were not met:

Package 'libxml-2.0', required by 'libplist', not found

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

Alternatively, you may set the environment variables libplist_CFLAGS
and libplist_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

@aburgh My mac is 10.11.6 ,then I used "./autogen.sh".Like this:

/usr/local/bin/glibtoolize: line 406: /usr/local/Library/ENV/4.3/sed: No such file or directory
/usr/local/bin/glibtoolize: line 2513: /usr/local/Library/ENV/4.3/sed: No such file or directory
/usr/local/bin/glibtoolize: line 2513: /usr/local/Library/ENV/4.3/sed: No such file or directory
/usr/local/bin/glibtoolize: line 3601: /usr/local/Library/ENV/4.3/sed: No such file or directory
/usr/local/bin/glibtoolize: line 3845: /usr/local/Library/ENV/4.3/sed: No such file or directory
/usr/local/bin/glibtoolize: line 861: /usr/local/Library/ENV/4.3/sed: No such file or directory
: putting auxiliary files in '.'.
: linking file './ltmain.sh'
/usr/local/bin/glibtoolize: line 3771: /usr/local/Library/ENV/4.3/sed: No such file or directory
configure.ac:28: installing './compile'
configure.ac:6: installing './missing'
common/Makefile.am: installing './depcomp'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) 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 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 build system type... x86_64-apple-darwin15.6.0
checking host system type... x86_64-apple-darwin15.6.0
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
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... 196608
checking how to convert x86_64-apple-darwin15.6.0 file names to x86_64-apple-darwin15.6.0 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin15.6.0 file names to toolchain format... func_convert_file_noop
checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
checking for objdump... no
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... no
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 a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
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 for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin15.6.0 dyld
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 how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fno-common -DPIC
checking if g++ PIC flag -fno-common -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin15.6.0 dyld
checking how to hardcode library paths into programs... immediate
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libplist... no
configure: error: Package requirements (libplist >= 1.11) were not met:

Package 'libxml-2.0', required by 'libplist', not found

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

Alternatively, you may set the environment variables libplist_CFLAGS
and libplist_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
@diaojunxian

This comment has been minimized.

Show comment
Hide comment
@diaojunxian

diaojunxian Aug 29, 2016

@aburgh When I used "brew install libplist",I found I had installed Warning: libplist-1.12 already installed.

@aburgh When I used "brew install libplist",I found I had installed Warning: libplist-1.12 already installed.

@raikikon

This comment has been minimized.

Show comment
Hide comment
@raikikon

raikikon Jan 6, 2017

@diaojunxian are you getting error at
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libplist... no
configure: error: Package requirements (libplist >= 1.11) were not met:

checking for pkg-config... /usr/local/bin/pkg-config <================

see this also brew install always pours at /usr/local/bin/

so set it by
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

raikikon commented Jan 6, 2017

@diaojunxian are you getting error at
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libplist... no
configure: error: Package requirements (libplist >= 1.11) were not met:

checking for pkg-config... /usr/local/bin/pkg-config <================

see this also brew install always pours at /usr/local/bin/

so set it by
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment