danomatika / ofxPd

(maintained) a Pure Data addon for OpenFrameworks using libpd
Other
202 stars 45 forks source link

Problem running ofxPd on latest iOS and Xcode #68

Closed sourya-sen closed 5 years ago

sourya-sen commented 5 years ago

This is the error clang: error: the clang compiler does not support '-mtune=native'

sourya-sen commented 5 years ago

Taking -mtune=native out of the C++ compiler flags seems to build the app/project, but unfortunately on the iPad it immediately crashes.

sourya-sen commented 5 years ago

Crash was related to Info.plist not containing a message for microphone usage - but now it works with just taking out -mtune=native from the C++ build flags. If I can find out from where they originate in the actual ofxPd setup, I can send a pull request, but if anyone else is running into this issue, remove that entry from the other C++ compiler flags section. Also add NSMicrophoneUsageDescription in the info.plist file else the app will crash.

danomatika commented 5 years ago

This is most likely an issue with the Project Generator as ofxPd does not come with pre-generated project files. The "-mtune=native" flag is not set within the addon_config.mk either. You should probably open an issue with the Project Generator repository.

As for the mic description, this is required for all apps using microphone input and there is no (easy) way for the Project Generator to add this automatically. I've simply added info on how to do this to the readme for now.

sourya-sen commented 5 years ago

Thanks - raised the issue with Project Generator repo!