Qt 4.6 在 Snow Leopard 上默认使用 Cocoa 编译吗?
在工作中,我被告知要使用 cocoa 标志配置和构建 Qt 4.6
./configure -cocoa
,相反,我只是在 Mac OS X 10.6 机器上运行没有任何标志的配置。
这是否意味着我必须重新配置,或者 Cocoa 在 Snow Leopard 中默认链接?
或者,如何检查我的 Qt 版本是否与可可链接?
At work, I was told to configure and build Qt 4.6 with the cocoa flag
./configure -cocoa
Instead I just ran configure without any flags on my Mac OS X 10.6 machine.
Does that mean I have to reconfigure or is cocoa linked by default in Snow Leopard?
Alternatively, how can I check if my Qt build is linked against cocoa?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
使用项目设置您的 qt 来构建 64 位或 32/64 混合版本。如果它构建并链接,它可可!
Set your qt using project to build for 64bit or 32/64 hybrid. If it builds and links, it cocoa!
再次运行
configure
不是最快吗?Wouldn't it be quickest just to run
configure
again?根据这篇文章
-cocoa
仅是 4.6 中 64 位版本的默认设置 - 您必须提供-cocoa
或-arch x86_64
。如果您想确保询问
configure
其选项并查找默认值。According to this post
-cocoa
is only default for 64 bit builds in 4.6 - you have to either supply the-cocoa
or-arch x86_64
.If you want to make sure ask
configure
for its options and look for the defaults.