Skip to contentSkip to conversation

qt5declarative: fix examples compile without qt widgets module

PATCH New Peter Seiderer 2 participants 2 messages Apr 7, 2017 – Apr 8, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qt5declarative: fix examples compile without qt widgets module

Fixes:

.../qt5declarative-5.8.0/examples/quick/demos/photoviewer/photoviewer.pro Project ERROR: Unknown module(s) in QT: widgets

---
 ...xamples-photoviewer-needs-widgets-support.patch | 32 ++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 package/qt5/qt5declarative/0001-examples-photoviewer-needs-widgets-support.patch
package/qt5/qt5declarative/0001-examples-photoviewer-needs-widgets-support.patch new file +32 -0
new file mode 100644
index 000000000..aeaaa9177
@@ -0,0 +1,32 @@
+From b616a7e2a7e03e2eb189dca3dc428c0e19e1652b Mon Sep 17 00:00:00 2001
+From: Peter Seiderer <[email protected]>
+Date: Thu, 6 Apr 2017 21:53:40 +0200
+Subject: [PATCH] examples: photoviewer needs widgets support
+
+Fixes:
+
+  .../qt5declarative-5.8.0/examples/quick/demos/photoviewer/photoviewer.pro
+  Project ERROR: Unknown module(s) in QT: widgets
+
+Signed-off-by: Peter Seiderer <[email protected]>
+---
+ examples/quick/demos/demos.pro | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/examples/quick/demos/demos.pro b/examples/quick/demos/demos.pro
+index 0644b81a2..5a6fd52ba 100644
+--- a/examples/quick/demos/demos.pro
++++ b/examples/quick/demos/demos.pro
+@@ -7,5 +7,7 @@ SUBDIRS = samegame \
+             photosurface \
+             stocqt
+ 
+-qtHaveModule(xmlpatterns): SUBDIRS += rssnews photoviewer
+-
++qtHaveModule(xmlpatterns) {
++    SUBDIRS += rssnews
++    qtHaveModule(widgets): SUBDIRS += photoviewer
++}
+-- 
+2.11.0
+
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 qt5declarative: fix examples compile without qt widgets module

Hello,

Quoted 10 lines · Peter Seiderer

Fixes:

.../qt5declarative-5.8.0/examples/quick/demos/photoviewer/photoviewer.pro Project ERROR: Unknown module(s) in QT: widgets

---
 ...xamples-photoviewer-needs-widgets-support.patch | 32 ++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 package/qt5/qt5declarative/0001-examples-photoviewer-needs-widgets-support.patch

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com