我正在尝试为mac编译Qt的最新版本(来自Gitorius)。当我尝试编译这个代码(通过执行./configure,然后执行make)时,我在运行make时得到以下错误:
../../include/QtCore/../../src/corelib/kernel/qvariant.h: In function ‘T qvariant_cast(const QVariant&) [with T = QVariant]’:
../../include/QtCore/../../src/corelib/kernel/qvariant.h:592: error: ‘QVariant’ is not a member of ‘QMetaType’
make[2]: *** [.pch/debug-shared/QtCore_debug.gch/objective-c++] Error 1
make[1]: *** [debug-all] Error 2
make: *** [sub-corelib-make_default-ordered] Error 2谢谢。
发布于 2010-05-27 05:14:43
你下载了一个稳定的版本吗?因为您可能意外地从Because下载了测试版/不稳定版,该版本可能无法编译
另外,只需从ftp.trolltech.com下载一个合适的稳定版本tarball并进行编译即可。
https://stackoverflow.com/questions/2916592
复制相似问题