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

Update FreeType to 2.12.1 on Mac (x86_64+arm64 binary) #10

Closed
wants to merge 1 commit into from

Conversation

virusman
Copy link
Contributor

@virusman virusman commented Jun 1, 2022

Replace the library with a universal binary build that contains both x86_64 and arm64, to be able to make arm64 builds of FSO.

@z64555
Copy link
Member

z64555 commented Sep 17, 2022

Mmm, not sure what I should be looking out for here. What all did you do here, and did you need to make any edits to the library or other files?

@virusman
Copy link
Contributor Author

virusman commented Sep 17, 2022

This is to prepare for arm64 support on Mac. The FreeType binary here is x86_64 only, so building an arm64 version of FSO fails on linking with FreeType. I just downloaded the sources and built it with CMAKE_OSX_ARCHITECTURES="x86_64;arm64" cmake ...

@z64555
Copy link
Member

z64555 commented Sep 18, 2022

Ok, were you able to do tests with these changes on your fork?

@notimaginative
Copy link
Contributor

This lib didn't work for me (arm64). It also appears to be a debug build and targets a newer macOS version than what FSO targets.

@virusman
Copy link
Contributor Author

@notimaginative Thanks! Did it not work because you have an older macOS version?

@notimaginative
Copy link
Contributor

Oh, sorry, forgot to say that it didn't link due to unresolved symbols (bz2, ... and something else??). The macOS version thing was a warning generated when it tried to link. FSO targets 10.9. I'm something of a novice here though, so I'm not sure how much of an issue that is.

I did managed to generate a working lib, but without png support. I'm not sure if that's really needed however. Here's what I used:
cmake -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.9" -DCMAKE_BUILD_TYPE=Release -DFT_DISABLE_BZIP2=TRUE -DFT_DISABLE_PNG=TRUE -DFT_DISABLE_HARFBUZZ=TRUE -DFT_DISABLE_BROTLI=TURE ..

I'm on Ventura btw.

@notimaginative
Copy link
Contributor

Closing since it doesn't work properly and there's been no update in a year.

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

Successfully merging this pull request may close these issues.

None yet

3 participants