【发布时间】:2011-05-18 09:39:39
【问题描述】:
我有一个程序在 OpenSuse 11.2 和 QT 4.5 版中编译得很好。但是,当我使用 OpenSuse 11.4 和 QT 4.7.3 编译相同的程序时,我收到以下错误消息:
"This file was generated using the moc from 4.7.3. It cannot be used with the include files from this version of Qt. The moc has changed too much"
谁能告诉我发生了什么事?
【问题讨论】:
-
您是否尝试过“make clean”来删除以前生成的文件,然后重新运行“make”?
-
你确定你还没有以某种方式使用旧版本 Qt 的包含?
-
尝试干净签出/删除所有 moc_/.moc 文件,重新运行 qmake 4.7.3 并制作。