You need the board to be connected to the internet.
Start off installing the
python package manager:
apt-get install -y python-pip python-setuptools
then, (almost) straight off the
git clone https://github.com/enzienaudio/hvcc.git
pip install -r requirements.txt
python2.7 ~/hvcc/hvcc.py /path/to/source/project/_main.pd -o /tmp/hvtmp -n bela -g c
mkdir -p ~/Bela/projects/HeavyProjectName
rsync -av ~/Bela/scripts/hvresources/render.cpp /tmp/hvtmp/c/* ~/Bela/projects/HeavyProjectName/
make -C ~/Bela PROJECT=HeavyProjectName COMPILER=gcc run
/path/to/source/project/ with the path to the source project, e.g.:
HeavyProjectName with the name of the project you want to create containing the heavy stuff.
With this approach, you have two different folders:
/path/to/source/project that contains the
_main.pd file and
~/Bela/projects/HeavyProjectName that contains the generated C++ code. You could for instance access the first from the IDE (to drag and drop Pd patches) and the second one through the terminal ( in fact the last command above runs it in the terminal).
At some point we are going to implement a toggle switch in the IDE to build a project as either
libpd or Heavy, but that will have to wait a bit.