Qt 4.4.1 and sqlite
Hi,
while trying to port a custom qt/application to angstrom i noted that the qt sqlite driver is not available.
May be it possible to have support for it?
Regards
Nicola
Quoted 4 lines · On Sunday 05 October 2008 17:06:53 Nicola Mfb wrote:
Hi,
while trying to port a custom qt/application to angstrom i noted that the qt sqlite driver is not available.
May be it possible to have support for it?
sqlite2 or sqlite3? sqlite3 should always be part of Qt, and we do accept patches too.
z
2008/10/5 Holger Freyther <[email protected]>
Quoted 9 lines · On Sunday 05 October 2008 17:06:53 Nicola Mfb wrote:
Quoted 4 lines
Hi,
while trying to port a custom qt/application to angstrom i noted that the qt sqlite driver is not available.
May be it possible to have support for it?sqlite2 or sqlite3? sqlite3 should always be part of Qt, and we do accept patches too.
I mean sqlite3, I simply rebuilded an applications that read all qt available sql drivers and show a dialog tho choose one of them. This was empty on angstrom while on a desktop pc it usually shows sqlite and some others drivers (mysql and pgsql).
In the file packages/qt4/qt_configuration.inc i read:
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-pch -qdbus -stl -glib"
So -no-sql-sqlite should be modified in qt-sql-sqlite (linked into the library) or plugin-sql-sqlite (build as plugin). I'm not sure if the second option loads the plugin only when needed or is a simple way to support external plugins in qt.
I hope tomorrow I will be able to test a qt rebuild, and reports some feedback here.
Regards
Nicola
Quoted 3 lines · 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
2008/10/6 Holger Freyther <[email protected]>
Quoted 8 lines · On Sunday 05 October 2008 22:26:31 Nicola Mfb wrote:
Quoted 4 lines
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:
(quoted diff) +0 -0
b/conf/distro/include/preferred-om-2008-versions.inc index f420097..7767c5c 100644
conf/distro/include/preferred-om-2008-versions.inc +1 -1
@@ -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"
(quoted diff) +0 -0
b/packages/qt4/qt_configuration.inc
index 252a80a..9444e87 100644
packages/qt4/qt_configuration.inc +1 -3
@@ -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