Skip to contentSkip to conversation

qt53d: Install missing QML modules, plugins and examples

PATCH New Romain Reignier 3 participants 3 messages Apr 16, 2018 – May 1, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qt53d: Install missing QML modules, plugins and examples

Some files were missing on the first build of qt53d but added later:
- by qt5base for the plugins because it copies the whole /usr/lib/qt/plugins directory
- by qt5declarative for the QML modules because it copies the whole /usr/qml directory

The qt53d examples were not installed if BR2_PACKAGE_QT5BASE_EXAMPLES was set

---
 package/qt5/qt53d/qt53d.mk | 10 ++++++++++
 1 file changed, 10 insertions(+)
package/qt5/qt53d/qt53d.mk +10 -0
index d5a3a8e..6896b00 100644
@@ -30,11 +30,21 @@ define QT53D_INSTALL_STAGING_CMDS
 	$(QT5_LA_PRL_FILES_FIXUP)
 endef
 
+ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES),y)
+define QT53D_INSTALL_TARGET_EXAMPLES
+	cp -dpfr $(STAGING_DIR)/usr/lib/qt/examples/qt3d $(TARGET_DIR)/usr/lib/qt/examples/
+endef
+endif
+
 ifeq ($(BR2_STATIC_LIBS),)
 define QT53D_INSTALL_TARGET_CMDS
 	cp -dpf $(STAGING_DIR)/usr/lib/libQt53D*.so.* $(TARGET_DIR)/usr/lib
+	cp -dpfr $(STAGING_DIR)/usr/lib/qt/plugins/geometryloaders $(TARGET_DIR)/usr/lib/qt/plugins
+	cp -dpfr $(STAGING_DIR)/usr/lib/qt/plugins/renderplugins $(TARGET_DIR)/usr/lib/qt/plugins
 	cp -dpfr $(STAGING_DIR)/usr/lib/qt/plugins/sceneparsers $(TARGET_DIR)/usr/lib/qt/plugins
 	cp -dpfr $(STAGING_DIR)/usr/qml/Qt3D $(TARGET_DIR)/usr/qml
+	cp -dpfr $(STAGING_DIR)/usr/qml/QtQuick $(TARGET_DIR)/usr/qml
+	$(QT53D_INSTALL_TARGET_EXAMPLES)
 endef
 endif
 
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 qt53d: Install missing QML modules, plugins and examples

Hello,

Quoted 6 lines · Romain Reignier

Some files were missing on the first build of qt53d but added later:
- by qt5base for the plugins because it copies the whole /usr/lib/qt/plugins directory
- by qt5declarative for the QML modules because it copies the whole /usr/qml directory

Quoted 7 lines

The qt53d examples were not installed if BR2_PACKAGE_QT5BASE_EXAMPLES was set

---
 package/qt5/qt53d/qt53d.mk | 10 ++++++++++
 1 file changed, 10 insertions(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw

PATCH 1/1 qt53d: Install missing QML modules, plugins and examples

In reply to Romain Reignier
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Romain" == Romain Reignier <[email protected]> writes:

Some files were missing on the first build of qt53d but added later:
- by qt5base for the plugins because it copies the whole /usr/lib/qt/plugins directory
- by qt5declarative for the QML modules because it copies the whole /usr/qml directory

Quoted 4 lines

The qt53d examples were not installed if BR2_PACKAGE_QT5BASE_EXAMPLES was set

Committed to 2018.02.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard