[PD] using bob~ with libpd for android

Alexandre Torres Porres porres at gmail.com
Fri Jun 23 06:48:15 CEST 2017


again, sorry, I need step by step, objective information on what I'd have
to do inside Android Studio to make this happen. If you never used Android
Studio, if you're just giving me general ideas, I get it, but it doesn't do
it for me, unfoirtunately.
thanks

2017-06-23 0:42 GMT-03:00 Giulio Moro <giuliomoro at yahoo.it>:

> What EXTRA=true does when building with the Makefile is that it adds in
> the .o files generated by the .c files in Pure-data/extras to the
> prerequisites for the library and links them in. In practice, if you can
> add the .c files in extras/ so that they get compiled and linked in by your
> project you will be fine.I believe if you move them all in the src/ folder,
> this will probably work just fine. The files in extra/ are no different in
> principle from the ones in src/, they are only stored separately for
> historical reasons afaik.
> Giulio
>
> On 23 Jun 2017, at 04:35, Alexandre Torres Porres <porres at gmail.com>
> wrote:
>
> I just use Android Studio, it has its own environment and scheme, so I
> followed the tutorial by rafael fernandez. This issue is more about using
> libpd inside android studio then building libpd for android. Not sure if
> this makes sense or is in fact true, but it's how I see it.
>
> Seems I have to do something in the code on my project that I don't know
> and all I find on the internet seems to be outdated
>
> cheers
>
> 2017-06-22 23:17 GMT-03:00 Giulio Moro <giuliomoro at yahoo.it>:
>
>> 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 at gmail.com>
>> *To:* Giulio Moro <giuliomoro at yahoo.it>
>> *Cc:* "pd-list at lists.iem.at" <pd-list at 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 something
>>
>> sorry, I'm really a dummy in this field, I need more detailed steps,
>> information
>>
>> thanks
>>
>> 2017-06-22 21:54 GMT-03:00 Giulio Moro <giuliomoro at 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.
>>
>> Giulio
>>
>> On 23 Jun 2017, at 01:33, Alexandre Torres Porres <porres at gmail.com>
>> wrote:
>>
>> Hi, 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
>> <https://www.youtube.com/watch?v=cinOFA1pT1k&list=PLn3ODBv0ka5hS5areRFSTi2aydPMiUq3B>
>> - 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 at lists.iem.at mailing list
>> UNSUBSCRIBE and account-management -> https://lists.puredata.info/
>> listinfo/pd-list <https://lists.puredata.info/listinfo/pd-list>
>>
>>
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20170623/a0c966df/attachment-0001.html>


More information about the Pd-list mailing list