Hi! Thanks giuliomoro for the detailed instructions about compiling externals. I have compiled and successfully used externals like zexy and cyclone in Bela. It was easy and I had no issues following the instructions.
Yesterday I compiled the Pure Data external timbreID (source is here: https://github.com/wbrent/timbreID) in a Bela Mini which some other people (@lokki ) found interesting. I followed the same instructions. Compilation and installation took a couple of minutes maximum.
However I am having a bad time: Pd does not create the objects. I thought it should be similar to zexy, but it doesnt work for me.
This is what I did and how I am testing it :
- I compiled and installed with
make PDINCLUDEDIR=/usr/local/include/libpd/
(some .h files like g_canvas.h were needed so I copied them to /usr/local/include/libpd/ from https://github.com/giuliomoro/pure-data)
make PDINCLUDEDIR=/usr/local/include/libpd/ PDLIBDIR=/root/Bela/projects/pd-externals/ install

These are the first three lines of this _main.pd:
#N canvas 381 151 391 472 10;
#X declare -path ~/Bela/projects/pd-externals/timbreIDLib;
#X obj 35 37 declare -path ~/Bela/projects/pd-externals/timbreIDLib
;
When I try it, I only get in the infamous "error: ... couldn't create":
- I tested it with the rPi binary: same result.
- I copied timbreIDLib.pd_linux to ~/Bela/projects/pd-externals.
- I tried with [zeroCrossing~] and [timbreIDLib/zeroCrossing~] as well as with various versions of the [declare]
Is there anything I am not considering here?
Thanks in advance!!