Update version of libplist loaded by the imobiledevice driver to match the version shipped with the Qt 5 binaries

This commit is contained in:
Kovid Goyal 2014-07-15 11:15:51 +05:30
parent b00781b87a
commit fc4da6933c

View File

@ -440,7 +440,7 @@ class libiMobileDevice():
if islinux:
env = "linux"
self.lib = cdll.LoadLibrary('libimobiledevice.so.4')
self.plist_lib = cdll.LoadLibrary('libplist.so.1')
self.plist_lib = cdll.LoadLibrary('libplist.so.2')
elif isosx:
env = "OS X"
@ -452,7 +452,7 @@ class libiMobileDevice():
self.lib = cdll.LoadLibrary(path)
# Load libplist
path = 'libplist.1.dylib'
path = 'libplist.2.dylib'
if hasattr(sys, 'frameworks_dir'):
self.plist_lib = cdll.LoadLibrary(os.path.join(getattr(sys, 'frameworks_dir'), path))
else: