在Mac OS X 10.8上安装qt4-mac时,为什么会看到“找不到SDK”错误?

时间:2012-05-11 14:41:50

标签: macos qt macports

当我尝试在Mac OS X Mountain Lion开发者预览版上安装Qt时,我看到了这个错误。

ws5:1.4 nick$ sudo port install qt4-mac
Password:
--->  Computing dependencies for qt4-mac
--->  Configuring qt4-mac
No SDK found in /Applications/Xcode44-DP4.app/Contents/Developer/SDKs for 10.8 ;  configure will probably fail. 
  Please install Apple's Developer Tools again.

1 个答案:

答案 0 :(得分:2)

使用XCode 4.4开发人员预览,使用它似乎可行,但我不确定它是否是最佳解决方案。

ln -s /Applications/Xcode44-DP4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/ /Applications/Xcode44-DP4.app/Contents/Developer/SDKs

创建此链接后,警告似乎消失了。