Skip to content

Instantly share code, notes, and snippets.

@bdentino
Created March 17, 2014 02:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bdentino/9592695 to your computer and use it in GitHub Desktop.
Save bdentino/9592695 to your computer and use it in GitHub Desktop.
Qt 5.3.0-alpha build errors (qtbase) compiling for iOS
/Users/bdentino/Qt/5.3.0a/Source/qtbase/src/platformsupport/fontdatabases/mac/qcoretextfontdatabase.mm:542:43: error: use of undeclared identifier 'kATSFontContextLocal'
kATSFontContextLocal, kATSFontFormatUnspecified, NULL,
^
/Users/bdentino/Qt/5.3.0a/Source/qtbase/src/platformsupport/fontdatabases/mac/qcoretextfontdatabase.mm:545:19: error: variable has incomplete type 'FSRef'
FSRef ref;
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h:467:8: note: forward declaration of 'FSRef'
struct FSRef;
^
/Users/bdentino/Qt/5.3.0a/Source/qtbase/src/platformsupport/fontdatabases/mac/qcoretextfontdatabase.mm:566:43: error: call to unavailable function 'CTFontCreateWithPlatformFont': not available on iOS
QCFType<CTFontRef> font = CTFontCreateWithPlatformFont(containedFonts[i], 12.0, NULL, NULL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFont.h:1167:11: note: candidate function has been explicitly made unavailable
CTFontRef CTFontCreateWithPlatformFont(
^
/Users/bdentino/Qt/5.3.0a/Source/qtbase/src/platformsupport/fontdatabases/mac/qcoretextfontdatabase.mm:628:41: error: use of undeclared identifier 'ATSFontContainerRef'
if (font.canConvert(qMetaTypeId<ATSFontContainerRef>())) {
^
/Users/bdentino/Qt/5.3.0a/Source/qtbase/src/platformsupport/fontdatabases/mac/qcoretextfontdatabase.mm:629:42: error: use of undeclared identifier 'ATSFontContainerRef'
ATSFontDeactivate(font.value<ATSFontContainerRef>(), 0, kATSOptionFlagsDoNotNotify);
^
/Users/bdentino/Qt/5.3.0a/Source/qtbase/src/platformsupport/fontdatabases/mac/qcoretextfontdatabase.mm:629:62: error: expected unqualified-id
ATSFontDeactivate(font.value<ATSFontContainerRef>(), 0, kATSOptionFlagsDoNotNotify);
^
/Users/bdentino/Qt/5.3.0a/Source/qtbase/src/platformsupport/fontdatabases/mac/qcoretextfontdatabase.mm:637:19: error: use of undeclared identifier 'kATSFontNotifyActionFontsChanged'
ATSFontNotify(kATSFontNotifyActionFontsChanged, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment