I have no idea how you build libpd for Android (I also assume that you are building it yourself).When I build it for Linux I do something like:`make EXTRA=true <<other options>>`that flag `EXTRA=true` makes sure that the extras are compiled and linked into the `libpd.so` file.I hope the above can be somehow translated into the system you are using to build libpd for Android.Best,Giulio
From: Alexandre Torres Porres <porres@gmail.com>
To: Giulio Moro <giuliomoro@yahoo.it>
Cc: "pd-list@lists.iem.at" <pd-list@lists.iem.at>
Sent: Friday, 23 June 2017, 3:10
Subject: Re: [PD] using bob~ with libpd for android
> I think you need to make libpd with EXTRA=true or somethingsorry, I'm really a dummy in this field, I need more detailed steps, informationthanks2017-06-22 21:54 GMT-03:00 Giulio Moro <giuliomoro@yahoo.it>:I think you need to make libpd with EXTRA=true or something like that in order to include the extras in the libpd library file without need for extra files.Or at least that's how it works on linux/mac, no idea about android.Just double check in the build log that bob~.o actually gets compiled and linked in.GiulioHi, I'm testing the usage of externals with libpd, sarting with the ones that come with Pd, like [bob~].I'm using libpd for android. I'm on a MacOS Sierra, and using Android Studio's emulator. I made it through Rafael's tutorial https://www.youtube.com/watch? v=cinOFA1pT1k&list= PLn3ODBv0ka5hS5areRFSTi2aydPMi Uq3B - I got a simple patch that turns on by a switch. The emulator uses a Nexus 5 API 24, x86 architecture. So now I just have another simple patch with [noise~] going through [bob~] that I wanted to try and make it happen.So, [bob~] is an extra, and you don't get it by default in libpd, so it seems. I checked around, and was able to compile pd's extra as .so files. In my projects PdCore I got a libs folder with all these compiled externals for armeabi / armeabi-v7a / x86! The binary for bob seems to be "libbob_tilde.so". But having this is not enough for loading it and playing it... what else am I missing?I also did try using PdBase.addToSearchPath in my code in MainActivity.java, I got the idea that would do it, but it didn't, here's how I tried it.private void initPD() throws IOException{
int sampleRate = AudioParameters.suggestSampleR ate();
PdAudio.initAudio(sampleRate, 0, 2, 8, true);
PdBase.addToSearchPath("/ Users/porres/Desktop/ LearningLibPd/HelloPd/PdCore/ libs/x86");
dispatcher = new PdUiDispatcher();
PdBase.setReceiver(dispatcher) ;}cheers______________________________ _________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> https://lists.puredata.info/ listinfo/pd-list