ofxPd | Pure Data addon for OpenFrameworks using libpd | Addon library
kandi X-RAY | ofxPd Summary
kandi X-RAY | ofxPd Summary
ofxPd is an Open Frameworks addon for running an instance of the Pure Data audio environment within an openFrameworks application. Audio, messages, and [MIDI] events can be passed to and from pure data patches and the library is thread safe. [Pure Data] is a graphical patching environment for audio and multimedia (note: the gui and graphics features are not within the scope of this addon). [openFrameworks] is a cross platform open source toolkit for creative coding in C++.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ofxPd
ofxPd Key Features
ofxPd Examples and Code Snippets
Community Discussions
Trending Discussions on ofxPd
QUESTION
I'm trying to run ofxPd example on Android devices using Android Studio on OSX.
First of all, I could successfully compile and run of_v0.9.8_android_release/examples/android/androidEmptyExample on Android Studio.
But I wasn't sure how to properly add ofxPd addon on top of the androidEmptyExample. So I just tried locating ofxPd folder into androidEmptyExample/src but when I build it, It fails with the errors as you can see in the screenshot below.
I thought it has to do with C Flags so I added them on androidEmptyExample/jni/Android.mk file but it doesn't seem to have any effect. How can I properly add C Flags on Android Studio? Many thanks!
UPDATE : I removed ofxPd folder in of_v0.9.8_android_release/examples/android/androidEmptyExample and I added 'ofxPd' at the end of androidEmptyExample/addons.make file instead.
When I build it, now it always gets stuck in the middle of the build.
It gets stuck while compiling one of C files in ofxPd/libs/libpd/pure-data/src folder. I tried this many times but it never progressed further once it gets stuck. (Once I've waited for over 40 minutes but no progress at all)
The result was the same regardless of the C Flags. I would appreciate any suggestion. Thanks!
...ANSWER
Answered 2017-Jun-12 at 11:49I solved the problem thanks to Arturo from OF forum. I could successfully run ofxPd example on my Android device. Thanks!
Arturo :
i remember having this same problem with android studio, try running make from a console using:
make PLATFORM_OS=Android Debug
once it's built android studio shouldn't need to rebuild it and the next time you change something it will only need to build that file and hopefully won't get stuck
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ofxPd
Place ofxPd within a folder in the apps folder of the OF dir tree:.
In order to use libpd with ofxPd in a Visual Studio project, you need a libpd.lib and libpd.dll libraries built using MinGW (Minimal GNU for Windows) which provides a Unix command shell and compiler.
Set up Msys2/MinGW: see https://github.com/libpd/libpd#windows Make sure to follow all steps in the Msys2 setup instructions, ie. updating packages after install
Open an Msys2 shell (64 bit)
Build libpd: make
Install libpd to a temp folder: make install prefix=build/libpd
Delete the ofxPd ofxPd/libs/libpd folder
Copy libpd/build/libpd into ofxPd/libs
Set "x64" target
Project → Properties
Make sure Active configuration & platform are set (you will need to do this for both Debug & Release builds)
Configuration Properties → Linker → Input
Additional Dependencies → click on right hand drop down, choose Edit…
Add the path libpd.lib: $(OF_ROOT)\addons\ofxPd\libs\libpd\lib\libpd.lib
libpd/build/libpd/lib/libpd.dll
libpd/libs/mingw64/libwinpthread-1.dll
Open an Msys2 shell (32 bit)
Build libpd using make
Set the "Win32" target in your VS project before setting the libpd.lib path
Copy pthread from the "mingw32" folder: libpd/libs/mingw32/libwinpthread-1.dll
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page