【编译工具】之macOS10.14编译i386问题

1. mac编译

1.1 编译错误

在mac电脑上编译i386的库时出现以下错误:

The i386 architecture is deprecated for macOS 

1.2 原因

It looks like the SDK libraries (or at least one of them) shipped in the 10.14 SDK are no longer multi-arch and only contain x86_64 sections. You won’t be able to use them to link i386 binaries.
You can probably still use the 10.13 SDK under 10.14, but doing so is likely going to involve lots of fiddling with the build process.

参考网址:

https://github.com/ValveSoftware/Proton/issues/108
https://stackoverflow.com/questions/53610512/i386-architecture-deprecated-in-macos-error

你可能感兴趣的:(【编译工具】)