/usr/lib/i386-linux-gnu/qt5/qml/Ubuntu/Content/plugins.qmltypes causes cmake error

Bug #1657257 reported by Chris B
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
content-hub (Ubuntu)
New
Undecided
Unassigned

Bug Description

If I run cmake for my project (Ubuntu touch click target), I get the following message:

Running "/usr/bin/cmake /home/q/click/myapp '-GCodeBlocks - Unix Makefiles' -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++ -DQT_QMAKE_EXECUTABLE:STRING=/usr/lib/i386-linux-gnu/qt5/bin/qmake" in /home/q/click_build/myapp-Desktop-Default.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/q/click_build/myapp-Desktop-Default
Warnings while parsing QML type information of /usr/lib/i386-linux-gnu/qt5/qml/Ubuntu/Content:
Failed to parse "/usr/lib/i386-linux-gnu/qt5/qml/Ubuntu/Content/plugins.qmltypes".
Error: /usr/lib/i386-linux-gnu/qt5/qml/Ubuntu/Content/plugins.qmltypes:276:19: Expected string literal to contain 'Package/Name major.minor' or 'Name major.minor'.
/usr/lib/i386-linux-gnu/qt5/qml/Ubuntu/Content/plugins.qmltypes:277:36: Expected array literal with only number literal members.
/usr/lib/i386-linux-gnu/qt5/qml/Ubuntu/Content/plugins.qmltypes:283:19: Expected string literal to contain 'Package/Name major.minor' or 'Name major.minor'.
/usr/lib/i386-linux-gnu/qt5/qml/Ubuntu/Content/plugins.qmltypes:284:36: Expected array literal with only number literal members.
/usr/lib/i386-linux-gnu/qt5/qml/Ubuntu/Content/plugins.qmltypes:301:19: Expected string literal to contain 'Package/Name major.minor' or 'Name major.minor'.
/usr/lib/i386-linux-gnu/qt5/qml/Ubuntu/Content/plugins.qmltypes:302:36: Expected array literal with only number literal members.

I then took a look at the file plugins.qmltypes and there were "-1" entries in some version numbers.
Changing those "-1" values to 0 helped me at least for avoiding the cmake error, but I did not look up the correct versions.

This has been there for quite some time, and recently an update of the package did undo my changes, so I thought I file a bug for it.

The file itself has the comment "autogenerated" in the header.
Could you check if that is a general problem with the package, or just a special use case I have ?
My project was created as Cmake project for the Ubunutu SDK 15.04 (Ubuntu touch click package with C++ backend)

Here are the respective lines of that file:

...
    Component {
        prototype: "Palette_QMLTYPE_2"
        name: "Palette"
        exports: ["Palette -1.-1"]
        exportMetaObjectRevisions: [-1]
        isComposite: true
    }
    Component {
        prototype: "QObject"
        name: "PaletteValues"
        exports: ["PaletteValues -1.-1"]
        exportMetaObjectRevisions: [-1]
        isComposite: true
        Property { name: "background"; type: "QColor" }
        Property { name: "backgroundText"; type: "QColor" }
        Property { name: "base"; type: "QColor" }
        Property { name: "baseText"; type: "QColor" }
        Property { name: "foreground"; type: "QColor" }
        Property { name: "foregroundText"; type: "QColor" }
        Property { name: "overlay"; type: "QColor" }
        Property { name: "overlayText"; type: "QColor" }
        Property { name: "field"; type: "QColor" }
        Property { name: "fieldText"; type: "QColor" }
        Property { name: "selection"; type: "QColor" }
    }
    Component {
        prototype: "QObject"
        name: "UbuntuColors"
        exports: ["UbuntuColors -1.-1"]
        exportMetaObjectRevisions: [-1]
...

------ SYSTEM INFO ------

Description: Ubuntu 16.04.1 LTS
Release: 16.04

content-hub:
  Installed: 0.1+16.04.20160309-0ubuntu1
  Candidate: 0.1+16.04.20160309-0ubuntu1
  Version table:
 *** 0.1+16.04.20160309-0ubuntu1 500
        500 http://de.archive.ubuntu.com/ubuntu xenial/universe i386 Packages
        100 /var/lib/dpkg/status

Tags: cmake qml
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.