Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS8] fix kAudioFormatFlagsCanonical deprecation warning #16

Closed
borg opened this issue Oct 6, 2014 · 2 comments
Closed

[iOS8] fix kAudioFormatFlagsCanonical deprecation warning #16

borg opened this issue Oct 6, 2014 · 2 comments

Comments

@borg
Copy link

borg commented Oct 6, 2014

Trying to compile for iOS8 I updated wscript to SDKVER="8.0"
but I still get compile errors.

[26/49] c: src/spectral/fft.c -> build/src/spectral/fft.c.1.o
../src/io/audio_unit.c:236:30: warning: 'kAudioFormatFlagsCanonical' is deprecated: The concept of canonical formats is deprecated [-Wdeprecated-declarations]
audioFormat.mFormatFlags = kAudioFormatFlagsCanonical;
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/CoreAudioTypes.h:558:5: note: 'kAudioFormatFlagsCanonical' has been explicitly marked deprecated here

warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: archive library: src/libaubio.a will be fat and ar(1) will not be able to operate on it
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: for architecture: armv7 file: src/libaubio.a(sink_sndfile.c.1.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: for architecture: armv7 file: src/libaubio.a(source_avcodec.c.1.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: for architecture: armv7 file: src/libaubio.a(source_sndfile.c.1.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: for architecture: armv7s file: src/libaubio.a(sink_sndfile.c.1.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: for architecture: armv7s file: src/libaubio.a(source_avcodec.c.1.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: for architecture: armv7s file: src/libaubio.a(source_sndfile.c.1.o) has no symbols

sudo ./waf install --destdir ./dist-ios
Reports successful but in Xcode:
Undefined symbols for architecture armv7:
"_aubio_pitchdetection", referenced from:

I didn't try in iOS7 and haven't got that SDK any longer so not sure what to expect. Should it work?

Is pkg-config required?
Checking for program pkg-config : not found

Many thanks!

@borg
Copy link
Author

borg commented Oct 7, 2014

Nevermind, easier to just include the source

@piem
Copy link
Member

piem commented Nov 14, 2014

The deprecation warning should not be much of a problem yet. I will look into it.

The no symbols warnings are normal, since you compile without libav* or libsndfile.

The missing aubio_pitchdetection is strange, since there is no symbol with such name in the library. Maybe something you modified on your copy?

@piem piem changed the title iOS8 [iOS8] fix kAudioFormatFlagsCanonical deprecation warning Nov 14, 2014
@piem piem closed this as completed in 9d46f60 Aug 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants