Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为 OSX 构建一个应用程序,目前我Illegal Instruction 4在运行应用程序时收到错误消息。一个 SOF 问题建议添加-mmacosx-version-min=10.7到构建选项中。
Illegal Instruction 4
-mmacosx-version-min=10.7
如何使用当前命令执行此操作:
python setup.py bdist_dmg
distutils将CFLAGS环境变量的内容添加到编译命令中,因此只需设置该变量:
distutils
CFLAGS
CFLAGS=-mmacosx-version-min=10.7 python setup.py bdist_dmg