<div dir="ltr">> <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></span></div><div><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></span></div><div><span style="font-size:12.8px">thanks</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-06-22 21:54 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>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></div><div>Just double check in the build log that bob~.o actually gets compiled and linked in.</div><div><br></div><div>Giulio</div><div><div class="h5"><div><br>On 23 Jun 2017, at 01:33, 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">Hi, I'm testing the usage of externals with libpd, sarting with the ones that come with Pd, like [bob~].<div><br></div><div>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 href="https://www.youtube.com/watch?v=cinOFA1pT1k&list=PLn3ODBv0ka5hS5areRFSTi2aydPMiUq3B" target="_blank">https://www.youtube.com/watch?<wbr>v=cinOFA1pT1k&list=<wbr>PLn3ODBv0ka5hS5areRFSTi2aydPMi<wbr>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><br></div><div>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><br></div><div>I also did try using <span style="color:rgb(0,0,0);font-family:Menlo;font-size:9pt"><i>PdBase.addToSearchPath</i> <wbr>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><br></div><pre style="color:rgb(0,0,0);font-family:Menlo;font-size:9pt"><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>    <span style="color:rgb(0,0,128);font-weight:bold">int </span>sampleRate = AudioParameters.<span style="font-style:italic">suggestSampleR<wbr>ate</span>();<br>    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><br><b>    PdBase.<span style="font-style:italic">addToSearchPath</span>(<span style="color:rgb(0,128,0)">"/<wbr>Users/porres/Desktop/<wbr>LearningLibPd/HelloPd/PdCore/<wbr>libs/x86"</span>);<br></b><br>    <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>    PdBase.<span style="font-style:italic">setReceiver</span>(<span style="color:rgb(102,14,122);font-weight:bold">dispatcher</span>)<wbr>;<br></pre><div><span style="color:rgb(0,0,0);font-family:Menlo;font-size:9pt">}</span> </div><div><br></div><div>cheers</div></div>
</div></blockquote></div></div><blockquote type="cite"><div><span>______________________________<wbr>_________________</span><br><span><a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list</span><br><span>UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" target="_blank">https://lists.puredata.info/<wbr>listinfo/pd-list</a></span><br></div></blockquote></div></blockquote></div><br></div>