<div dir="ltr">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.<div>thanks</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-06-23 0:42 GMT-03:00 Giulio Moro <span dir="ltr"><<a href="mailto:giuliomoro@yahoo.it" target="_blank">giuliomoro@yahoo.it</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div></div><div>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.</div><span class="HOEnZb"><font color="#888888"><div>Giulio</div></font></span><div><div class="h5"><div><br>On 23 Jun 2017, at 04:35, Alexandre Torres Porres <<a href="mailto:porres@gmail.com" target="_blank">porres@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">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.<div><br></div><div>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</div><div><br></div><div>cheers</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-06-22 23:17 GMT-03:00 Giulio Moro <span dir="ltr"><<a href="mailto:giuliomoro@yahoo.it" target="_blank">giuliomoro@yahoo.it</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div id="m_-5740513012667773674m_7053667368779494771yui_3_16_0_ym19_1_1497996411656_222101" dir="ltr"><span id="m_-5740513012667773674m_7053667368779494771yui_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="m_-5740513012667773674m_7053667368779494771yui_3_16_0_ym19_1_1497996411656_222101"><span><br></span></div><div id="m_-5740513012667773674m_7053667368779494771yui_3_16_0_ym19_1_1497996411656_222101"><span id="m_-5740513012667773674m_7053667368779494771yui_3_16_0_ym19_1_1497996411656_222177">When I build it for Linux I do something like:</span></div><div id="m_-5740513012667773674m_7053667368779494771yui_3_16_0_ym19_1_1497996411656_222096"><span><br></span></div><div id="m_-5740513012667773674m_7053667368779494771yui_3_16_0_ym19_1_1497996411656_222096"><span id="m_-5740513012667773674m_7053667368779494771yui_3_16_0_ym19_1_1497996411656_222201">`make EXTRA=true <<other options>>`</span></div><div id="m_-5740513012667773674m_7053667368779494771yui_3_16_0_ym19_1_1497996411656_222096"><br></div><div id="m_-5740513012667773674m_7053667368779494771yui_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="m_-5740513012667773674m_7053667368779494771yui_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="m_-5740513012667773674m_7053667368779494771qtdSeparateBR" id="m_-5740513012667773674m_7053667368779494771yui_3_16_0_ym19_1_1497996411656_222029"><br></div><div class="m_-5740513012667773674m_7053667368779494771qtdSeparateBR" id="m_-5740513012667773674m_7053667368779494771yui_3_16_0_ym19_1_1497996411656_222029">Best,</div><div class="m_-5740513012667773674m_7053667368779494771qtdSeparateBR" id="m_-5740513012667773674m_7053667368779494771yui_3_16_0_ym19_1_1497996411656_222029">Giulio<br><br></div><div class="m_-5740513012667773674m_7053667368779494771yahoo_quoted" id="m_-5740513012667773674m_7053667368779494771yui_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="m_-5740513012667773674m_7053667368779494771yui_3_16_0_ym19_1_1497996411656_222048"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif;font-size:16px" id="m_-5740513012667773674m_7053667368779494771yui_3_16_0_ym19_1_1497996411656_222047"> <div dir="ltr" id="m_-5740513012667773674m_7053667368779494771yui_3_16_0_ym19_1_1497996411656_222093"> <font size="2" face="Arial" id="m_-5740513012667773674m_7053667368779494771yui_3_16_0_ym19_1_1497996411656_222094"> <hr size="1" id="m_-5740513012667773674m_7053667368779494771yui_3_16_0_ym19_1_1497996411656_222095"> <b><span style="font-weight:bold">From:</span></b> Alexandre Torres Porres <<a href="mailto:porres@gmail.com" target="_blank">porres@gmail.com</a>><br> <b><span style="font-weight:bold">To:</span></b> Giulio Moro <<a href="mailto:giuliomoro@yahoo.it" target="_blank">giuliomoro@yahoo.it</a>> <br><b><span style="font-weight:bold">Cc:</span></b> "<a href="mailto:pd-list@lists.iem.at" target="_blank">pd-list@lists.iem.at</a>" <<a href="mailto:pd-list@lists.iem.at" target="_blank">pd-list@lists.iem.at</a>><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="m_-5740513012667773674m_7053667368779494771y_msg_container" id="m_-5740513012667773674m_7053667368779494771yui_3_16_0_ym19_1_1497996411656_222046"><br><div id="m_-5740513012667773674m_7053667368779494771yiv5559420558"><div id="m_-5740513012667773674m_7053667368779494771yui_3_16_0_ym19_1_1497996411656_222045"><span><div dir="ltr" id="m_-5740513012667773674m_7053667368779494771yui_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="m_-5740513012667773674m_7053667368779494771yui_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></span><div class="m_-5740513012667773674m_7053667368779494771yiv5559420558gmail_extra" id="m_-5740513012667773674m_7053667368779494771yui_3_16_0_ym19_1_1497996411656_222044"><br clear="none"><div class="m_-5740513012667773674m_7053667368779494771yiv5559420558gmail_quote" id="m_-5740513012667773674m_7053667368779494771yui_3_16_0_ym19_1_1497996411656_222043"><span>2017-06-22 21:54 GMT-03:00 Giulio Moro <span dir="ltr"><<a rel="nofollow" shape="rect" href="mailto:giuliomoro@yahoo.it" target="_blank">giuliomoro@yahoo.it</a>></span>:<br clear="none"></span><div class="m_-5740513012667773674m_7053667368779494771yiv5559420558yqt3675628263" id="m_-5740513012667773674m_7053667368779494771yiv5559420558yqt26887"><blockquote class="m_-5740513012667773674m_7053667368779494771yiv5559420558gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex" id="m_-5740513012667773674m_7053667368779494771yui_3_16_0_ym19_1_1497996411656_222042"><div id="m_-5740513012667773674m_7053667368779494771yui_3_16_0_ym19_1_1497996411656_222041"><span><div></div><div id="m_-5740513012667773674m_7053667368779494771yui_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></span><div id="m_-5740513012667773674m_7053667368779494771yui_3_16_0_ym19_1_1497996411656_222069"><div class="m_-5740513012667773674m_7053667368779494771yiv5559420558h5" id="m_-5740513012667773674m_7053667368779494771yui_3_16_0_ym19_1_1497996411656_222068"><span><div><br clear="none">On 23 Jun 2017, at 01:33, Alexandre Torres Porres <<a rel="nofollow" shape="rect" href="mailto:porres@gmail.com" target="_blank">porres@gmail.com</a>> wrote:<br clear="none"><br clear="none"></div></span><blockquote type="cite" id="m_-5740513012667773674m_7053667368779494771yui_3_16_0_ym19_1_1497996411656_222067"><div id="m_-5740513012667773674m_7053667368779494771yui_3_16_0_ym19_1_1497996411656_222066"><div dir="ltr" id="m_-5740513012667773674m_7053667368779494771yui_3_16_0_ym19_1_1497996411656_222065"><span>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></span><div id="m_-5740513012667773674m_7053667368779494771yui_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" href="https://www.youtube.com/watch?v=cinOFA1pT1k&list=PLn3ODBv0ka5hS5areRFSTi2aydPMiUq3B" id="m_-5740513012667773674m_7053667368779494771yui_3_16_0_ym19_1_1497996411656_222074" target="_blank">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><span><div id="m_-5740513012667773674m_7053667368779494771yui_3_16_0_ym19_1_1497996411656_222075"><br clear="none"></div><div id="m_-5740513012667773674m_7053667368779494771yui_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="m_-5740513012667773674m_7053667368779494771yui_3_16_0_ym19_1_1497996411656_222079"><br clear="none"></div><div id="m_-5740513012667773674m_7053667368779494771yui_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="m_-5740513012667773674m_7053667368779494771yui_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="m_-5740513012667773674m_7053667368779494771yui_3_16_0_ym19_1_1497996411656_222085"><br clear="none"></div></span><pre style="color:rgb(0,0,0);font-family:Menlo;font-size:9pt" id="m_-5740513012667773674m_7053667368779494771yui_3_16_0_ym19_1_1497996411656_222087"><span><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"></span><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><span><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"></span></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><span><blockquote type="cite"><div><span>______________________________ _________________</span><br clear="none"><span><a rel="nofollow" shape="rect" href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list</span><br clear="none"><span>UNSUBSCRIBE and account-management -> <a rel="nofollow" shape="rect" href="https://lists.puredata.info/listinfo/pd-list" target="_blank">https://lists.puredata.info/ listinfo/pd-list</a></span><br clear="none"></div></blockquote></span></div></blockquote></div></div><br clear="none"></div></div></div><br><br></div> </div> </div>  </div></div></div></blockquote></div><br></div>
</div></blockquote></div></div></div></blockquote></div><br></div>