Public bug reported: 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 ** Affects: content-hub (Ubuntu) Importance: Undecided Status: New ** Tags: cmake qml -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1657257 Title: /usr/lib/i386-linux-gnu/qt5/qml/Ubuntu/Content/plugins.qmltypes causes cmake error To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/content-hub/+bug/1657257/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs