简体   繁体   English

如何在10.6上为OS X 10.5构建Qt

[英]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.

相关问题 如何在Mac OS X 10.6上构建一个运行10.5的PyObjC项目? - How to build a PyObjC project on Mac OS X 10.6, that runs 10.5? Qt OS 10.6内部版本未在OS 10.5和更低版本上运行 - Qt OS 10.6 build not running on OS 10.5 and less 如何在Mac OS X 10.5 / 10.6的Qt 4.4中从Apple地址簿中接收拖放 - How to receive drag and drop from Apple Address book in Qt 4.4 on Mac OS X 10.5/10.6 如何在Mac OS X 10.6上编译Mac OS X 10.5的python扩展? - How do I compile python extensions for Mac OS X 10.5, on Mac OS X 10.6? 如何在Mac OS X 10.5 / 10.6上安装启动代理 - How to install launch agent on Mac os x 10.5 / 10.6 如何制作在Mac OS X 10.5和10.6上运行的fortran可执行文件 - How to make a fortran executable that runs on Mac OS X 10.5 and 10.6 在Mac OS 10.5 / 10.6中如何在不使用OpenSSL的情况下解密河豚加密的字符串 - How can I decrypt blowfish encrypted string without using OpenSSL in Mac OS 10.5/10.6 如何在Mac OS X 10.6上将clang更新为3.3 - How can I update clang to 3.3 on Mac OS X 10.6 在OS X 10.5 / 10.6中检索自己进程的内存映射 - Retrieving the memory map of its own process in OS X 10.5/10.6 将OS X部署目标从10.6更改为10.5 clang错误 - Change OS X deployment target from 10.6 to 10.5 clang error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM