Skip to contentSkip to conversation

qtimageformats: allow empty qtimageformats package

PATCH Superseded Jonathan Liu 3 participants 11 messages Mar 2, 2014 – Mar 12, 2014

v4 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/2 qtimageformats: allow empty qtimageformats package

This fixes installing qtimageformats-dev with opkg as it depends on the qtimageformats package which wasn't created.

The qtimageformats package was not created as it is empty and BitBake avoids producing empty packages by default. The installed files consist of source files split into qtimageformats-dbg, CMake files split into qtimageformats-dev, plugins split into qtimageformats-plugins and debug build of plugins split into qtimageformats-plugins-dbg.

---
 recipes-qt/qt5/qtimageformats.inc | 1 +
 1 file changed, 1 insertion(+)
recipes-qt/qt5/qtimageformats.inc +1 -0
index 1b4bb4f..f90e58a 100644
@@ -1,3 +1,4 @@
 require qt5.inc
 
 DEPENDS += "qtbase tiff"
+ALLOW_EMPTY_${PN} = "1"
Signature · 1 line
1.9.0
#1 lore raw

PATCH v4 2/2 packagegroup-qt5-toolchain-target: include all modules for development

This adds the necessary target packages for development with all of the Qt 5 modules.

---
 .../packagegroup-qt5-toolchain-target.bb           | 80 ++++++++++++++++++----
 1 file changed, 65 insertions(+), 15 deletions(-)
recipes-qt/packagegroups/packagegroup-qt5-toolchain-target.bb +65 -15
index 997df18..25983dc 100644
@@ -9,32 +9,82 @@ PACKAGEGROUP_DISABLE_COMPLEMENTARY = "1"
 
 # Requires meta-ruby to work
 USE_RUBY = " \
-    qtwebkit-mkspecs \
     qtwebkit-dev \
+    qtwebkit-mkspecs \
+    qtwebkit-qmlplugins \
+"
+
+# Requires Wayland to work
+USE_WAYLAND = " \
+    qtwayland-dev \
+    qtwayland-mkspecs \
+    qtwayland-plugins \
+    qtwayland-tools \
+"
+
+# Requires X11 to work
+USE_X11 = " \
+    qtx11extras-dev \
+    qtx11extras-mkspecs \
 "
 
 RDEPENDS_${PN} += " \
     packagegroup-core-standalone-sdk-target \
     libsqlite3-dev \
-    qtbase-mkspecs \
-    qtscript-mkspecs \
-    qtxmlpatterns-mkspecs \
-    qtdeclarative-mkspecs \
-    qtsensors-mkspecs \
+    qt3d-dev \
     qt3d-mkspecs \
-    qtlocation-mkspecs \
-    qtsvg-mkspecs \
+    qt3d-qmlplugins \
     qtbase-dev \
+    qtbase-fonts \
+    qtbase-mkspecs \
+    qtbase-plugins \
+    qtbase-staticdev \
+    qtconnectivity-dev \
+    qtconnectivity-mkspecs \
+    qtconnectivity-qmlplugins \
     qtdeclarative-dev \
-    qtscript-dev \
-    qt3d-dev \
+    qtdeclarative-mkspecs \
+    qtdeclarative-plugins \
+    qtdeclarative-qmlplugins \
+    qtdeclarative-staticdev \
+    qtgraphicaleffects-qmlplugins \
+    qtimageformats-dev \
+    qtimageformats-plugins \
     qtlocation-dev \
+    qtlocation-mkspecs \
+    qtlocation-plugins \
+    qtlocation-qmlplugins \
+    qtmultimedia-dev \
+    qtmultimedia-mkspecs \
+    qtmultimedia-plugins \
+    qtmultimedia-qmlplugins \
+    qtquick1-dev \
+    qtquick1-mkspecs \
+    qtquick1-plugins \
+    qtquick1-qmlplugins \
+    qtquickcontrols-qmlplugins \
+    qtscript-dev \
+    qtscript-mkspecs \
     qtsensors-dev \
+    qtsensors-mkspecs \
+    qtsensors-plugins \
+    qtsensors-qmlplugins \
+    qtserialport-dev \
+    qtserialport-mkspecs \
     qtsvg-dev \
-    qtxmlpatterns-dev \
-    qtdeclarative-dev \
-    qtdeclarative-plugins \
-    qtdeclarative-qmlplugins \
-    qtgraphicaleffects-dev \
+    qtsvg-mkspecs \
+    qtsvg-plugins \
+    qtsystems-dev \
+    qtsystems-mkspecs \
+    qtsystems-qmlplugins \
+    qttools-dev \
+    qttools-mkspecs \
+    qttools-plugins \
+    qttools-staticdev \
+    qttools-tools \
+    ${@base_contains('DISTRO_FEATURES', 'wayland', '${USE_WAYLAND}', '', d)} \
     ${@base_contains('BBFILE_COLLECTIONS', 'ruby-layer', '${USE_RUBY}', '', d)} \
+    ${@base_contains('DISTRO_FEATURES', 'x11', '${USE_X11}', '', d)} \
+    qtxmlpatterns-dev \
+    qtxmlpatterns-mkspecs \
 "
Signature · 1 line
1.9.0
#2 lore raw

Re: [meta-qt5][PATCH v4 2/2] packagegroup-qt5-toolchain-target: include all modules for development

Quoted 4 lines · Jonathan Liu

This adds the necessary target packages for development with all of the Qt 5 modules.

Why are you adding qttools here? this is not need for toolchain use, is it? It is need for host.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#3 lore raw

Re: [meta-qt5][PATCH v4 2/2] packagegroup-qt5-toolchain-target: include all modules for development

Quoted 8 lines · Otavio Salvador
Quoted 4 lines · Jonathan Liu

This adds the necessary target packages for development with all of the Qt 5 modules.

Why are you adding qttools here? this is not need for toolchain use, is it? It is need for host.

The QtTools module includes components that may be used by applications - http://qt-project.org/doc/qt-5/qtmodules.html#qt-tools

Regards,
Jonathan

#4 lore raw

Re: [meta-qt5][PATCH v4 2/2] packagegroup-qt5-toolchain-target: include all modules for development

Quoted 5 lines · Jonathan Liu
Quoted 4 lines · Otavio Salvador
Quoted 3 lines · Jonathan Liu

This adds the necessary target packages for development with all of the Qt 5 modules.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Why are you adding qttools here? this is not need for toolchain use, is it? It is need for host.

The QtTools module includes components that may be used by applications - http://qt-project.org/doc/qt-5/qtmodules.html#qt-tools

From the doc it is not clear to me how it will be used in the target, it seems something used in host.

Could you help me to understand your reasoning for it?

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#5 lore raw

Re: [meta-qt5][PATCH v4 2/2] packagegroup-qt5-toolchain-target: include all modules for development

Quoted 7 lines · Otavio Salvador
Quoted 6 lines · Jonathan Liu
Quoted 5 lines · Otavio Salvador
Quoted 4 lines · Jonathan Liu

This adds the necessary target packages for development with all of the Qt 5 modules.

Quoted 9 lines
Quoted 4 lines
Quoted 2 lines

Why are you adding qttools here? this is not need for toolchain use, is it? It is need for host.

The QtTools module includes components that may be used by applications - http://qt-project.org/doc/qt-5/qtmodules.html#qt-tools

From the doc it is not clear to me how it will be used in the target,
it seems something used in host.

Could you help me to understand your reasoning for it?

It includes Qt Help which is used to implement context-sensitive help to the user in Qt applications.

Regards,
Jonathan

#6 lore raw

Re: [meta-qt5][PATCH v4 2/2] packagegroup-qt5-toolchain-target: include all modules for development

Quoted 19 lines · Jonathan Liu
Quoted 18 lines · Otavio Salvador
Quoted 15 lines · Jonathan Liu
Quoted 10 lines · Otavio Salvador
Quoted 5 lines · Jonathan Liu

This adds the necessary target packages for development with all of the Qt 5 modules.

Why are you adding qttools here? this is not need for toolchain use, is it? It is need for host.

The QtTools module includes components that may be used by applications - http://qt-project.org/doc/qt-5/qtmodules.html#qt-tools

Quoted 7 lines
Quoted 5 lines

From the doc it is not clear to me how it will be used in the target,
it seems something used in host.

Could you help me to understand your reasoning for it?

It includes Qt Help which is used to implement context-sensitive help to the user in Qt applications.

I am fine with it than; do you have any other change pending? please let me know or I pick v2 of this.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#7 lore raw

Re: [meta-qt5][PATCH v4 2/2] packagegroup-qt5-toolchain-target: include all modules for development

Quoted 16 lines · Otavio Salvador
Quoted 15 lines · Jonathan Liu
Quoted 14 lines · Otavio Salvador
Quoted 10 lines · Jonathan Liu
Quoted 7 lines · Otavio Salvador
Quoted 4 lines · Jonathan Liu

This adds the necessary target packages for development with all of the Qt 5 modules.

Why are you adding qttools here? this is not need for toolchain use, is it? It is need for host.

The QtTools module includes components that may be used by applications - http://qt-project.org/doc/qt-5/qtmodules.html#qt-tools

From the doc it is not clear to me how it will be used in the target,
it seems something used in host.

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

Could you help me to understand your reasoning for it?

It includes Qt Help which is used to implement context-sensitive help to the user in Qt applications.

I am fine with it than; do you have any other change pending? please let me know or I pick v2 of this.

I don't have any update pending. Please use the latest patch series (v4).

Regards,
Jonathan

#8 lore raw

Re: [meta-qt5][PATCH v4 2/2] packagegroup-qt5-toolchain-target: include all modules for development

Hello,

Quoted 29 lines · Jonathan Liu
Quoted 28 lines · Otavio Salvador
Quoted 26 lines · Jonathan Liu
Quoted 24 lines · Otavio Salvador
Quoted 9 lines · Jonathan Liu
Quoted 7 lines · Otavio Salvador
Quoted 5 lines · Jonathan Liu

This adds the necessary target packages for development with all of the
Qt 5 modules.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Why are you adding qttools here? this is not need for toolchain use, is it? It is need for host.

The QtTools module includes components that may be used by applications - http://qt-project.org/doc/qt-5/qtmodules.html#qt-tools

From the doc it is not clear to me how it will be used in the target,
it seems something used in host.

Could you help me to understand your reasoning for it?

Quoted 8 lines
Quoted 7 lines
Quoted 3 lines

It includes Qt Help which is used to implement context-sensitive help to the
user in Qt applications.

I am fine with it than; do you have any other change pending? please let me know or I pick v2 of this.

I don't have any update pending. Please use the latest patch series (v4).

NOTE: Runtime target 'qtquick1-dev' is unbuildable, removing... Missing or unbuildable dependency chain was: ['qtquick1-dev', 'qtwebkit', 'ruby-native']
NOTE: Runtime target 'packagegroup-qt5-toolchain-target' is unbuildable, removing...
Missing or unbuildable dependency chain was:
['packagegroup-qt5-toolchain-target', 'qtquick1-dev', 'qtwebkit', 'ruby-native']

This failed to build with Ruby disabled :-)

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#9 lore raw

Re: [meta-qt5][PATCH v4 2/2] packagegroup-qt5-toolchain-target: include all modules for development

Quoted 39 lines · Otavio Salvador

Hello,

Quoted 20 lines · Jonathan Liu
Quoted 19 lines · Otavio Salvador
Quoted 18 lines · Jonathan Liu
Quoted 17 lines · Otavio Salvador
Quoted 11 lines · Jonathan Liu
Quoted 8 lines · Otavio Salvador
Quoted 5 lines · Jonathan Liu

This adds the necessary target packages for development with all of the
Qt 5 modules.

Why are you adding qttools here? this is not need for toolchain use, is it? It is need for host.

The QtTools module includes components that may be used by applications - http://qt-project.org/doc/qt-5/qtmodules.html#qt-tools

From the doc it is not clear to me how it will be used in the target,
it seems something used in host.

Could you help me to understand your reasoning for it?

Quoted 7 lines
Quoted 6 lines
Quoted 3 lines

It includes Qt Help which is used to implement context-sensitive help to the
user in Qt applications.

I am fine with it than; do you have any other change pending? please let me know or I pick v2 of this.

I don't have any update pending. Please use the latest patch series (v4).

NOTE: Runtime target 'qtquick1-dev' is unbuildable, removing... Missing or unbuildable dependency chain was: ['qtquick1-dev', 'qtwebkit', 'ruby-native']
NOTE: Runtime target 'packagegroup-qt5-toolchain-target' is unbuildable, removing...
Missing or unbuildable dependency chain was:
['packagegroup-qt5-toolchain-target', 'qtquick1-dev', 'qtwebkit', 'ruby-native']

Quoted 2 lines

This failed to build with Ruby disabled :-)

Fixed with v5 patch series.

Regards,
Jonathan

#10 lore raw

Re: [meta-qt5][PATCH v4 2/2] packagegroup-qt5-toolchain-target: include all modules for development

In reply to Jonathan Liu
Quoted 97 lines · Jonathan Liu

This adds the necessary target packages for development with all of the Qt 5 modules.

---
 .../packagegroup-qt5-toolchain-target.bb           | 80 ++++++++++++++++++----
 1 file changed, 65 insertions(+), 15 deletions(-)
recipes-qt/packagegroups/packagegroup-qt5-toolchain-target.bb +54 -15
index 997df18..25983dc 100644
@@ -9,32 +9,82 @@ PACKAGEGROUP_DISABLE_COMPLEMENTARY = "1"
 
 # Requires meta-ruby to work
 USE_RUBY = " \
-    qtwebkit-mkspecs \
     qtwebkit-dev \
+    qtwebkit-mkspecs \
+    qtwebkit-qmlplugins \
+"
+
+# Requires Wayland to work
+USE_WAYLAND = " \
+    qtwayland-dev \
+    qtwayland-mkspecs \
+    qtwayland-plugins \
+    qtwayland-tools \
+"
+
+# Requires X11 to work
+USE_X11 = " \
+    qtx11extras-dev \
+    qtx11extras-mkspecs \
 "
 
 RDEPENDS_${PN} += " \
     packagegroup-core-standalone-sdk-target \
     libsqlite3-dev \
-    qtbase-mkspecs \
-    qtscript-mkspecs \
-    qtxmlpatterns-mkspecs \
-    qtdeclarative-mkspecs \
-    qtsensors-mkspecs \
+    qt3d-dev \
     qt3d-mkspecs \
-    qtlocation-mkspecs \
-    qtsvg-mkspecs \
+    qt3d-qmlplugins \
     qtbase-dev \
+    qtbase-fonts \
+    qtbase-mkspecs \
+    qtbase-plugins \
+    qtbase-staticdev \
+    qtconnectivity-dev \
+    qtconnectivity-mkspecs \
+    qtconnectivity-qmlplugins \
     qtdeclarative-dev \
-    qtscript-dev \
-    qt3d-dev \
+    qtdeclarative-mkspecs \
+    qtdeclarative-plugins \
+    qtdeclarative-qmlplugins \
+    qtdeclarative-staticdev \
+    qtgraphicaleffects-qmlplugins \
+    qtimageformats-dev \
+    qtimageformats-plugins \
     qtlocation-dev \
+    qtlocation-mkspecs \
+    qtlocation-plugins \
+    qtlocation-qmlplugins \
+    qtmultimedia-dev \
+    qtmultimedia-mkspecs \
+    qtmultimedia-plugins \
+    qtmultimedia-qmlplugins \
+    qtquick1-dev \
+    qtquick1-mkspecs \
+    qtquick1-plugins \
+    qtquick1-qmlplugins \
+    qtquickcontrols-qmlplugins \
+    qtscript-dev \
+    qtscript-mkspecs \
     qtsensors-dev \
+    qtsensors-mkspecs \
+    qtsensors-plugins \
+    qtsensors-qmlplugins \
+    qtserialport-dev \
+    qtserialport-mkspecs \
     qtsvg-dev \
-    qtxmlpatterns-dev \
-    qtdeclarative-dev \
-    qtdeclarative-plugins \
-    qtdeclarative-qmlplugins \
-    qtgraphicaleffects-dev \
+    qtsvg-mkspecs \
+    qtsvg-plugins \
+    qtsystems-dev \

recipes-qt/packagegroups/packagegroup-qt5-toolchain-target.bb PACKAGEGROUP_DISABLE_COMPLEMENTARY = "1" · line 87

Quoted 10 lines
recipes-qt/packagegroups/packagegroup-qt5-toolchain-target.bb +9 -0
+    qtsystems-mkspecs \
+    qtsystems-qmlplugins \
+    qttools-dev \
+    qttools-mkspecs \
+    qttools-plugins \
+    qttools-staticdev \
+    qttools-tools \
+    ${@base_contains('DISTRO_FEATURES', 'wayland', '${USE_WAYLAND}', '', d)} \
     ${@base_contains('BBFILE_COLLECTIONS', 'ruby-layer', '${USE_RUBY}', '', d)} \
+    ${@base_contains('DISTRO_FEATURES', 'x11', '${USE_X11}', '', d)} \

Like I said in v2 comment - I like the conditionals here. Can we possibly make other modules as conditionals as well? I.e. qt3d or qtwebkit when they are not built for the target?

Signature · 1 line
Denys
Quoted 10 lines
recipes-qt/packagegroups/packagegroup-qt5-toolchain-target.bb +2 -0
+    qtxmlpatterns-dev \
+    qtxmlpatterns-mkspecs \
 "
Signature · 6 lines
1.9.0

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel