openframeworks / openframeworks/openFrameworks
Android Studio can't compile ofxPd - Maybe be OF config issue
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
I'm trying to add ofxPd to project. I'm cross-posting here since the ofxPd developer and I think this could be a core issue. https://github.com/danomatika/ofxPd/issues/70
Reproduction:
Download latest Android OF version from website
Clone ofxPD to addon folder
Use project generator to import pdExample
Open generated Android project pdExample
Build
Error
C compiler failed while compiling s_libpdmidi.c.
It appears if I add to the build.gradle file CFlags.addAll(addonCppFlags(abi, ofRoot())) after cppFlags.addAll(addonCppFlags(abi, ofRoot())) this particular error goes away. It does appear that not all CFlags/CPPFlags are getting set though.
It's hard to say if the build issue is related to ofxPd or changes in OF. Any insights would help.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure by generating and building the pdExample Android project with ofxPd, then inspect its generated build.gradle and the CFlags/CPPFlags setup. Confirm whether the missing flags cause s_libpdmidi.c to fail and document a verified build configuration fix or the responsible project component.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, cpp
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100