<div class="gmail_extra">Hi Ed,</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks for the advice, although I don't think this piece of work warrants changing our audio engine :)</div><div class="gmail_extra">
<br></div><div class="gmail_extra">ofxPd looks cool though, what's sort of app are you making? (If you can say). </div><div class="gmail_extra"><br></div><div class="gmail_extra">Cheers,</div><div class="gmail_extra">
Joe<br><br><div class="gmail_quote">On 27 April 2012 02:05, Ed Kelly <span dir="ltr"><<a href="mailto:morph_2016@yahoo.co.uk" target="_blank">morph_2016@yahoo.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div><span>Hi Joe,</span></div><div><br><span></span></div><div><span>Have you thought of using ofxPd?</span></div><div><br><span></span></div>
<div><span>I'm involved in the creation of an app for the iPhone right now, and we're using ofxPd from Dan Wilcox:</span></div><div><span><a href="https://github.com/danomatika/ofxPd" target="_blank">https://github.com/danomatika/ofxPd</a></span></div>
<div><span>Since Openframeworks is a bunch of C++ wrappers for various libraries, ofxPd adds Pd to the libraries that you can work with in C++.</span></div><div><span>Then you can call the setup function within the xcode build, and your object will work in libpd (i.e. ofxPd) in the app environment.</span></div>
<div><span>Bear in mind that Apple do not like GnuGPL licensed stuff, so I've created BSD licensed versions of some of my own Pd externals for this project.<br></span></div><div><br></div><div>And the
app works. We're in the final stages now, so I'll post to the list when it's complete!</div><div>Best,</div><div>Ed<br><span></span></div><div> </div><div>Gemnotes-0.1alpha: Live music notation for Pure Data<br>
<a href="http://sharktracks.co.uk/" target="_blank">http://sharktracks.co.uk/</a><br></div> <div style="font-family:times new roman,new york,times,serif;font-size:12pt"> <div style="font-family:times new roman,new york,times,serif;font-size:12pt">
<div dir="ltr"> <font face="Arial"> <hr size="1"> <b><span style="font-weight:bold">From:</span></b> Joe White <<a href="mailto:white.joe4@gmail.com" target="_blank">white.joe4@gmail.com</a>><br> <b><span style="font-weight:bold">To:</span></b> pd-list <<a href="mailto:pd-list@iem.at" target="_blank">pd-list@iem.at</a>> <br>
<b><span style="font-weight:bold">Sent:</span></b> Thursday, 26 April 2012, 16:51<br> <b><span style="font-weight:bold">Subject:</span></b> [PD] [Pd] Compile external with C++ compiler?<br> </font> </div><div><div>
<br><div>Hi all,<div><br></div><div>Thought I might as well ask this here
because you guys know everything :)</div><div><br></div><div>I'm writing an external to be built into an iOS app that's running Pd. The catch is I need to interface with a C++ library within the external. </div>
<div><br></div><div>The external builds and runs fine if I'm using the C compiler (in Xcode) but I can't access the C++ library functions. If I switch it to compile in C++ (by changing the objective-c file from .m to .mm) then I can use the C++ library functions but it complains that it can't find 'class_addmethod'</div>
<div><br></div><div> <i>'No matching function for call to 'class_addmethod'</i></div><div><br></div><div>I've tried declaring the setup function as C code like Katja <a rel="nofollow" href="http://www.katjaas.nl/pitchshift/soundtouch%7E.html" target="_blank">explains on her site</a>:</div>
<div>
<div><span> extern</span> <span>"C"</span> <span>void</span> external_tilde_setup(<span>void</span>) { }</div><div><div><div>But that still didn't seem to work. I was also going through the list and found <a rel="nofollow" href="http://lists.puredata.info/pipermail/pd-list/2002-02/004485.html" target="_blank">this thread</a> but I'm not sure if it's the right approach. Plus I'm more of an audio guy than programmer :)</div>
<div><br></div><div>Any ideas would be much appreciated.</div><div><br></div><div>Thanks,</div><div>Joe</div><div><br></div>-- <br>Follow me on Twitter @diplojocus<br>
</div></div></div>
</div><br></div></div>_______________________________________________<br><a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> mailing list<br>UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br><br> </div> </div> </div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Follow me on Twitter @diplojocus<br>
</div>