openframeworks / openframeworks/openFrameworks

Android Studio can't compile ofxPd - Maybe be OF config issue

Open
#6,251 5 comments 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.