Skip to contentSkip to conversation

Pull request for branch qt

GIT PULL New Thomas Petazzoni 2 participants 6 messages Jul 27, 2009

lore
Share & tools
lore
#0 lore raw

The following changes since commit 660952565ed0c76b4a2e345bb79fd553a4f53d77:
Thomas Petazzoni (1):
Update CHANGES with recent improvements

are available in the git repository at:

git://git.busybox.net/~tpetazzoni/git/buildroot qt

Thomas Petazzoni (4):
qt: rename qtopia4 to qt
qt: put the Qt options into a submenu
qt: fix build with external toolchain
qt: the GUI module requires the network module to work properly

 package/Config.in                                  |    2 +-
 package/qt/Config.gfx.in                           |   19 +
 package/{qtopia4 => qt}/Config.in                  |  167 +++---
 package/qt/Config.mouse.in                         |   24 +
 package/{qtopia4 => qt}/Config.sql.in              |   18 +-
 .../qt-4.5.2-fix-qt-zlib-build.patch}              |    0
 package/qt/qt.mk                                   |  583 ++++++++++++++++++++
 package/qtopia4/Config.gfx.in                      |   19 -
 package/qtopia4/Config.mouse.in                    |   24 -
 package/qtopia4/qtopia4.mk                         |  582 -------------------
 10 files changed, 720 insertions(+), 718 deletions(-)
 create mode 100644 package/qt/Config.gfx.in
 rename package/{qtopia4 => qt}/Config.in (62%)
 create mode 100644 package/qt/Config.mouse.in
 rename package/{qtopia4 => qt}/Config.sql.in (60%)
 rename package/{qtopia4/qtopia-4.5.2-fix-qt-zlib-build.patch => qt/qt-4.5.2-fix-qt-zlib-build.patch} (100%)
 create mode 100644 package/qt/qt.mk
 delete mode 100644 package/qtopia4/Config.gfx.in
 delete mode 100644 package/qtopia4/Config.mouse.in
 delete mode 100644 package/qtopia4/qtopia4.mk

Thanks,

Signature · 1 line
Thomas Petazzoni
#1 lore raw

PATCH 1/4 qt: rename qtopia4 to qt

A while ago, Trolltech (now part of Nokia) included Qtopia directly inside Qt. So let's rename the qtopia4 package to simply qt, which will be more familiar to our users. Of course, the version we compile is Qt for Embedded Linux.

---
 package/Config.in                                  |    2 +-
 package/qt/Config.gfx.in                           |   19 +
 package/qt/Config.in                               |  343 ++++++++++++
 package/qt/Config.mouse.in                         |   24 +
 package/qt/Config.sql.in                           |   42 ++
 package/qt/qt-4.5.2-fix-qt-zlib-build.patch        |   20 +
 package/qt/qt.mk                                   |  582 ++++++++++++++++++++
 package/qtopia4/Config.gfx.in                      |   19 -
 package/qtopia4/Config.in                          |  343 ------------
 package/qtopia4/Config.mouse.in                    |   24 -
 package/qtopia4/Config.sql.in                      |   42 --
 .../qtopia4/qtopia-4.5.2-fix-qt-zlib-build.patch   |   20 -
 package/qtopia4/qtopia4.mk                         |  582 --------------------
 13 files changed, 1031 insertions(+), 1031 deletions(-)
 create mode 100644 package/qt/Config.gfx.in
 create mode 100644 package/qt/Config.in
 create mode 100644 package/qt/Config.mouse.in
 create mode 100644 package/qt/Config.sql.in
 create mode 100644 package/qt/qt-4.5.2-fix-qt-zlib-build.patch
 create mode 100644 package/qt/qt.mk
 delete mode 100644 package/qtopia4/Config.gfx.in
 delete mode 100644 package/qtopia4/Config.in
 delete mode 100644 package/qtopia4/Config.mouse.in
 delete mode 100644 package/qtopia4/Config.sql.in
 delete mode 100644 package/qtopia4/qtopia-4.5.2-fix-qt-zlib-build.patch
 delete mode 100644 package/qtopia4/qtopia4.mk
package/Config.in +1 -1
index 4a943a8..c887323 100644
@@ -315,7 +315,7 @@ source "package/fbv/Config.in"
 source "package/fbset/Config.in"
 
 comment "other GUIs"
-source "package/qtopia4/Config.in"
+source "package/qt/Config.in"
 
 #source "package/microwin/Config.in"
 
package/qt/Config.gfx.in new file +19 -0
new file mode 100644
index 0000000..0e222dd
@@ -0,0 +1,19 @@
+menu "Graphics drivers"
+
+config BR2_PACKAGE_QT_GFX_LINUXFB
+	bool "Linux Framebuffer"
+	default y
+
+config BR2_PACKAGE_QT_GFX_TRANSFORMED
+	bool "Transformed"
+
+config BR2_PACKAGE_QT_GFX_QVFB
+	bool "Qt Virtual Framebuffer"
+
+config BR2_PACKAGE_QT_GFX_VNC
+	bool "VNC"
+
+config BR2_PACKAGE_QT_GFX_MULTISCREEN
+	bool "multiscreen"
+
+endmenu
package/qt/Config.in new file +343 -0

343 lines not on this page · raw message

package/qt/Config.mouse.in new file +24 -0
new file mode 100644
index 0000000..7085974
@@ -0,0 +1,24 @@
+menu "Mouse drivers"
+
+config BR2_PACKAGE_QT_MOUSE_PC
+	bool "pc"
+
+config BR2_PACKAGE_QT_MOUSE_BUS
+	bool "bus"
+
+config BR2_PACKAGE_QT_MOUSE_LINUXTP
+	bool "linuxtp"
+
+config BR2_PACKAGE_QT_MOUSE_YOPY
+	bool "yopy"
+
+config BR2_PACKAGE_QT_MOUSE_VR41XX
+	bool "vr41xx"
+
+config BR2_PACKAGE_QT_MOUSE_TSLIB
+	bool "tslib"
+
+config BR2_PACKAGE_QT_MOUSE_QVFB
+	bool "qvfb"
+
+endmenu
package/qt/Config.sql.in new file +42 -0

42 lines not on this page · raw message

package/qt/qt-4.5.2-fix-qt-zlib-build.patch new file +20 -0
new file mode 100644
index 0000000..b191cc7
@@ -0,0 +1,20 @@
+When QT is compiled in qt-zlib mode, compilation of
+src/gui/painting/qprintengine_pdf.cpp fails because zlib.h is not
+found. The following patch adds the internal QT zlib directory to the
+include path to fix this issue.
+
+---
+ src/gui/painting/painting.pri |    3 +++
+ 1 file changed, 3 insertions(+)
+
+Index: qt-embedded-linux-opensource-src-4.5.2/src/gui/painting/painting.pri
+===================================================================
+--- qt-embedded-linux-opensource-src-4.5.2.orig/src/gui/painting/painting.pri
++++ qt-embedded-linux-opensource-src-4.5.2/src/gui/painting/painting.pri
+@@ -367,3 +367,6 @@
+         SOURCES += painting/qwindowsurface_d3d.cpp
+ }
+ 
++contains(QT_CONFIG, zlib) {
++   INCLUDEPATH += ../3rdparty/zlib
++}
package/qt/qt.mk new file +582 -0

582 lines not on this page · raw message

package/qtopia4/Config.gfx.in deleted +0 -19
deleted file mode 100644
index 8147886..0000000
@@ -1,19 +0,0 @@
-menu "Graphics drivers"
-
-config BR2_PACKAGE_QTOPIA4_GFX_LINUXFB
-	bool "Linux Framebuffer"
-	default y
-
-config BR2_PACKAGE_QTOPIA4_GFX_TRANSFORMED
-	bool "Transformed"
-
-config BR2_PACKAGE_QTOPIA4_GFX_QVFB
-	bool "Qt Virtual Framebuffer"
-
-config BR2_PACKAGE_QTOPIA4_GFX_VNC
-	bool "VNC"
-
-config BR2_PACKAGE_QTOPIA4_GFX_MULTISCREEN
-	bool "multiscreen"
-
-endmenu
package/qtopia4/Config.in deleted +0 -343

343 lines not on this page · raw message

package/qtopia4/Config.mouse.in deleted +0 -24
deleted file mode 100644
index 7b39460..0000000
@@ -1,24 +0,0 @@
-menu "Mouse drivers"
-
-config BR2_PACKAGE_QTOPIA4_MOUSE_PC
-	bool "pc"
-
-config BR2_PACKAGE_QTOPIA4_MOUSE_BUS
-	bool "bus"
-
-config BR2_PACKAGE_QTOPIA4_MOUSE_LINUXTP
-	bool "linuxtp"
-
-config BR2_PACKAGE_QTOPIA4_MOUSE_YOPY
-	bool "yopy"
-
-config BR2_PACKAGE_QTOPIA4_MOUSE_VR41XX
-	bool "vr41xx"
-
-config BR2_PACKAGE_QTOPIA4_MOUSE_TSLIB
-	bool "tslib"
-
-config BR2_PACKAGE_QTOPIA4_MOUSE_QVFB
-	bool "qvfb"
-
-endmenu
package/qtopia4/Config.sql.in deleted +0 -42

42 lines not on this page · raw message

package/qtopia4/qtopia-4.5.2-fix-qt-zlib-build.patch deleted +0 -20
deleted file mode 100644
index b191cc7..0000000
@@ -1,20 +0,0 @@
-When QT is compiled in qt-zlib mode, compilation of
-src/gui/painting/qprintengine_pdf.cpp fails because zlib.h is not
-found. The following patch adds the internal QT zlib directory to the
-include path to fix this issue.
-
----
- src/gui/painting/painting.pri |    3 +++
- 1 file changed, 3 insertions(+)
-
-Index: qt-embedded-linux-opensource-src-4.5.2/src/gui/painting/painting.pri
-===================================================================
---- qt-embedded-linux-opensource-src-4.5.2.orig/src/gui/painting/painting.pri
-+++ qt-embedded-linux-opensource-src-4.5.2/src/gui/painting/painting.pri
-@@ -367,3 +367,6 @@
-         SOURCES += painting/qwindowsurface_d3d.cpp
- }
- 
-+contains(QT_CONFIG, zlib) {
-+   INCLUDEPATH += ../3rdparty/zlib
-+}
package/qtopia4/qtopia4.mk deleted +0 -582

582 lines not on this page · raw message

Signature · 1 line
1.6.0.4
#2 lore raw

PATCH 2/4 qt: put the Qt options into a submenu

In reply to Thomas Petazzoni

Put the Qt options into a submenu to make the configuration interface easier to use. The comment on the dependency on C++ has to be put before the menuconfig definition, otherwise kconfig gets confused and doesn't put the suboptions into a submenu.

---
 package/qt/Config.in |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
package/qt/Config.in +4 -4
index d68c923..59c691f 100644
@@ -1,4 +1,7 @@
-config BR2_PACKAGE_QT
+comment "qt requires a toolchain with C++ support enabled"
+	depends on !BR2_INSTALL_LIBSTDCPP
+
+menuconfig BR2_PACKAGE_QT
 	bool "Qt"
 	depends on BR2_INSTALL_LIBSTDCPP
 	help
@@ -6,9 +9,6 @@ config BR2_PACKAGE_QT
 
 	  http://www.qtsoftware.com/products/platform/qt-for-embedded-linux
 
-comment "qt requires a toolchain with C++ support enabled"
-	depends on !BR2_INSTALL_LIBSTDCPP
-
 if BR2_PACKAGE_QT
 
 config BR2_PACKAGE_QT_DEBUG
Signature · 1 line
1.6.0.4
#3 lore raw

PATCH 3/4 qt: fix build with external toolchain

In reply to Thomas Petazzoni

Set QMAKE_LFLAGS so that at link time --sysroot is passed to the linker, and Qt finds the external libraries. This fixes Qt build when zlib or other libraries are external, instead of using Qt's internal copy.

---
 package/qt/qt.mk |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
package/qt/qt.mk +1 -0
index e07457e..ea59b07 100644
@@ -448,6 +448,7 @@ endif
 	$(call QT_QMAKE_SET,STRIP,$(TARGET_STRIP))
 	$(call QT_QMAKE_SET,CFLAGS,$(TARGET_CFLAGS))
 	$(call QT_QMAKE_SET,CXXFLAGS,$(TARGET_CXXFLAGS))
+	$(call QT_QMAKE_SET,LFLAGS,$(TARGET_LDFLAGS))
 	-[ -f $(QT_QCONFIG_FILE) ] && cp $(QT_QCONFIG_FILE) \
 		$(QT_TARGET_DIR)/$(QT_QCONFIG_FILE_LOCATION)
 # Qt doesn't use PKG_CONFIG, it searches for pkg-config with 'which'.
Signature · 1 line
1.6.0.4
#4 lore raw

PATCH 4/4 qt: the GUI module requires the network module to work properly

In reply to Thomas Petazzoni

Running a simple Qt GUI application on an embedded systems without QtNetwork installed doesn't work, the dynamic loader complains that QtNetwork is not present.

While I'm not a Qt build system expert, it looks like this dependency really exists, since the src/gui/gui.pri file in Qt sources contains the following line:

embedded: QT += network

Which would mean that the GUI module needs the network module to operate properly. And a few files in src/gui/embedded/ also include some QtNetwork stuff. This isn't really surprising since the Qt QWS mechanism uses communication between processes through a Unix socket.

Therefore, we add a dependency on the network module in the GUI module. We use a 'select' dependency here, since it's might not be really obvious to the user that the GUI module requires the network one.

---
 package/qt/Config.in |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
package/qt/Config.in +1 -0
index 59c691f..b7fe0f9 100644
@@ -77,6 +77,7 @@ config BR2_PACKAGE_QT_QT3SUPPORT
 
 config BR2_PACKAGE_QT_GUI_MODULE
 	bool "Gui Module"
+	select BR2_PACKAGE_QT_NETWORK
 	default y
 	help
 	  Turns on support to Gui applications. If your board don't have
Signature · 1 line
1.6.0.4
#5 lore raw
In reply to Thomas Petazzoni
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

Thomas> The following changes since commit 660952565ed0c76b4a2e345bb79fd553a4f53d77:
Thomas> Thomas Petazzoni (1):
Thomas> Update CHANGES with recent improvements

Thomas> are available in the git repository at:

Thomas> git://git.busybox.net/~tpetazzoni/git/buildroot qt

Pulled and pushed - Thanks!

Signature · 1 line
Bye, Peter Korsgaard