| Summary: | sdl2_ttf make fails on macos bigsur m1 | ||
|---|---|---|---|
| Product: | SDL_ttf | Reporter: | nsklaus |
| Component: | misc | Assignee: | Sam Lantinga <slouken> |
| Status: | NEW --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | cameron.gutman |
| Version: | 2.0.15 | ||
| Hardware: | ARM | ||
| OS: | Mac OS X (All) | ||
| Attachments: | build output | ||
It's because the included FreeType.framework binary doesn't include arm64 code. The same situation is also true for the the Windows builds of libfreetype-6.dll (only x86 and x64, no ARM64). As a workaround, I just grabbed the latest FreeType 2.10.4 source, built for Windows x86+x64+ARM64 and macOS x86_64+ARM64, replaced the bundled binaries in the SDL_ttf source, and then built SDL_ttf. IIRC, it required a few tweaks to the build files to pick up the newer library version, but it wasn't too bad. It would be nice to get new SDL_ttf builds for ARM64 on Windows and macOS, or at least update the prebuilt binaries in the SDL_ttf source tree to have ARM64 builds. |
Created attachment 4647 [details] build output sdl2_ttf make fails from macos bigsur on m1 arch: " ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [libSDL2_ttf.la] Error 1 " i was able to build sdl2, sdl2_image, sdl2_mixer, and sdl2_ttf fails. please see attached build output.