Skip to content

Building on iOS and macOS

Keto edited this page Jun 25, 2021 · 16 revisions

Building Procursus packages on iOS and macOS is fairly simple. Make sure that you have a decent amount of free space on your device.

This setup guide assumes that your device is already setup with Procursus already.

  1. Install dependencies

    You can install dependencies with your prefered package manager (e.g Sileo), or with APT

     $ sudo apt install autoconf automake autopoint bison cmake docbook-xml docbook-xsl dsymutil fakeroot flex gawk git gnupg groff ldid libtool make ncurses-bin odcctools openssl patch pkg-config po4a python3 sed tar triehash wget xz-utils zstd
    
  2. Download SDKs

    To build Procursus packages, you'll need an iOS and macOS SDK. The repositories below are a few of the resorces that you can use to get what you need

    You'd likely want to checkout the default values of the platform where you're setting up Procursus, since each platform uses a different path for SDKs

    Ideally, you can also export SDK variables from the "Build options" page on your shell configuration

  3. Clone the Procursus build system

     $ git clone --recursive https://github.com/ProcursusTeam/Procursus.git
    
  4. Build!

    Building packages on iOS is a bit of a hit and miss. However, macOS is the main supported system where all packages should (and will) compile.

    To test your own build system setup, attempt to build bash. Checkout the "Build options" page to see what valid options can be passed

     $ make bash-package [OPTIONS]
    

    Like other systems (e.g Linux), there are packages that will not build. To be more specific, some packages that depend on Go or NodeJS tend to not build for other platforms.

Contents

Clone this wiki locally