Method Compile library Pure Data MacOS

Method to compile a Pure Data library on MacOS.
M├ęthode pour compiler une librairie Pure Data sous MacOS.

On MacOSX 10.13.

Example with the percolate library and the source code:  (1 2020)
PeRColate is an open-source distribution of a variety of synthesis and signal processing algorithms...

Method written in March 2021.


Homebrew install

GNU C compiler (gcc) install
Update brew:
pc36:~ g$ brew update
pc36:~ g$ brew upgrade
Install gcc:
pc36:~ g$ brew info gcc
pc36:~ g$ brew install gcc
pc36:~ g$ brew cleanup

Pd-0.48-1-i386 is installed in the Mac

Create a "FolderPd" folder on the desktop of the Mac
-> /Users/g/Desktop/FolderPd/

Download source code of percolate library:  (1 2020)
    -> PeRColate4PD.tar.gz
        -> PeRColate4PD
Place the folder PeRColate4PD in the FolderPd:
   -> /Users/g/Desktop/FolderPd/PeRColate4PD/

Build percolate library
pc36:~ g$ cd /Users/g/Desktop/FolderPd/PeRColate4PD
pc36:PeRColate4PD g$ make arch="i386 x86_64"
++++ info: using Makefile.pdlibbuilder version 0.6.0
++++ info: using Pd API /Applications/
++++ info: making target all in lib percolate
++++ info: making src/absmax~.o in lib percolate
ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)
++++info: target all in lib percolate completed

percolate.pd_darwin is built:
It is a "fat" version: 32bit & 64bit.

pc36:PeRColate4PD g$ lipo -info percolate.pd_darwin
Architectures in the fat file: percolate.pd_darwin are: i386 x86_64
pc36:PeRColate4PD g$ 

Variations by changing the line: make arch="i386 x86_64"
make arch="i386"   builds a 32bit library.
make arch="x86_64"   builds a 64bit library.
make arch="ppc"   builds a PowerPC library.

In the percolate library, the 9 objects "PhiSM models": bamboo~, cabasa~, guiro~, metashake~, sekere~, shaker~, sleigh~, tamb~, wuter~ do not work. And the munger~ object do not work.
The others are working.

percolate.pd_darwin "fat" (32bit & 64bit):
PeRColate: written for Max/MSP by Dan Trueman and R. Luke DuBois
PeRColate: ported to PD by Olaf Matthes <>
PeRColate: adapted to Linux by Maurizio Umberto Puxeddu <>
PeRColate: help files ported by Martin Dupras <>
PeRColate: version: 0.09
PeRColate: compiled: Mar 26 2021, 15:53:12
PeRColate: home:

A use of the percolate library:

[PD] Hints On How To Compile For Mac PPC On An Intel 

Paresys Accueil 26 4 2021     Valid HTML 4.01 Transitional Paresys Home