libimobiledevice / libplist

A library to handle Apple Property List format in binary or XML
https://libimobiledevice.org
GNU Lesser General Public License v2.1
532 stars 304 forks source link

Build fails if there's a space in the path to your current directory #211

Open NinjaCheetah opened 2 years ago

NinjaCheetah commented 2 years ago

Output:

../libtool: line 5952: cd: /Users/campbell/Documents/Command: No such file or directory
../libtool: line 1898: cd: .libs/libplist-2.0.lax/libcnary.a: No such file or directory
make[2]: *** [libplist-2.0.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Directory was named "Command Line Tools". Renamed it so there's no space which fixes it but I'm submitting this anyway in case it's something that can be fixed.

DonnchaC commented 5 months ago

This would be helpful to fix in the build scripts as it can create build failures which are difficult to debug.

7HE-W0R1D commented 3 weeks ago

As of August 1 2024, this issue still persists, the corresponding error message is:

make[2]: Entering directory '/mnt/SN 520/Finder/Local Documents/iPod Database/libplist/test'
  CXXLD    plist_test++
libtool:   error: cannot find the library 'Database/libplist/src/libplist-2.0.la' or unhandled argument 'Database/libplist/src/libplist-2.0.la'

You can see from the message that only the last part after the space is detected, the simple solution is to clone and install in your user's root directory (I moved them to a subfolder in the ~/Documents folder) and it installed without any problems.