Qt 4.7 and QtWebKit 2.0 Debian packages for ARM

29 Jul 2010 18:30

Qt 4.7 beta2 and QtWebKit 2.0 beta (weekly build)] are available in Debian experimental repository, but not for all architectures. Most notably the packages are missing for ARM architecture.

It's worth noting, that libqt4-webkit is no longer a valid package in experimental, but is a transitional package to pull libqtwebkit4, so now QtWebKit and Qt versions are quite independent. You can use Qt 4.6 or 4.7 with the QtWebKit 2.0.

I needed QtWebKit 2.0 on ARM, so I built it from deb-src. It went OK with no modifications of the source package.

When it comes to Qt's 4.7 beta release I needed to patch it slightly, to disable precompiled headers (for some reason, after generating them, they were not found by installation), —fast configure flag (not sure if this is needed) and I needed to tweak src/core/io/io.pri file, because for some reason linux-* {} section of qmake file was not properly applied. Also to properly compile stuff, I added Qt3 support.

My full diff to sources downloaded with apt-get -t experimental source qt4-x11

diff -ur original/qt4-x11-4.7.0~beta2/debian/rules modified/qt4-x11-4.7.0~beta2/debian/rules
--- original/qt4-x11-4.7.0~beta2/debian/rules    2010-07-29 18:27:41.000000000 +0000
+++ modified/qt4-x11-4.7.0~beta2/debian/rules    2010-07-29 18:27:52.000000000 +0000
@@ -89,7 +89,9 @@
                 -demosdir "/usr/lib/qt4/demos" \
                 -examplesdir "/usr/lib/qt4/examples" \
                 -opensource \
-                -fast \
+                -no-fast \
+                -no-pch \
+                -qt3support \
                 -plugin-sql-mysql \
                 -plugin-sql-odbc \
                 -plugin-sql-psql \
diff -ur original/qt4-x11-4.7.0~beta2/src/corelib/io/io.pri modified/qt4-x11-4.7.0~beta2/src/corelib/io/io.pri
--- original/qt4-x11-4.7.0~beta2/src/corelib/io/io.pri    2010-07-29 18:28:09.000000000 +0000
+++ modified/qt4-x11-4.7.0~beta2/src/corelib/io/io.pri    2010-07-29 18:28:17.000000000 +0000
@@ -74,7 +74,6 @@
             SOURCES += io/qsettings_mac.cpp io/qfilesystemwatcher_fsevents.cpp
         }
 
-        linux-*:!symbian {
             SOURCES += \
                     io/qfilesystemwatcher_inotify.cpp \
                     io/qfilesystemwatcher_dnotify.cpp
@@ -82,7 +81,6 @@
             HEADERS += \
                     io/qfilesystemwatcher_inotify_p.h \
                     io/qfilesystemwatcher_dnotify_p.h
-        }
 
         freebsd-*|macx-*|darwin-*|openbsd-*:{
             SOURCES += io/qfilesystemwatcher_kqueue.cpp

You can find all of the compiled debs here:

No files attached to this page.

Comments: 0

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License