crux-toolkit / crux-toolkit

http://crux.ms/
Other
32 stars 26 forks source link

Crux won't build on latest version of MacOS for Apple M1 chip #651

Open CharlesEGrant opened 1 year ago

CharlesEGrant commented 1 year ago

The Proteowizard build includes a build of FreeType which fails on the most recent release of MacOS/XCode for the M1 processor.

ProteoWizard/libraries/freetype-2.4.7/src/base/ftmac.c:150:11: 
error: call to undeclared function 'ATSFontGetFileReference'; 
ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
err = ATSFontGetFileReference( ats_font_id, ats_font_ref );
wsnoble commented 1 year ago

Is there an obvious workaround to this?

I guess our ongoing issue is that pwiz does not actively support MacOS, is that right?

CharlesEGrant commented 1 year ago

It looks like setting -DUSE_LATEST_PWIZ=on for the CMake command line fixes the freetype problem. ProteoWizard must have release an update. However, doing that triggers a problem with the Percolator CMake claiming it can't find an appropriate copy of BOOST. If I comment out that FindPackage call, then everything seems to build on my M1 Mac mini. If I can sort out that problem and the new version of ProteoWizard doesn't cause problems on the other platforms, then we fix this bug by upgrading.