简体   繁体   English

Qt无法编译(10.5 Intel Mac)

[英]Qt Won't Compile (10.5 Intel Mac)

I am trying to compile the latest version of Qt for the mac (from Gitorius). 我正在尝试为Mac(来自Gitorius)编译最新版本的Qt。 When I try to compile this (by doing ./configure and then make), I get the following error while running make: 当我尝试对此进行编译(通过执行./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

Thanks. 谢谢。

Did you downloaded a stable version? 您下载了稳定版本吗? Because you might accidentaly downloaded a beta/unstable version from Gitorious, which might not compile 因为您可能会意外地从Gitorious下载了Beta /不稳定版本,但该版本可能无法编译

Also, just download an appropiate stable version tarball from ftp.trolltech.com and compile it. 另外,只需从ftp.trolltech.com下载适当的稳定版tarball并进行编译。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM