c++ - 如何使用 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)的解决方法
解决方案
推荐阅读
- asp.net - Asp.Net中Data Pager控件的本地化
- html - 两个动态创建的表中行的相等高度,使用JQuery
- azure - 通过在 Azure AD 条件访问策略中配置登录频率来延长应用程序会话令牌时间不起作用
- python - Pandas iloc 返回单元格索引而不是值
- android - XML 从另一个 XML 文件中获取值
- python - 如果我要写入 Json 文件的数据结构不正确,我该怎么办?
- c# - 接受 C# 中所有类型的输入的单个 Web API 请求
- amazon-web-services - 通过tableplus连接RDS eb2?
- data-visualization - Tableau:在一个视觉对象中添加 3 条不同的路径(条形、线条和虚线)线
- java - Spring FileSystemResource NoSuchFileException