Re: qt5 does not build, missing functions?

Daniel Macks <[email protected]>
Newsgroups gmane.os.apple.fink.general
Message-ID <[email protected]>
On 7/4/23, 6:30 AM, "Hanspeter Niederstrasser" <[email protected]> wrote:
>
 >   On 6/30/23 6:31 AM, Scott Hannahs via Fink-users wrote:
 >   > When running “fink update qt5-mac-qtbase”, I get a compiler error.  Seems that “ATSFontNotify” and related functions do not exist anymore.  They were deprecated a long time ago.  I see that the current qt5-mac release is 5.15.2 and maybe that resolves issues with later OS versions?
>
>
>    This is going to force a decision because qt5.15 has a minimum version 
>    of macOS 10.13 and I'm not sure if it's perfectly compatible with 
>    earlier Qt versions. So can't just make an OS specific release of the 
>    qt5-mac-qtbase and siblings packages, but if we put qt5.15 as a new 
>    package, we'll have to also split things that use qt5 into different 
>    OS-specific packages.

As one quick hack (I know nothing about the qt codebase), in fontdatabases/mac/qcoretextfontdatabase_p.h remove the "#define HAVE_ATS". That doesn't solve anything except stopping invocation of the long-deprecated ATS* APIs. I'm on 10.13, where all the warnings such as:

fontdatabases/mac/qcoretextfontdatabase.mm:724:17: warning: 'ATSFontActivateFromMemory' is deprecated: first deprecated in ma\
cOS 10.8 - Use CTFontManagerRegisterFontForData() or CGFontCreateWithDataProvider() w/ CTFontManagerRegisterGraphicsFont() [-\
Wdeprecated-declarations]
            e = ATSFontActivateFromMemory((void *) fontData.constData(), fontData.size(),
                ^

are gone.

dan





_______________________________________________
Fink-users mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.