首页 > 解决方案 > 如何使用 gcc 在 mac 上编译 wine 32 位

问题描述

我正在尝试在 mac 上编译 32 位版本的 wine。当我做

./configure --with-wine64=../wine64

我收到错误“无法构建 32 位程序,您需要安装 32 位开发库。”。

我认为这是因为 xcode 停止支持 32 位库(我有版本 10)。当我这样做时which gcc/usr/bin/gcc我认为我的 gcc 是 xcode 附带的。

我也使用 安装了 gcc brew install gcc,但是当我这样做ls /usr/local/bin/ | grep gcc

gcc-8
gcc-ar-8
gcc-nm-8
gcc-ranlib-8
x86_64-apple-darwin17.7.0-gcc-8
x86_64-apple-darwin17.7.0-gcc-8.2.0
x86_64-apple-darwin17.7.0-gcc-ar-8
x86_64-apple-darwin17.7.0-gcc-nm-8
x86_64-apple-darwin17.7.0-gcc-ranlib-8

所以我想我可以安装一个带有与 32 位支持相关的库的 gcc 并像这样编译 wine。但是现在当我这样做时./configure CC="gcc-8" --with-wine64=../wine64,我得到了

checking whether we are cross compiling... configure: error:
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

如何找到编译 32 位 wine(版本 3.21)的解决方法

标签: c++macosgcccompilationwine

解决方案


推荐阅读