tpoechtrager / osxcross

Mac OS X cross toolchain for Linux, FreeBSD, OpenBSD and Android (Termux)
GNU General Public License v2.0
2.92k stars 329 forks source link

Minor Documentation Edit -- Tarball doc misses a few packages #374

Open AkbarTheGreat opened 1 year ago

AkbarTheGreat commented 1 year ago

I'm in the process of updating my sdk tarball, doing so inside of an ubuntu Docker container. The section https://github.com/tpoechtrager/osxcross#packing-the-sdk-on-linux---method-1-xcode--80 lists packages to install, but on Ubuntu I had to install several more (as well as a few APT naming conventions which don't match, but that's easily navigable)

The full set of packages I needed to install were: clang make libssl-dev lzma-dev libxml2-dev cmake cpio liblzma-dev libbz2-dev bzip2

The lzma/liblzma distinction may be Ubuntu-specific, since I'd expect lzma-dev to include liblzma-dev, but I'm unsure. But it would be nice to include cmake, cpio, libbz2-devel, and bzip2 at least in the list of packages required, for convenience.

nephatrine commented 11 months ago

I encountered this as well. I "translated" the package names to ubuntu-specific ones myself, but still got an error like this:

Error while extracting archive:(Metadata): bzip2 support not compiled in. (Success)

Which was definitely not a (Success) so I had to find and install bzip2 libraries, remove the tools that gen_sdk_package_pbzx.sh built, and let it rebuild them with bzip2 support.

jimafisk commented 3 weeks ago

These comments were super helpful!

Thanks for the dependency list:

sudo apt install clang make libssl-dev lzma-dev libxml2-dev cmake cpio liblzma-dev libbz2-dev bzip2

I was confused why after installing those, I was still hitting bzip2 support not compiled in. Removing the current build assets:

rm -R build

Then re-running worked:

./tools/gen_sdk_package_pbzx.sh Xcode_16.1.xip

Thanks!