2010-05-26 101 views
0

我正在尝试为mac编译最新版本的Qt(来自Gitorius)。当我尝试编译这个(通过执行./configure然后make)时,运行make时出现以下错误:Qt不会编译(10.5英特尔Mac)

../../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 

谢谢。

回答

2

你下载了稳定版吗?因为你可能偶然从Gitorious下载了一个测试版/不稳定版本,可能无法编译

另外,只需从ftp.trolltech.com下载适当的稳定版本tarball并编译它即可。

+0

我很聪明,我甚至不知道你可以得到的是不是尖端的来源:) – Maz 2010-05-26 21:26:41

+0

@Maz这里是源archiive ftp://ftp.qtsoftware.com/qt/资源/ – mosg 2010-05-27 06:37:26