开发者

Is Qt 4.6 compiled with Cocoa by default on Snow Leopard?

开发者 https://www.devze.com 2022-12-22 13:39 出处:网络
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.

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 c开发者_JS百科heck if my Qt build is linked against cocoa?


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.


Set your qt using project to build for 64bit or 32/64 hybrid. If it builds and links, it cocoa!


Wouldn't it be quickest just to run configure again?

0

精彩评论

暂无评论...
验证码 换一张
取 消