Hi, I'm trying to integrate libpd onto a java project that by now uses OSC messages for communicatting with the pure data patches related to it. How should I start integratting it if I'm using Eclipse? I'm looking for newby-oriented-advice! Thanx so much!
What platform are you targeting, e.g., Android, Linux, Mac?
BUMP. Guess he never came back, but I want to know this as well. I've built a standalone Java desktop app that is receiving a UDP stream of audio from the libpd Android app I built on my phone. It works decently, but it would also be useful to be able to include libpd in my Java app and use the phone or tablet as a controller. How does one go about building libpd just for straight Java? I'm on a WIndows PC for this, but a platform independent solution would of course be ideal.
OK after a bit more searching I found this thread
http://createdigitalnoise.com/discussion/661/straight-java-example-for-libpd/p1
asking the same thing, and see Peter provided an example at
https://github.com/libpd/libpd/tree/master/samples/com/noisepages/nettoyeur/libpd/sample
So I set up a test app, added pd.core as a library to Java Build Path in eclipse, and imported PdBase, but it throws a runtime error 'couldn't find pdnative.dll.' It's not mentioned in the example so I'm stuck.
[EDIT] OK so after more digging I found the libpd-java-build project:
https://github.com/airbaggins/libpd-java-build
as per the quickstart instructions, I included libpd.jar in my Java app and BAM it works ; ) Thanks much to airbaggins for making that, and to Peter again for making libpd and that example.
FYI: There's also a new branch of libpd that uses PortAudio directly, i.e., it's a cross-platform solution that doesn't depend on JavaSound. Check it out: https://github.com/libpd/libpd/tree/portaudio
The portaudio branch is still experimental, though. In particular, the Makefile hasn't yet been updated for Windows. It would be great if you would figure out how to build the portaudio branch on Windows.
It looks like you're new here. If you want to get involved, click one of these buttons!