[Qt-creator] Qt5 + CMake: qdeclarativefolderlistmodel.h(56): Error: Undefined interface

Loaden loaden at gmail.com
Wed Sep 26 11:00:16 CEST 2012


Patch in here: https://codereview.qt-project.org/#change,35697

2012/9/26 Loaden <loaden at gmail.com>

> Hi, list!
> It should is a bug from MOC or QTC.
>
> [1/6 ?/sec] Generating moc_qdeclarativefolderlistmodel.cxx
>
> FAILED: cmd.exe /c cd
> D:\qpSOFT\Projects\QtCreator\build\src\libs\qtcomponents\styleitem &&
> D:\qpSOFT\MyDEV\sdk\qt\lib\amd64\..\..\bin\amd64\moc.exe
> @moc_qdeclarativefolderlistmodel.cxx_parameters
>
> D:/qpSOFT/Projects/QtCreator/src/libs/qtcomponents/styleitem/qdeclarativefolderlistmodel.h(56):
> Error: Undefined interface
>
> ninja: build stopped: subcommand failed.
>
> 15:40:20: The process "D:\qpSOFT\MyDEV\tool\ninja\ninja.exe" exited with
> code 1.
>
> Error while building/deploying project qtcreator (target: Desktop)
>
> When executing step 'Make'
>
>
> *moc_qdeclarativefolderlistmodel.cxx_parameters*
>
>> -DUNICODE
>> -D_CRT_SECURE_NO_WARNINGS
>> -DQT_NO_CAST_TO_ASCII
>> -DQT_DISABLE_DEPRECATED_BEFORE=0x040900
>> -DQT_USE_FAST_OPERATOR_PLUS
>> -DQT_USE_FAST_CONCATENATION
>> -DWIN32
>> -o
>>
>> D:/qpSOFT/Projects/QtCreator/build/src/libs/qtcomponents/styleitem/moc_qdeclarativefolderlistmodel.cxx
>>
>> D:/qpSOFT/Projects/QtCreator/src/libs/qtcomponents/styleitem/qdeclarativefolderlistmodel.h
>>
>
>
> See here (LN 56):
> //![class begin]
>
> class QDeclarativeFolderListModel : public QAbstractListModel, public QDeclarativeParserStatus
>
> {
>
>     Q_OBJECT
>
>     *Q_INTERFACES(QDeclarativeParserStatus)*
>
> //![class begin]
>
>
> //![class props]
>
>     Q_PROPERTY(QUrl folder READ folder WRITE setFolder NOTIFY folderChanged)
>
>
>
> It will broken CMake build, but it can compiled with qmake.
> When I comment that line (LN 56), then everything works.
> Test it under Windows 7 and Ubuntu 12.04.
>
> Any comments?
>
> --
> *Please don't ask where I come from, It's a shame!*
> Best Regards
> Yuchen
>
>


-- 
*Please don't ask where I come from, It's a shame!*
Best Regards
Yuchen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20120926/3f3979a1/attachment.html>


More information about the Qt-creator mailing list