[英]How can I build Qt for OS X 10.5 on 10.6
I'm trying to build a static, universal Qt from source on Mac OS X 10.6 using the following command: 我正在尝试使用以下命令在Mac OS X 10.6上从源代码构建静态的通用Qt:
sh configure -static -opensource -universal
The problem, I have been told, is that PPC is not supported on 10.6 so I am getting many errors and the build eventually fails. 有人告诉我,问题是10.6不支持PPC,所以我遇到了很多错误,并且构建最终失败了。
So I need to build for a different target version of OS X - 10.4 or 10.5. 因此,我需要为OS X的其他目标版本构建-10.4或10.5。 How can I do that? 我怎样才能做到这一点? Do I need to add some parameters to my configure line and, if so, which ones? 我是否需要在配置行中添加一些参数,如果需要,哪些参数?
Try using the -sdk
option to configure. 尝试使用-sdk
选项进行配置。 eg 例如
./configure -sdk /Developer/SDKs/MacOSX10.5.sdk -opensource -universal
...if you want to make binaries targeting OSX 10.5 and later. ...如果要制作针对OSX 10.5及更高版本的二进制文件。
Statically linking is a separate issue again. 静态链接又是一个单独的问题。 I would not recommend it, especially since OSX already supports app bundles anyway, which I believe gives most of the same benefits to the end-user as static linking. 我不推荐这样做,特别是因为OSX已经支持应用程序捆绑包,我相信它可以为最终用户带来与静态链接相同的大部分好处。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.