Build OSX10.10上QT 5.3.0编译中的类型不匹配
我正在使用qt-everywhere-opensource-src-5.3.0,并试图在OSX10.10上构建它。 配置之后,当我运行“make-j”时,我得到以下错误: qcocoamenuloader.mm:177:22:错误:无法初始化类型的参数 “NSInteger”(又名“long”)的右值类型为“nullptr\u t”Build OSX10.10上QT 5.3.0编译中的类型不匹配,build,osx-yosemite,qt5.3,Build,Osx Yosemite,Qt5.3,我正在使用qt-everywhere-opensource-src-5.3.0,并试图在OSX10.10上构建它。 配置之后,当我运行“make-j”时,我得到以下错误: qcocoamenuloader.mm:177:22:错误:无法初始化类型的参数 “NSInteger”(又名“long”)的右值类型为“nullptr\u t” [item setTag:nil]; /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.pl
[item setTag:nil];
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/MacTypes.h:92:19:注意:
expanded from macro 'nil'
#define nil nullptr
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenuItem.h:115:21:注意:
在此处将参数传递给参数“tag”
@属性NSInteger标签
生成1个错误
生成[5]:***[.obj/qcococamenuloader.o]错误1
make[4]:***[sub-cocoa-make_first]错误2
make[3]:***[sub-platforms-make_first]错误2
make[2]:***[sub-plugins-make_first]错误2
make[1]:***[sub-src-make_first]错误2
make:**[module-qtbase-make_first]错误2
在我看来,macsdk将nil定义为nullptr,这导致了一个问题。有办法解决这个问题吗
我的配置调用如下所示:
./configure-release-opensource-confirm许可证-qt-harfbuzz-qt-zlib-qt-libpng-qt-libjpeg-no-pch-nomake示例-nomake工具-verbose-arch x86_64