- Clone the example
pd-lib-builder
project to 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'spdincludepath
argument to point at Bela'slibpd
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: