<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1497996411656_222101" dir="ltr"><span id="yui_3_16_0_ym19_1_1497996411656_222100">I have no idea how you build libpd for Android</span> (I also assume that you are building it yourself).</div><div id="yui_3_16_0_ym19_1_1497996411656_222101"><span><br></span></div><div id="yui_3_16_0_ym19_1_1497996411656_222101"><span id="yui_3_16_0_ym19_1_1497996411656_222177">When I build it for Linux I do something like:</span></div><div id="yui_3_16_0_ym19_1_1497996411656_222096"><span><br></span></div><div id="yui_3_16_0_ym19_1_1497996411656_222096"><span id="yui_3_16_0_ym19_1_1497996411656_222201">`make EXTRA=true <<other options>>`</span></div><div id="yui_3_16_0_ym19_1_1497996411656_222096"><br></div><div id="yui_3_16_0_ym19_1_1497996411656_222096" dir="ltr">that flag `EXTRA=true` makes sure that the extras are compiled and linked into the `libpd.so` file.</div><div id="yui_3_16_0_ym19_1_1497996411656_222096" dir="ltr">I hope the above can be somehow translated into the system you are using to build libpd for Android.</div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1497996411656_222029"><br></div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1497996411656_222029">Best,</div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1497996411656_222029">Giulio<br><br></div><div class="yahoo_quoted" id="yui_3_16_0_ym19_1_1497996411656_222049" style="display: block;">  <div style="font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1497996411656_222048"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1497996411656_222047"> <div dir="ltr" id="yui_3_16_0_ym19_1_1497996411656_222093"> <font size="2" face="Arial" id="yui_3_16_0_ym19_1_1497996411656_222094"> <hr size="1" id="yui_3_16_0_ym19_1_1497996411656_222095"> <b><span style="font-weight:bold;">From:</span></b> Alexandre Torres Porres <porres@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> Giulio Moro <giuliomoro@yahoo.it> <br><b><span style="font-weight: bold;">Cc:</span></b> "pd-list@lists.iem.at" <pd-list@lists.iem.at><br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, 23 June 2017, 3:10<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [PD] using bob~ with libpd for android<br> </font> </div> <div class="y_msg_container" id="yui_3_16_0_ym19_1_1497996411656_222046"><br><div id="yiv5559420558"><div id="yui_3_16_0_ym19_1_1497996411656_222045"><div dir="ltr" id="yui_3_16_0_ym19_1_1497996411656_222052">> <span style="font-size:12.8px;">I think you need to make libpd with EXTRA=true or something</span><div><span style="font-size:12.8px;"><br clear="none"></span></div><div id="yui_3_16_0_ym19_1_1497996411656_222051"><span style="font-size:12.8px;">sorry, I'm really a dummy in this field, I need more detailed steps, information</span></div><div><span style="font-size:12.8px;"><br clear="none"></span></div><div><span style="font-size:12.8px;">thanks</span></div></div><div class="yiv5559420558gmail_extra" id="yui_3_16_0_ym19_1_1497996411656_222044"><br clear="none"><div class="yiv5559420558gmail_quote" id="yui_3_16_0_ym19_1_1497996411656_222043">2017-06-22 21:54 GMT-03:00 Giulio Moro <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:giuliomoro@yahoo.it" target="_blank" href="mailto:giuliomoro@yahoo.it">giuliomoro@yahoo.it</a>></span>:<br clear="none"><div class="yiv5559420558yqt3675628263" id="yiv5559420558yqt26887"><blockquote class="yiv5559420558gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;" id="yui_3_16_0_ym19_1_1497996411656_222042"><div id="yui_3_16_0_ym19_1_1497996411656_222041"><div></div><div id="yui_3_16_0_ym19_1_1497996411656_222040">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.</div><div>Or at least that's how it works on linux/mac, no idea about android.</div><div><br clear="none"></div><div>Just double check in the build log that bob~.o actually gets compiled and linked in.</div><div><br clear="none"></div><div>Giulio</div><div id="yui_3_16_0_ym19_1_1497996411656_222069"><div class="yiv5559420558h5" id="yui_3_16_0_ym19_1_1497996411656_222068"><div><br clear="none">On 23 Jun 2017, at 01:33, Alexandre Torres Porres <<a rel="nofollow" shape="rect" ymailto="mailto:porres@gmail.com" target="_blank" href="mailto:porres@gmail.com">porres@gmail.com</a>> wrote:<br clear="none"><br clear="none"></div><blockquote type="cite" id="yui_3_16_0_ym19_1_1497996411656_222067"><div id="yui_3_16_0_ym19_1_1497996411656_222066"><div dir="ltr" id="yui_3_16_0_ym19_1_1497996411656_222065">Hi, I'm testing the usage of externals with libpd, sarting with the ones that come with Pd, like [bob~].<div><br clear="none"></div><div id="yui_3_16_0_ym19_1_1497996411656_222064">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 <a rel="nofollow" shape="rect" target="_blank" href="https://www.youtube.com/watch?v=cinOFA1pT1k&list=PLn3ODBv0ka5hS5areRFSTi2aydPMiUq3B" id="yui_3_16_0_ym19_1_1497996411656_222074">https://www.youtube.com/watch? v=cinOFA1pT1k&list= PLn3ODBv0ka5hS5areRFSTi2aydPMi Uq3B</a> - 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. </div><div id="yui_3_16_0_ym19_1_1497996411656_222075"><br clear="none"></div><div id="yui_3_16_0_ym19_1_1497996411656_222076">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?</div><div id="yui_3_16_0_ym19_1_1497996411656_222079"><br clear="none"></div><div id="yui_3_16_0_ym19_1_1497996411656_222083">I also did try using <span style="color:rgb(0,0,0);font-family:Menlo;font-size:9pt;" id="yui_3_16_0_ym19_1_1497996411656_222082"><i>PdBase.addToSearchPath</i>  in my code in MainActivity.java, I got the idea that would do it, but it didn't, here's how I tried it.</span></div><div id="yui_3_16_0_ym19_1_1497996411656_222085"><br clear="none"></div><pre style="color:rgb(0,0,0);font-family:Menlo;font-size:9pt;" id="yui_3_16_0_ym19_1_1497996411656_222087"><span style="color:rgb(0,0,128);font-weight:bold;">private void </span>initPD() <span style="color:rgb(0,0,128);font-weight:bold;">throws </span>IOException{<br clear="none">    <span style="color:rgb(0,0,128);font-weight:bold;">int </span>sampleRate = AudioParameters.<span style="font-style:italic;">suggestSampleR ate</span>();<br clear="none">    PdAudio.<span style="font-style:italic;">initAudio</span>(sampleRate, <span style="color:rgb(0,0,255);">0</span>, <span style="color:rgb(0,0,255);">2</span>, <span style="color:rgb(0,0,255);">8</span>, <span style="color:rgb(0,0,128);font-weight:bold;">true</span>);<br clear="none"><br clear="none"><b>    PdBase.<span style="font-style:italic;">addToSearchPath</span>(<span style="color:rgb(0,128,0);">"/ Users/porres/Desktop/ LearningLibPd/HelloPd/PdCore/ libs/x86"</span>);<br clear="none"></b><br clear="none">    <span style="color:rgb(102,14,122);font-weight:bold;">dispatcher </span>= <span style="color:rgb(0,0,128);font-weight:bold;">new </span>PdUiDispatcher();<br clear="none">    PdBase.<span style="font-style:italic;">setReceiver</span>(<span style="color:rgb(102,14,122);font-weight:bold;">dispatcher</span>) ;<br clear="none"></pre><div><span style="color:rgb(0,0,0);font-family:Menlo;font-size:9pt;">}</span> </div><div><br clear="none"></div><div>cheers</div></div>
</div></blockquote></div></div><blockquote type="cite"><div><span>______________________________ _________________</span><br clear="none"><span><a rel="nofollow" shape="rect" ymailto="mailto:Pd-list@lists.iem.at" target="_blank" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list</span><br clear="none"><span>UNSUBSCRIBE and account-management -> <a rel="nofollow" shape="rect" target="_blank" href="https://lists.puredata.info/listinfo/pd-list">https://lists.puredata.info/ listinfo/pd-list</a></span><br clear="none"></div></blockquote></div></blockquote></div></div><br clear="none"></div></div></div><br><br></div> </div> </div>  </div></div></body></html>