Skip to content

Instantly share code, notes, and snippets.

@jarmitage
Last active July 5, 2023 08:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jarmitage/ddcf5d09c896dd55d338d64b6ee436ce to your computer and use it in GitHub Desktop.
Save jarmitage/ddcf5d09c896dd55d338d64b6ee436ce to your computer and use it in GitHub Desktop.
Compiling PureData externals for Bela

Compiling PureData externals for Bela

git clone --recursive https://github.com/pure-data/helloworld.git
  • Follow the instructions in the repository (and perhaps build the test project to familiarise yourself).

  • Add your sources and patches to the folder (myobject.c, myobject-help.pd, etc).

  • Modify the make command's pdincludepath argument to point at Bela's libpd installation:

make install pdincludepath=/usr/local/include/libpd objectsdir=./build
  • Move the compiled external(s) and patch(es) (myobject.pd_linux, myobject-help.pd, etc) to /root/Bela/projects/pd-externals/.

  • Alternatively, you can set the build output folder to /root/Bela/projects/pd-exernals:

make install pdincludepath=/usr/local/include/libpd objectsdir=/root/Bela/projects/pd-exernals
  • You should now be able to use [myobject] and open [myobject-help] on Bela!

More notes:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment