求教mac上编译qt出错
问题1:前几天下了qt 5.0 sdk for mac。结果assistant,designer等不能使用。google一下,说似乎时mac 10.8不支持 webkit,而assistant等恰好使用的是webkit。反正不懂了。请问到底是什么原因呢
我就下载了个源码包,自己来编译。结果出现了下面得错误。
问题2:
$:/configure -prefix /Users/robert/Qt/ -c++11 -fast -continue -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/
platform/graphics/surfaces/mac/GraphicsSurfaceMac.cpp:25:10: fatal error: 'CFNumber.h' file not found
真是不知到怎么解决啊。请各位指点指点。我花了好久得时间。谢谢啦
[解决办法]
没有头文件啊
我用Locate看了下 很多CFNumber.h的头文件 应该是你configure的时候制定的-I目录不行
ocate CFNumber.h
/Developer/Documentation/DocSets/com.apple.adc.documentation.AppleSnowLeopard.CoreReference.docset/Contents/Resources/Documents/documentation/CoreFoundation/Reference/CFNumberRef/History/revisionCFNumber.html
/Developer/Documentation/DocSets/com.apple.adc.documentation.AppleiOS4_2.iOSLibrary.docset/Contents/Resources/Documents/documentation/CoreFoundation/Reference/CFNumberRef/History/revisionCFNumber.html
/Developer/Extras/CoreAudio/PublicUtility/CACFNumber.h
/Developer/Headers/FlatCarbon/CFNumber.h
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFNumber.h
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFNumber.h
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFNumber.h
/Developer/SDKs/MacOSX10.6.sdk/Developer/Headers/FlatCarbon/CFNumber.h
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/CoreFoundation.framework/Versions/A/Headers/CFNumber.h
/Developer/SDKs/MacOSX10.7.sdk/Developer/Headers/FlatCarbon/CFNumber.h
/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/CoreFoundation.framework/Versions/A/Headers/CFNumber.h
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/Headers/CFNumber.h