"Meta object revision without matching export" in Qt Creator
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Client Developer Experience |
Confirmed
|
High
|
Zoltan Balogh | ||
ubuntu-ui-toolkit (Ubuntu) |
Confirmed
|
High
|
Zsombor Egri |
Bug Description
When I try to create a new Qt Quick Controls project in Qt Creator 3.5.0, after I finish the project creation wizard, I get the following errors:
Warnings while parsing QML type information of /usr/lib/
Failed to parse "/usr/lib/
Error: /usr/lib/
/usr/lib/
/usr/lib/
Project ERROR: Unknown module(s) in QT: quick qml
Warnings while parsing QML type information of /usr/lib/
Failed to parse "/usr/lib/
Error: /usr/lib/
/usr/lib/
/usr/lib/
As I result, the Run button in Qt Creator is grayed out with the following error: 'The .pro file "untitled.pro" could not be parsed.'
ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: qtdeclarative5-
ProcVersionSign
Uname: Linux 4.2.0-16-generic x86_64
ApportVersion: 2.19.1-0ubuntu4
Architecture: amd64
CurrentDesktop: Unity
Date: Fri Oct 30 09:17:48 2015
InstallationDate: Installed on 2015-03-04 (239 days ago)
InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
SourcePackage: ubuntu-ui-toolkit
UpgradeStatus: Upgraded to wily on 2015-10-23 (7 days ago)
Changed in ubuntu-ui-toolkit (Ubuntu): | |
importance: | Undecided → High |
This bug is caused by setting `exportMetaObje ctRevisions` to `[0,0]` on `Component` blocks that only have one `export` defined. Deleting the comma and the second `0` fixes this.
This change needs to be applied on lines 1058, 1067, and 1085 of the following file:
`/usr/lib/ x86_64- linux-gnu/ qt5/qml/ Ubuntu/ Components/ plugins. qmltypes`
Once I made those changes, I was able to enter the design page for a new QML app with qmake without encountering a blocking popup block.
I am running a fresh install of Ubuntu 15.10 with an amd64 architecture; other architectures may need to replace the `x86_64-linux-gnu` part of the file path with something more system-appropriate.