[oe] Qt 4.4.1 and sqlite

Nicola Mfb nicola.mfb at gmail.com
Mon Oct 6 18:19:11 UTC 2008


2008/10/6 Holger Freyther <zecke at selfish.org>

> On Sunday 05 October 2008 22:26:31 Nicola Mfb wrote:
>
> >
> > I hope tomorrow I will be able to test a qt rebuild, and reports some
> > feedback here.
>
> cool
>

Hi Zeche,
I did some test and rebitbaked qt 4.4.1 in both modes, the first linking qt
sqlite statically, the second building it as a plugin, in both cases I was
able to use sqlite driver in my application that created a database and did
some insert/select/delete encapsulated in transactions without problems.

I think the better is to build sqlite as a plugin to preserve memory usage
and space on device, this produces the extra package
qt4-plugin-sqldriver-sqlite that is not installed by opkg install
qt4-x11-free, that's fine as it has to be a dependency only for applications
needing it! (as this policy does not waste resources, it my be interesting
to consider to support other plugins too)

I have the following configuration:

DISTRO = "openmoko"
MACHINE = "om-gta02"
IMAGE_TARGET = "fso-image"
DISTRO_TARGET = "openmoko-feed"
INHERIT += "rm_work"
BBFILES += "/iscsi/local_recipies/*.bb"
include conf/topdir.conf
TMPDIR := "${TOPDIR}/tmp"
CACHE := "${TMPDIR}/cache"
DL_DIR := "${TOPDIR}/downloads"
PKGDIR := "${TOPDIR}/openembedded"
BBFILES := "${PKGDIR}/packages/*/*.bb"
TOPDIR='/iscsi/qt-test/fso-unstable'

and git diff produces:

diff --git a/conf/distro/include/preferred-om-2008-versions.inc
b/conf/distro/include/preferred-om-2008-versions.inc
index f420097..7767c5c 100644
--- a/conf/distro/include/preferred-om-2008-versions.inc
+++ b/conf/distro/include/preferred-om-2008-versions.inc
@@ -1621,7 +1621,7 @@ PREFERRED_VERSION_qpobox ?= "0.5.4"
 PREFERRED_VERSION_qpphoto ?= "1.0.2"
 PREFERRED_VERSION_qscintilla ?= "1.65-gpl-1.6"
 PREFERRED_VERSION_qsvn ?= "0.3.0"
-PREFERRED_VERSION_qt4-x11-free ?= "4.3.3"
+#PREFERRED_VERSION_qt4-x11-free ?= "4.3.3"
 PREFERRED_VERSION_qtplot ?= "0.2"
 PREFERRED_VERSION_qt-x11-free ?= "3.3.7"
 PREFERRED_VERSION_qt-x11-free-native ?= "3.3.5"
diff --git a/packages/qt4/qt_configuration.inc
b/packages/qt4/qt_configuration.inc
index 252a80a..9444e87 100644
--- a/packages/qt4/qt_configuration.inc
+++ b/packages/qt4/qt_configuration.inc
@@ -5,7 +5,7 @@ QT_ENDIAN = "${@qt_endian(d)}"
 QT_CONFIG_FLAGS += "-release -no-cups -no-accessibility -reduce-relocations
\
                     -shared -no-nas-sound -no-sm -no-nis \
                     -qt-gif -system-libjpeg -system-libpng -system-zlib \
-                     -no-sql-ibase -no-sql-mysql -no-sql-odbc -no-sql-psql
-no-sql-sqlite -no-sql-sqlite2 \
+                     -no-sql-ibase -no-sql-mysql -no-sql-odbc -no-sql-psql
-plugin-sql-sqlite -no-sql-sqlite2 \
                     -no-pch -qdbus -stl -glib"

 EXTRA_OEMAKE = "-e"

As you can note i commented preferred qt4 version to have 4.4.1

Regards

    Nicola



More information about the Openembedded-devel mailing list